-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix #741 and #646 #772
fix #741 and #646 #772
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small nit over typing, but looks good once ci gets resolved les do it
* @param secret - the secret to hash (defaults to a random field element) | ||
* @returns secret and its pederson hash (in hex). | ||
*/ | ||
export async function createMessageSecretAndHash(secret = Fr.random()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return as fr to prevent viem coupling
75c10c5
to
4f53e53
Compare
4f53e53
to
969067d
Compare
import { computeSecretMessageHash } from '@aztec/circuits.js/abis'; | ||
|
||
/** | ||
* Given a secret, it computes its pederson hash - used to send l1 to l2 messages |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Given a secret, it computes its pederson hash - used to send l1 to l2 messages | |
* Given a secret, it computes its pedersen hash - used to send l1 to l2 messages |
6d8a667
to
7e92302
Compare
7e92302
to
2bc37c8
Compare
2bc37c8
to
197f631
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description
hash()
is not used anywhereChecklist: