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>