File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -428,12 +428,13 @@ This jet should not be used directly."#,
428428
429429This builds a taproot from two branches."# ,
430430 Elements :: BuildTapleafSimplicity => r#"Return the SHA256 hash of the following:
431- - The hash of the ASCII string `TapBranch/elements` (32 bytes).
432- - The hash of the ASCII string `TapBranch/elements` again (32 bytes).
433- - The lexicographically smaller of the two inputs (32 bytes).
434- - The lexicographically larger of the two inputs (32 bytes).
431+ - The hash of the ASCII string `TapLeaf/elements` (32 bytes).
432+ - The hash of the ASCII string `TapLeaf/elements` again (32 bytes).
433+ - The Simplicity leaf version `0xbe` (1 byte).
434+ - The byte `0x20` (1 byte).
435+ - The input CMR (32 bytes).
435436
436- This builds a taproot from two branches ."# ,
437+ This builds a tapleaf hash for a Simplicity program ."# ,
437438 Elements :: BuildTaptweak => r#"Implementation of `taproot_tweak_pubkey` from BIP-0341.
438439
439440## Panics
Original file line number Diff line number Diff line change @@ -450,12 +450,13 @@ This jet should not be used directly."#,
450450
451451This builds a taproot from two branches."# ,
452452 Elements :: BuildTapleafSimplicity => r#"Return the SHA256 hash of the following:
453- - The hash of the ASCII string `TapBranch/elements` (32 bytes).
454- - The hash of the ASCII string `TapBranch/elements` again (32 bytes).
455- - The lexicographically smaller of the two inputs (32 bytes).
456- - The lexicographically larger of the two inputs (32 bytes).
453+ - The hash of the ASCII string `TapLeaf/elements` (32 bytes).
454+ - The hash of the ASCII string `TapLeaf/elements` again (32 bytes).
455+ - The Simplicity leaf version `0xbe` (1 byte).
456+ - The byte `0x20` (1 byte).
457+ - The input CMR (32 bytes).
457458
458- This builds a taproot from two branches ."# ,
459+ This builds a tapleaf hash for a Simplicity program ."# ,
459460 Elements :: BuildTaptweak => r#"Implementation of `taproot_tweak_pubkey` from BIP-0341.
460461
461462## Panics
You can’t perform that action at this time.
0 commit comments