Verify a BIP-322 signature for a P2TR, P2WPKH, or legacy P2PKH address.
For segwit addresses (P2TR, P2WPKH), reconstructs the BIP-322 toSpend/toSign transactions and verifies the witness signature.
For P2PKH addresses, verifies using the Bitcoin Core legacy signmessage format (compact recoverable ECDSA signature).
signmessage
The original message that was signed
Base64-encoded signature (BIP-322 witness or legacy compact)
P2TR, P2WPKH, or P2PKH address of the signer
Optional
Optional Bitcoin network for address decoding
true if the signature is valid
Verify a BIP-322 signature for a P2TR, P2WPKH, or legacy P2PKH address.
For segwit addresses (P2TR, P2WPKH), reconstructs the BIP-322 toSpend/toSign transactions and verifies the witness signature.
For P2PKH addresses, verifies using the Bitcoin Core legacy
signmessageformat (compact recoverable ECDSA signature).