Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

tagged_hash_u256

Create a tagged hash from byte arrays according to BIP-340 tagged hash specification

Arguments

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

Returns

  • u256 - The tagged hash as u256

Fully qualified path: alexandria_btc::taproot::tagged_hash_u256

pub fn tagged_hash_u256(tag: ByteArray, data: @ByteArray) -> u256