Skip to content
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

Merged
merged 14 commits into from
Jul 19, 2023
Merged

Add nonce to note hash. #1084

merged 14 commits into from
Jul 19, 2023

Conversation

LeilaWang
Copy link
Collaborator

Description

Closes #1019

Checklist:

  • I have reviewed my diff in github, line by line.
  • Every change is related to the PR description.
  • I have linked this pull request to the issue(s) that it resolves.
  • There are no unexpected formatting changes, superfluous debug logs, or commented-out code.
  • The branch has been merged or rebased against the head of its merge target.
  • I'm happy for the PR to be merged at the reviewer's next convenience.

@LeilaWang LeilaWang requested a review from sirasistant July 18, 2023 12:52
@LeilaWang LeilaWang requested a review from ludamad July 18, 2023 14:14
@LeilaWang LeilaWang enabled auto-merge (squash) July 18, 2023 14:20
Copy link
Collaborator

@sirasistant sirasistant left a 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;
Copy link
Collaborator

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.
Copy link
Collaborator

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add nonce to note hash.
3 participants