Skip to content

Elide sig check on 'merge' join-split proofs#42

Merged
LeilaWang merged 7 commits intodefi-bridge-projectfrom
adam/auth_sdk/allow_no_sig_if_match
Jan 16, 2023
Merged

Elide sig check on 'merge' join-split proofs#42
LeilaWang merged 7 commits intodefi-bridge-projectfrom
adam/auth_sdk/allow_no_sig_if_match

Conversation

@ludamad
Copy link
Copy Markdown
Collaborator

@ludamad ludamad commented Jan 10, 2023

Description

P.S. this repo could use a pull request template
See https://hackmd.io/@aztec-network/H10r1JqOo

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.
  • There are no circuit changes, OR specifications in /markdown/specs have been updated.
  • There are no circuit changes, OR a cryptographer has been assigned for review.
  • I've updated any terraform that needs updating (e.g. environment variables) for deployment.
  • The branch has been rebased against the head of its merge target.
  • I'm happy for the PR to be merged at the reviewer's next convenience.

Barretenberg-specific requirements:

  • New functions, classes, etc. have been documented according to the doxygen comment format. Classes and structs must have @brief describing the intended functionality.
  • If existing code has been modified, such documentation has been added or updated.

@ludamad ludamad changed the base branch from master to defi-bridge-project January 10, 2023 12:13
// This is a merge if one this is a 'send' proof type and one of the output notes has value 0
const bool_ct is_merge_send = is_send && (output_note_1_value == 0 || output_note_2_value == 0);
// If we are merging our own notes, we don't need to sign
// Note: when computing is_same_owner, we rely on input_note_1.owner == input_note_2.owner being checked already
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

feedback: get rid of verified_or_merge_with_same_owners_and_amount, is_merge_send already implies the following:
const bool_ct is_merge_send = is_send && (output_note_1_value == 0 || output_note_2_value == 0) && is_same_owner && is_same_amount;

then have (verified || is_merge_send).assert_equal....

@LeilaWang LeilaWang merged commit 2dbe4bc into defi-bridge-project Jan 16, 2023
@LeilaWang LeilaWang deleted the adam/auth_sdk/allow_no_sig_if_match branch January 16, 2023 14:28
dbanks12 pushed a commit that referenced this pull request Jan 24, 2023
* Elide sig check on 'merge' join-split proofs

* README.md: Mention bootstrap.sh directory

* join_split: simplify from feedback

* Update join_split_circuit.cpp

* Update join_split_circuit.cpp

* constants.hpp: redo vk hashes

Co-authored-by: ludamad <adam@aztecprotocol.com>
dbanks12 pushed a commit that referenced this pull request Jan 24, 2023
* Elide sig check on 'merge' join-split proofs

* README.md: Mention bootstrap.sh directory

* join_split: simplify from feedback

* Update join_split_circuit.cpp

* Update join_split_circuit.cpp

* constants.hpp: redo vk hashes

Co-authored-by: ludamad <adam@aztecprotocol.com>
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.

3 participants