Skip to content

Commit

Permalink
Merge pull request #7 from signorecello/main
Browse files Browse the repository at this point in the history
Removing pub keyword on return value
  • Loading branch information
colinnielsen authored Sep 14, 2023
2 parents 0fe611d + 8c073d1 commit 306fad0
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 306fad0

Please sign in to comment.