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

Allow personalization in FieldBasedHash gadgets too #78

Open
DanieleDiBenedetto opened this issue Oct 29, 2020 · 0 comments
Open

Allow personalization in FieldBasedHash gadgets too #78

DanieleDiBenedetto opened this issue Oct 29, 2020 · 0 comments

Comments

@DanieleDiBenedetto
Copy link
Collaborator

DanieleDiBenedetto commented Oct 29, 2020

Currently, the FieldBasedHash trait init function allows to initialize an implementor with a personalization array of FieldElement.
The FieldBasedHashGadget instead doesn't allow this.
The result of primitive and gadget it's the same if the primitive is initialized with no personalization, or if the gadget takes as additional input the personalization and as many Field Elements as envisioned by the variable-length padding strategy.
Let's modify the gadget to be able to take as input a personalization too, hiding this logic from the user.

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

No branches or pull requests

1 participant