Skip to content

Commit

Permalink
test_add_signature test fix (#4535)
Browse files Browse the repository at this point in the history
  • Loading branch information
patnir authored Jan 12, 2024
1 parent f116744 commit d1bf6b9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ironfish-rust/src/transaction/mints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,12 @@ mod test {
let msg = [0u8; 32];
let signature = private_key.sign(&msg, &mut thread_rng(), *SPENDING_KEY_GENERATOR);
let unsigned_spend_description = builder
.build(&key, &public_key_randomness, &randomized_public_key)
.build(
&key.sapling_proof_generation_key(),
&key.public_address(),
&public_key_randomness,
&randomized_public_key,
)
.expect("should be able to build proof");
unsigned_spend_description.add_signature(signature);
assert!(public_key.verify(&msg, &signature, *SPENDING_KEY_GENERATOR))
Expand Down

0 comments on commit d1bf6b9

Please sign in to comment.