Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

tagged_hash

Create a tagged hash according to BIP-340 tagged hash specification

Arguments

  • tag - The tag string (e.g., “TapTweak”, “TapLeaf”)
  • data - The data to hash

Returns

  • Array<u8> - The tagged hash (32 bytes)

Fully qualified path: alexandria_btc::taproot::tagged_hash

pub fn tagged_hash(tag: ByteArray, data: Span<u8>) -> Array<u8>