Function simfony_as_rust::jet::signature_hash_modes::build_tapleaf_simplicity
source ยท pub fn build_tapleaf_simplicity(a: u256) -> u256Expand description
Return a SHA256 hash of the following:
- The hash of the ASCII string
TapBranch/elements(32 bytes). - The hash of the ASCII string
TapBranch/elementsagain (32 bytes). - The lexicographically smaller of the two inputs (32 bytes).
- The lexicographically larger of the two inputs (32 bytes).
This builds a taproot from two branches.