Skip to content

Commit 132bfc0

Browse files
committed
fix jet docs for build_tapleaf_simplicity
1 parent 568b462 commit 132bfc0

2 files changed

Lines changed: 12 additions & 10 deletions

File tree

codegen/src/jet.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -428,12 +428,13 @@ This jet should not be used directly."#,
428428
429429
This 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

lsp/src/completion/jet.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -450,12 +450,13 @@ This jet should not be used directly."#,
450450
451451
This 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

0 commit comments

Comments
 (0)