Skip to content

Commit

Permalink
remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
fredcarle committed Dec 11, 2024
1 parent 3de2aaf commit 720433d
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions acp/identity/identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,6 @@ func FromPrivateKey(privateKey *secp256k1.PrivateKey) (Identity, error) {
}, nil
}

// FromPublicRawIdentity returns a new raw identity using the given public raw identity.
func FromPublicRawIdentity(rawIdentity PublicRawIdentity) (Identity, error) {
publicKey, err := secp256k1.ParsePubKey([]byte(rawIdentity.PublicKey))
if err != nil {
return Identity{}, err
}

return Identity{
DID: rawIdentity.DID,
PublicKey: publicKey,
}, nil
}

// FromToken constructs a new `Identity` from a bearer token.
func FromToken(data []byte) (Identity, error) {
token, err := jwt.Parse(data, jwt.WithVerify(false))
Expand Down

0 comments on commit 720433d

Please sign in to comment.