create
fun create(keyManager: KeyManager = InMemoryKeyManager(), algorithmId: AlgorithmId = AlgorithmId.Ed25519): BearerDid
Creates a new "did:jwk" DID, derived from a public key, and stores the associated private key in the provided keyManager.
The method-specific identifier of a "did:jwk" DID is a base64url encoded json web key serialized as a UTF-8 string.
Note: Defaults to ES256K if no options are provided
Return
A DidJwk instance representing the newly created "did:jwk" DID.
Parameters
key Manager
A keyManager instance where the new key will be stored.
Throws
if the specified curve is not supported.