Skip to content

Commit

Permalink
removing pub keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
signorecello committed Jul 28, 2023
1 parent a82c8fd commit 8c073d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.nr
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ fn ecrecover(
pub_key_y: [u8; 32],
signature: [u8; 64], // clip v value
hashed_message: [u8; 32]
) -> pub Field {
) -> Field {
let key = secp256k1::PubKey::from_xy(pub_key_x, pub_key_y);

assert(key.verify_sig(signature, hashed_message));
Expand Down

0 comments on commit 8c073d1

Please sign in to comment.