hasVerificationMethod

Checks if a DID document has a specific verification method.

Example:

if (hasVerificationMethod(document, vmId)) {
// Use the verification method
}

Return

true if the document contains the verification method, false otherwise

Parameters

document

The DID document

vmId

The verification method ID to check