Skip to content

Commit

Permalink
Apply latest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
KaffinPX committed Oct 26, 2024
1 parent 33a1a0e commit e879420
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wallet/pskt/src/wasm/pskt.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::pskt::{SignInputOk, Signature, PSKT as Native};
use crate::role::*;
use kaspa_consensus_core::hashing::sighash::{calc_schnorr_signature_hash, SigHashReusedValues};
use kaspa_consensus_core::hashing::sighash::{calc_schnorr_signature_hash, SigHashReusedValuesUnsync};
use kaspa_consensus_core::tx::{PopulatedTransaction, TransactionId};
use kaspa_txscript::get_sig_op_count;
use kaspa_txscript::opcodes::codes::OpData65;
Expand Down Expand Up @@ -252,7 +252,7 @@ impl PSKT {
let state = match self.take() {
State::Signer(pskt) => {
let keypair = secp256k1::Keypair::from_seckey_slice(secp256k1::SECP256K1, &private_key.secret_bytes()).unwrap();
let mut reused_values = SigHashReusedValues::new();
let mut reused_values = SigHashReusedValuesUnsync::new();

let signed_pskt = pskt
.pass_signature_sync(|tx, sighash| -> CoreResult<Vec<SignInputOk>, String> {
Expand Down Expand Up @@ -339,7 +339,7 @@ impl PSKT {
.inputs
.iter()
.map(|input| -> Vec<u8> {
let required_sig_count = get_sig_op_count::<PopulatedTransaction>(
let required_sig_count = get_sig_op_count::<PopulatedTransaction, SigHashReusedValuesUnsync>(
input.redeem_script.as_ref().unwrap(), // TODO: a question for aspect -- abt how to properly handle here
&input.utxo_entry.as_ref().unwrap().script_public_key,
);
Expand Down

0 comments on commit e879420

Please sign in to comment.