findAssertionMethodById

fun findAssertionMethodById(assertionMethodId: String? = null): VerificationMethod

Finds the first available assertion method from the DidDocument. When assertionMethodId is null, the function will return the first available assertion method.

Return

VerificationMethod with purpose of Assertion

Parameters

assertionMethodId

The ID of the assertion method to be found