pub fn build_tapleaf_simplicity(a: u256) -> u256
Expand 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/elements again (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.