Skip to content

Commit ac97839

Browse files
committed
Remove unnecessary documentation
We have some text quoted directly from BIP341, this text is on the net if folk wish to read it, we don't need it in the source code.
1 parent 9956a85 commit ac97839

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/util/taproot.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -859,15 +859,6 @@ impl LeafVersion {
859859
///
860860
/// - If the last bit of the `version` is odd.
861861
/// - If the `version` is 0x50 ([`TAPROOT_ANNEX_PREFIX`]).
862-
// Text from BIP341:
863-
// In order to support some forms of static analysis that rely on
864-
// being able to identify script spends without access to the output being
865-
// spent, it is recommended to avoid using any leaf versions that would conflict
866-
// with a valid first byte of either a valid P2WPKH pubkey or a valid P2WSH script
867-
// (that is, both v and v | 1 should be an undefined, invalid or disabled opcode
868-
// or an opcode that is not valid as the first opcode).
869-
// The values that comply to this rule are the 32 even values between
870-
// 0xc0 and 0xfe and also 0x66, 0x7e, 0x80, 0x84, 0x96, 0x98, 0xba, 0xbc, 0xbe
871862
pub fn from_consensus(version: u8) -> Result<Self, TaprootError> {
872863
match version {
873864
TAPROOT_LEAF_TAPSCRIPT => Ok(LeafVersion::TapScript),

0 commit comments

Comments
 (0)