Verifier
class
Verifier
Class that handles BIP-322 signature verification.
Reference: https://github.com/LegReq/bip0322-signatures/blob/master/BIP0322_verification.ipynb
Methods
verifySignature
verifySignature(signerAddress: string, message: string, signature: Buffer): Promise
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
message_challenge signed by the address
signature: Buffer
Signature buffer produced by the signing address
Returns:
Promisea promise of True if the provided signature is a valid BIP-322 signature for the given message and address, false if otherwise
