Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

verify_taproot_signature

Verify a BIP-340 Schnorr signature for Taproot

Arguments

  • signature - The Schnorr signature (64 bytes: r || s)
  • message - The message that was signed
  • public_key - The tweaked public key (x-coordinate only)

Returns

  • bool - True if signature is valid

Fully qualified path: alexandria_btc::taproot::verify_taproot_signature

pub fn verify_taproot_signature(signature: Span<u8>, message: ByteArray, public_key: u256) -> bool