Skip to content

Commit

Permalink
Fallthru patch
Browse files Browse the repository at this point in the history
  • Loading branch information
b-j-roberts committed Nov 22, 2024
1 parent 6c60968 commit 29bb263
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/engine/src/signature/sighash.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -229,12 +229,11 @@ pub impl TaprootSighashOptionsImpl of TaprootSighashOptionsTrait {

// Return true if `taproot_sighash` is valid.
fn is_valid_taproot_sighash(hash_type: u32) -> bool {
// Does nothing but it is in BTCD impl.
if hash_type == constants::SIG_HASH_DEFAULT
|| hash_type == constants::SIG_HASH_ALL
|| hash_type == constants::SIG_HASH_NONE
|| hash_type == constants::SIG_HASH_SINGLE {}
if hash_type == 0x81 || hash_type == 0x82 || hash_type == 0x83 {
|| hash_type == constants::SIG_HASH_SINGLE
|| hash_type == 0x81 || hash_type == 0x82 || hash_type == 0x83 {
return true;
} else {
return false;
Expand Down

0 comments on commit 29bb263

Please sign in to comment.