jellyfish icon indicating copy to clipboard operation
jellyfish copied to clipboard

Ark-sponge compatibilty

Open alxiong opened this issue 3 years ago • 3 comments

Currently we have rescue-based sponge construction whereas ark-sponge repo supports Poseidon. But it may be beneficial to be compliant to their trait.

alxiong avatar Jan 27 '22 00:01 alxiong

working on #46, might as well get this done :-)

zhenfeizhang avatar Mar 30 '22 19:03 zhenfeizhang

while working on this, i realized that their interfaces is really not compatible with ours. They are designed to manipulate on bits as in the case of poseidon. we can fit there but we will be wasting a few (de)serializations.

I think we need to define a proper API ourselves, along the line of https://docs.rs/sha2/latest/sha2/trait.Digest.html

zhenfeizhang avatar Mar 30 '22 20:03 zhenfeizhang

while working on this, i realized that their interfaces is really not compatible with ours. They are designed to manipulate on bits as in the case of poseidon. we can fit there but we will be wasting a few (de)serializations.

I think we need to define a proper API ourselves, along the line of https://docs.rs/sha2/latest/sha2/trait.Digest.html

Take it back. We can support those APIs

zhenfeizhang avatar Apr 05 '22 20:04 zhenfeizhang