Function didKeyToVerificationMethod

  • Convert a DID key to a MultiKey verification method.

    Type Parameters

    • IdType extends `#${string}` | DidUrl

    Parameters

    • controller: Did

      The verification method controller's DID.

    • id: IdType

      The verification method ID.

    • key: DecodedVerificationMethod

      The DID key to export as a verification method.

    Returns VerificationMethod<IdType>

    The provided key encoded as a VerificationMethod.