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

Add a test_sponge public function #112

Open
mmagician opened this issue Jun 11, 2023 · 0 comments
Open

Add a test_sponge public function #112

mmagician opened this issue Jun 11, 2023 · 0 comments

Comments

@mmagician
Copy link
Member

For documentation and testing purposes, it would be great to obtain a sponge without much code overhead.
The simplest thing to do is to move poseidon_sponge_for_test methods from ark-poly-commit, which are pub(crate) functions for testing there, and to re-expose them under test_sponge in the root module here.

Alternatively this could go into ark-std, similar to test_rng: https://github.com/arkworks-rs/std/blob/4cee4bc18ff6b0159c00d48622181db145938601/src/rand_helper.rs#L37

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