This interface parametrizes VerifierKey and extends it with Ed specific details.

Hierarchy

Properties

code: MulticodecCode<237, "ed25519-public-key">

Multicodec code that corresponds to Ed public key.

signatureAlgorithm: "EdDSA"
signatureCode: SigAlg

Methods

  • Returns `did:key:${string}`

  • Returns unwrapped did:key of this principal.

    Returns `did:key:${string}`

  • Type Parameters

    • T

      Source data before it was byte encoding into payload.

      Takes byte encoded payload and verifies that it is signed by corresponding signer.

    Parameters

    Returns Await<boolean>

  • Wraps key of this verifier into a verifier with a different DID. This is primarily used to wrap VerifierKey into a Verifier that has did of different method.

    Type Parameters

    • ID extends `did:${string}:${string}`

    Parameters

    • id: ID

    Returns Verifier<ID, SigAlg>

Generated using TypeDoc