-
Notifications
You must be signed in to change notification settings - Fork 1
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
Anemoi hash r1cs parametrization #76
Conversation
libsnark/gadgetlib1/gadgets/hashes/anemoi/anemoi_components.hpp
Outdated
Show resolved
Hide resolved
libsnark/gadgetlib1/gadgets/hashes/anemoi/anemoi_components.hpp
Outdated
Show resolved
Hide resolved
libsnark/gadgetlib1/gadgets/hashes/anemoi/anemoi_components.tcc
Outdated
Show resolved
Hide resolved
libsnark/gadgetlib1/gadgets/hashes/anemoi/anemoi_parameters.hpp
Outdated
Show resolved
Hide resolved
"14981678621464625851270783002338847382197300714436467949315" | ||
"331057125308909861"); | ||
|
||
const libff::bigint<libff::Fr<libff::bls12_381_pp>::num_limbs> |
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.
To confirm, for the other curves the script computes the values, but we don't have a a specialization of anemoi_parameters
yet? (That's fine, we just need to track this.)
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.
Yes, that is correct. Should I create an issue?
libsnark/gadgetlib1/gadgets/hashes/anemoi/tests/test_anemoi_gadget.cpp
Outdated
Show resolved
Hide resolved
libsnark/gadgetlib1/gadgets/hashes/anemoi/anemoi_parameters.hpp
Outdated
Show resolved
Hide resolved
libsnark/gadgetlib1/gadgets/hashes/anemoi/tests/test_anemoi_gadget.cpp
Outdated
Show resolved
Hide resolved
2d475ad
to
e33c10b
Compare
…oi-hash repo (matrix transpose bug fix, instances for several new curves)
…ts instantiation for the curve bls12-381
…en curve in a separate hpp file. removed all debug macros. added a separate class with anemoi parameters used for debug that is passed instead of the curve parameters class in debug mode. removed the interface of the anemoi round gadget as it is being developed in a dedicated branch.
e33c10b
to
2c25f01
Compare
…lt variables have names that are self-explanatory (#76 (comment))
…nnecessary ppT type (#76 (comment)).
…ers class to a .tcc file (#76 (comment))
…e small values from const BignumT to constexpr size_t (#76 (comment))
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.
Some small comments.
Also still need to remove the original anemoi sage impl from this repo.
libsnark/gadgetlib1/gadgets/hashes/anemoi/anemoi_parameters.tcc
Outdated
Show resolved
Hide resolved
…from bignum to size_t to match the anemoi_parameters class
…e that alpha is equal to 5
…rom the libsnark repo; added a readme file explaining how to download this implementation from the Anemoi repo
…dgets Anemoi hash r1cs remove duplicate gadgets (depends on #76)
No description provided.