-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add nonce to note hash. #1084
Add nonce to note hash. #1084
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.
LGTM!
) -> Context { | ||
let mut note_hash = 0; | ||
) -> (Context, Note) { | ||
let mut note_with_header = note; |
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.
Should this method check for equality of the read note with the passed note?
// Noir (ACVM) expects a flattened (basically serialized) array of ACVMFields | ||
const dbPreimages = dbNotes.flatMap(({ preimage }) => preimage).map(f => toACVMField(f)); | ||
|
||
// TODO: Sort again. |
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.
Should we move to a transactional approach for the DB? and we drop the TX after finishing simulation
Description
Closes #1019
Checklist: