createVerificationMethod

fun createVerificationMethod(did: String, keyHandle: KeyHandle, algorithm: String, controller: String? = null): VerificationMethod

Creates a verification method reference from a key handle.

Return

VerificationMethod

Parameters

did

The DID identifier

keyHandle

The key handle from KMS

algorithm

The algorithm name

controller

Optional controller DID (defaults to the DID itself)


fun createVerificationMethod(did: String, keyHandle: KeyHandle, algorithm: KeyAlgorithm, controller: String? = null): VerificationMethod

Creates a verification method reference from a key handle using KeyAlgorithm enum.

Return

VerificationMethod

Parameters

did

The DID identifier

keyHandle

The key handle from KMS

algorithm

The KeyAlgorithm enum value

controller

Optional controller DID (defaults to the DID itself)