Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
b-j-roberts committed Oct 20, 2024
1 parent d48bf05 commit 6118194
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/engine/src/opcodes/crypto.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ use crate::signature::sighash;
use crate::signature::signature::{BaseSigVerifierTrait, TaprootSigVerifierTrait};
use starknet::secp256_trait::{is_valid_signature};
use core::sha256::compute_sha256_byte_array;
use core::num::traits::OverflowingAdd;
use crate::opcodes::utils;
use crate::scriptnum::ScriptNum;
use crate::errors::Error;
Expand Down Expand Up @@ -118,9 +117,9 @@ pub fn opcode_checksig<
}

let mut verifier = TaprootSigVerifierTrait::<
Transaction
T
>::new_base(@full_sig_bytes, @pk_bytes)?;
is_valid = TaprootSigVerifierTrait::<Transaction>::verify(ref verifier);
is_valid = TaprootSigVerifierTrait::<T>::verify(ref verifier);
}

if !is_valid && @engine.use_taproot == @true {
Expand Down

0 comments on commit 6118194

Please sign in to comment.