-
Notifications
You must be signed in to change notification settings - Fork 23
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
61 #68
61 #68
Conversation
[Discussion] results are incorporated. Naming groomed repository wide. \ Fun fact: I already was confused by that "hash2" naming, lol. Note that `fn verify_signals` barely [benefit] from renaming at all currently. [Discussion]: 251fba6#commitcomment-130400727 [benefit]: #61
@Divide-By-0 , btw, I'm puzzled: does the other version of the scheme takes those two additional fields only together or any of one? Test coverage and the implementation under refactoring somewhat clashes. PS also I should check if I didn't mess the |
Sorry I'm a bit confused what this means. Can you specify what the other scheme is (v2?) and what's any of one field mean? Not sure what is the scheme under implementation or what the tests cover but feel free to choose what is most intuitive and passes the circom circuit test as well. Naming I don't know if you got everything but it seems reasonable, if tests pass then it should be fine. There should be no package lock, please use yarn. |
Sorry, I was writing from Android that one. 😅 I indeed confused V1 and V2 naming -- will straight now. the questionI tried to formulate the question, and it's still too wordy and confusing. Let me ask it with a link better. zk-nullifier-sig/rust-k256/src/lib.rs Line 101 in 6c487c0
r_point and hashed_to_curve and takes version (V1/V2).
So I made it quite restrictive oriented by the But today I just thought that the logic could be different and it's ok to supply that values, verify them, but still be using V2; or supply V2 |
Yeah, seems fine to put in those values in V2 as well, it'll make migration easier. |
tried such approach locally: and it doesn't look that good as it sounds =( it looks much better to add additional functions to verify these V1 fields with V2 sig other way it's a mess when that optional or not on input and I better keep output simple |
`Digest` had been switched to more robust re-exported version. `ring` seems to be excessive, commented out for now
Sorry about the delay here! Thanks for the renaming. |
Cool! Though I don't remember renaming per se there, only when needed for code refactoring. |
Proposed solution. Sharing early for possible reviews; will be finishing presumably tomorrow.All done.
(Note that I decided to go with it from #66 not to merge/rebase all that renaming again 🙄 )