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

restore poseidon-paramgen #58

Open
redshiftzero opened this issue Apr 4, 2024 · 0 comments
Open

restore poseidon-paramgen #58

redshiftzero opened this issue Apr 4, 2024 · 0 comments

Comments

@redshiftzero
Copy link
Member

In #53, several crates in this workspace (poseidon-parameters, poseidon-permutation, poseidon377) were rewritten to use const generics such that they can be used on embedded platforms. During that work, poseidon-paramgen was removed as a build time dependency of poseidon377 in favor of hardcoding the existing parameter set in the params module. It would be nice to rewrite poseidon-paramgen such that we have a reproducible way of generating the parameters that are in use for Penumbra.

One challenge here is that now all matrices are of sizes fixed at compile time. This is fine for e.g. MDS matrices and submatrices, where the size of the matrices are determined by the state size of the hash function. However, the handling of the round constants will need to be reworked across all repositories in this workspace. This is because the size of the matrix of the round constants is (number_of_rounds, state_size) - but we don't know the number of rounds until we run the logic in the parameter generation code (i.e. at runtime, not at compile time).

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