Skip to Content

Verifier

class

Verifier

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

Constructor

constructor
Verifier(): Verifier

Returns:

Verifier

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:

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

Start building

XO

Request Demo

Schedule a call with our team

Select a product
Arrow right

Start building
Grateful

Contact Us

We're here to help