-
Notifications
You must be signed in to change notification settings - Fork 47
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
ToNullifier to ToInputNoteCommitment #732
Conversation
Note: This doesn't yet change the kernel to use the |
a4ff4da
to
e2ac30b
Compare
e2ac30b
to
b501b9e
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.
Looks good! Thank you! I left a few comments inline - but all of them are very minor (mostly naming-related).
b501b9e
to
4a89424
Compare
4a89424
to
6d70e27
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.
All looks good! Thank you!
follow up to #726
Instead of removing the
ToNullifier
trait, this replaces said trait withToInputNoteCommitment
. The change is mainly the additional of theOption<NoteId>
, which will be used by #353 .The decision to keep the trait is due to code reuse. Mainly of the
NoteInputs
which does the validation for the number of inputs and computes the input notes commitment. The alternative of using a wrapper type ended duplicating validation code, when I tried to remove the duplicated the error handling become worse and introducedunwraps
. Keeping the trait eliminates these concerns.