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

signature trait #53

Merged
merged 2 commits into from
Apr 18, 2022
Merged

signature trait #53

merged 2 commits into from
Apr 18, 2022

Conversation

zhenfeizhang
Copy link
Contributor

@zhenfeizhang zhenfeizhang commented Apr 9, 2022

Description

First task of #52

Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (main)
  • Linked to GitHub issue with discussion and accepted design OR have an explanation in the PR that describes this work.
  • Wrote unit tests
  • Updated relevant documentation in the code
  • Added a relevant changelog entry to the Pending section in CHANGELOG.md
  • Re-reviewed Files changed in the GitHub PR explorer

@zhenfeizhang zhenfeizhang mentioned this pull request Apr 11, 2022
5 tasks
@zhenfeizhang zhenfeizhang self-assigned this Apr 11, 2022
@zhenfeizhang zhenfeizhang marked this pull request as ready for review April 11, 2022 13:23
chancharles92
chancharles92 previously approved these changes Apr 11, 2022
Copy link
Contributor

@chancharles92 chancharles92 left a comment

Choose a reason for hiding this comment

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

LGTM

primitives/src/circuit/schnorr_dsa.rs Outdated Show resolved Hide resolved
primitives/src/signatures/mod.rs Outdated Show resolved Hide resolved
primitives/src/circuit/schnorr_dsa.rs Show resolved Hide resolved
@zhenfeizhang
Copy link
Contributor Author

So let me summarize the candidate solutions here

Candidate 1: define our own signature trait where we can configure the message space
Candidate 2: follow Arkwork's signature trait, and define an additional trait where message space is field elements

Pros of candidate 1: more flexible. Cleaner. We do not need a separate trait.
Cons of candidate 1: not compatible with upstream.

For both candidate, a CAP caller will need to import own own trait for the field based hashes. So importing Arkwork's does not reduce complexity here.

Seem like we have converged to the first candidate? @chancharles92 @alxiong

@chancharles92
Copy link
Contributor

Seem like we have converged to the first candidate? @chancharles92 @alxiong

Agree

@zhenfeizhang
Copy link
Contributor Author

Okay. now this branch implements our own signature trait, and is ready for review.
FYI: code with arkworks signature trait is stashed here: https://github.com/EspressoSystems/jellyfish/tree/arkwork's-signature-api

@chancharles92
Copy link
Contributor

LGTM, do we want to add this into tag-release 0.0.1 or should we add it after the tag-release PR?

@zhenfeizhang
Copy link
Contributor Author

Perhaps after. There are likely breaking changes after this.

@zhenfeizhang zhenfeizhang merged commit db8c0ab into main Apr 18, 2022
@zhenfeizhang zhenfeizhang deleted the zz/signature-api branch April 18, 2022 20:59
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.

None yet

3 participants