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 Example For Poseidon Hash Function #34

Open
AtropineTears opened this issue Nov 11, 2021 · 6 comments
Open

Add Example For Poseidon Hash Function #34

AtropineTears opened this issue Nov 11, 2021 · 6 comments

Comments

@AtropineTears
Copy link

Hello,

Could you add an example for producing a proof of the preimage with the Poseidon Hash Function. It would be much appreciated.

Thank you

@meilof
Copy link
Owner

meilof commented Nov 18, 2021 via email

@AtropineTears
Copy link
Author

Hi,

Can you help me? I am trying to implement proving a Poseidon preimage hash but cannot seem to get it to work right.

I am looking at input of 32 bytes that will be hashed and proving that the prover knows the 32 bytes.

Thank you!

@AtropineTears
Copy link
Author

Is the text example hashing:

0, 1, 2, 3,4

I would like to see a method of hashing a byte string

@meilof
Copy link
Owner

meilof commented Nov 18, 2021 via email

@AtropineTears
Copy link
Author

AtropineTears commented Nov 18, 2021

Yes,

Can you add Poseidon to the /examples/ folder. I want to see an example of it.

An example would be of proving you know:

333fcb4ee1aa7c115355ec66ceac917c8bfd815bf7587d325aec1864edd24e34d5abe2c6b1b5ee3face62fed78dbef802f2a85cb91d455a8f5249d330853cb3c

preimage, for example

@AtropineTears
Copy link
Author

I don't know much of python so it is hard of me to use it. I am trying to find out how to hash a preimage and prove it.

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

2 participants