@did-btc1/cryptosuite
    Preparing search index...

    Class SchnorrMultikey

    SchnorrMultikey is an implementation of 2.1.1 Multikey. The publicKeyMultibase value of the verification method MUST be a base-58-btc Multibase encoding of a Multikey encoded secp256k1 public key. The secretKeyMultibase value of the verification method MUST be a Multikey encoding of a secp256k1 secret key. SchnorrMultikey

    Implements

    Index

    Constructors

    Properties

    controller: string
    id: string
    type: string = 'Multikey'

    Accessors

    Methods

    • Convert a verification method to a multikey.

      Parameters

      • verificationMethod: DidVerificationMethod

        The verification method to convert.

      Returns Multikey

      Multikey instance.

      if the verification method is missing required fields. if the verification method has an invalid type. if the publicKeyMultibase has an invalid prefix.

    • Produce a schnorr signature over arbitrary data.

      Parameters

      • data: Hex

        Data to be signed.

      • Optionalopts: CryptoOptions

      Returns Bytes

      Signature byte array.

      if no private key is provided.

    • Constructs an instance of Cryptosuite from the current Multikey instance.

      Parameters

      • Optionalcryptosuite: "bip340-jcs-2025" | "bip340-rdfc-2025" = 'bip340-jcs-2025'

      Returns Cryptosuite

    • Verify a schnorr signature.

      Parameters

      • signature: Bytes

        Signature for verification.

      • data: Hex

        Data for verification.

      • Optionalopts: CryptoOptions

      Returns boolean

      If the signature is valid against the public key.

    • Verify an ecdsa signature.

      Parameters

      • signature: Bytes

        Signature for verification.

      • data: Hex

        Data for verification.

      Returns boolean

      If the signature is valid against the public key.