Skip to content

Submission#3

Open
shubham-kanodia wants to merge 1 commit intoZKCamp:mainfrom
hewigovens:solution
Open

Submission#3
shubham-kanodia wants to merge 1 commit intoZKCamp:mainfrom
hewigovens:solution

Conversation

@shubham-kanodia
Copy link
Contributor

No description provided.

Copy link
Contributor Author

@shubham-kanodia shubham-kanodia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The assignment looks good!

pub_key_x[i] = pub_key[i];
pub_key_y[i] = pub_key[i + 32];
}
let signer = ecrecover::ecrecover(pub_key_x, pub_key_y, signature, hashed_message);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could have used this too - let key = ecrecover::secp256k1::PubKey::from_unified(pub_key); for conversion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants