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