pub fn build_tapleaf_simplicity(a: u256) -> u256Expand description
Return the 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.
ยงCost
1843 mWU (milli weight units)