bip322-js
    Preparing search index...

    Class Verifier

    Class that handles BIP-322 signature verification. Reference: https://github.com/LegReq/bip0322-signatures/blob/master/BIP0322_verification.ipynb

    Index
    • Verify a BIP-322 signature from P2WPKH, P2SH-P2WPKH, and single-key-spend P2TR address.

      Parameters

      • signerAddress: string

        Address of the signing address

      • message: string | Buffer<ArrayBufferLike>

        message_challenge signed by the address

      • signatureBase64: string

        Signature produced by the signing address

      • useStrictVerification: boolean = false

        If true, apply strict BIP-137 verification and enforce address flag verification; otherwise, address flag is ignored during verification

      Returns boolean

      True if the provided signature is a valid BIP-322 signature for the given message and address, false if otherwise

      If the provided signature fails basic validation, or if unsupported address and signature are provided