Skip to content

Commit

Permalink
chore: replace pubkey with public_key
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench committed Aug 2, 2023
1 parent f8c0baa commit 23f05fe
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions crates/noirc_evaluator/src/ssa_refactor/ir/instruction/call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,15 +305,17 @@ fn simplify_signature(
dfg.get_array_constant(arguments[3]),
) {
(
Some((pubkey_x, _)),
Some((pubkey_y, _)),
Some((public_key_x, _)),
Some((public_key_y, _)),
Some((signature, _)),
Some((hashed_message, _)),
) => {
let public_key_x: [u8; 32] =
to_u8_vec(dfg, pubkey_x).try_into().expect("ECDSA public key fields are 32 bytes");
let public_key_y: [u8; 32] =
to_u8_vec(dfg, pubkey_y).try_into().expect("ECDSA public key fields are 32 bytes");
let public_key_x: [u8; 32] = to_u8_vec(dfg, public_key_x)
.try_into()
.expect("ECDSA public key fields are 32 bytes");
let public_key_y: [u8; 32] = to_u8_vec(dfg, public_key_y)
.try_into()
.expect("ECDSA public key fields are 32 bytes");
let signature: [u8; 64] =
to_u8_vec(dfg, signature).try_into().expect("ECDSA signatures are 64 bytes");
let hashed_message: Vec<u8> = to_u8_vec(dfg, hashed_message);
Expand Down

0 comments on commit 23f05fe

Please sign in to comment.