Skip to content

Commit

Permalink
refactor(sdk): remove deprecated APIs (trustbloc#733)
Browse files Browse the repository at this point in the history
- Remove deprecated generic DID creator API
- Remove deprecated issuance interaction API
- Apply formatter to swift and kotlin code

Signed-off-by: Rolson Quadras <[email protected]>
  • Loading branch information
rolsonquadras authored Feb 21, 2024
1 parent 9b0fcea commit 118fd8f
Show file tree
Hide file tree
Showing 40 changed files with 517 additions and 2,067 deletions.
16 changes: 0 additions & 16 deletions cmd/wallet-sdk-gomobile/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,6 @@ SPDX-License-Identifier: Apache-2.0
// Package api defines gomobile-compatible wallet-sdk interfaces.
package api

// KeyWriter represents a type that is capable of performing operations related to key creation and storage within
// an underlying KMS.
// Deprecated: Not needed with the new DID creation pattern. This interface will be removed in a future version.
type KeyWriter interface {
// Create creates a keyset of the given keyType and then writes it to storage.
// The public key JWK of the newly generated keyset is returned via the JSONWebKey object.
Create(keyType string) (*JSONWebKey, error)
}

// KeyReader represents a type that is capable of performing operations related to reading keys from an underlying KMS.
// Deprecated: Not needed with the new DID creation pattern. This interface will be removed in a future version.
type KeyReader interface {
// ExportPubKey returns the public key associated with the given keyID as a JWK object.
ExportPubKey(keyID string) (*JSONWebKey, error)
}

// DIDResolver defines the method required for a type to resolve DIDs.
type DIDResolver interface {
// Resolve resolves a DID. It returns a DID document marshalled as JSON.
Expand Down
47 changes: 0 additions & 47 deletions cmd/wallet-sdk-gomobile/did/create.go

This file was deleted.

43 changes: 0 additions & 43 deletions cmd/wallet-sdk-gomobile/did/createdidopts.go

This file was deleted.

62 changes: 0 additions & 62 deletions cmd/wallet-sdk-gomobile/did/creator.go

This file was deleted.

175 changes: 0 additions & 175 deletions cmd/wallet-sdk-gomobile/did/creator_test.go

This file was deleted.

Loading

0 comments on commit 118fd8f

Please sign in to comment.