ConstBuild the BIP-322 "to_sign" PSBT for the full format. Calls Go: bip322.BuildToSignPacketFull() from btcutil/bip322.
The message to sign.
The pkScript of the signing address.
Transaction version (typically 2).
Lock time (typically 0).
Input sequence (typically 0).
Base64-encoded PSBT ready for signing.
Build the BIP-322 "to_sign" PSBT for the simple format. Calls Go: bip322.BuildToSignPacketSimple() from btcutil/bip322.
The message to sign.
The pkScript of the signing address.
Base64-encoded PSBT ready for signing.
Parse serialized witness bytes back into a witness stack. Calls Go: bip322.ParseTxWitness() from btcutil/bip322.
Serialized witness data (hex string or Uint8Array).
Array of witness stack items (Uint8Array[]).
Serialize a witness stack into the BIP-322 wire format. Calls Go: bip322.SerializeTxWitness() from btcutil/bip322.
Array of witness items (hex strings or Uint8Arrays).
Serialized witness bytes (Uint8Array).
Verify a BIP-322 signed message. Calls Go: bip322.VerifyMessage() from btcutil/bip322 (after btcutil.DecodeAddress() to parse the address).
The message that was signed.
The Bitcoin address to verify against.
The base64-encoded BIP-322 signature.
Bitcoin network (default: "mainnet").
An object with valid (boolean) and optionally error (string).
BIP-322 generic signed message verification and signing helpers.