-
Notifications
You must be signed in to change notification settings - Fork 231
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
feat: implement poseidon transcript #107
Conversation
Could you add a reason for why you rename |
|
Could you update the commit body to the last commit?
|
244b601
to
70f9bdc
Compare
|
d6334c4
to
7f28f5e
Compare
Halo2 uses a different config entry from the "default" config entries in arkworks, so renamed to `PoseidonConfigEntry`. See https://github.com/kroma-network/halo2/blob/7d0a36990452c8e7ebd600de258420781a9b7917/halo2_proofs/src/transcript/poseidon.rs#L28C31-L28C31
- Rename test - Use `TEST_F` instead of `TYPED_TEST` - Use `F` instead of `math::bls12_381::Fr`
7f28f5e
to
e905450
Compare
e905450
to
c6de27d
Compare
c6de27d
to
36a9429
Compare
36a9429
to
8825d63
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
8825d63
to
b733f83
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
See [PoseidonRead](https://github.com/kroma-network/halo2/blob/7d0a36990452c8e7ebd600de258420781a9b7917/halo2_proofs/src/transcript/poseidon.rs#L12-L100), [PoseidonWrite](https://github.com/kroma-network/halo2/blob/7d0a36990452c8e7ebd600de258420781a9b7917/halo2_proofs/src/transcript/poseidon.rs#L102-L174), [Transcript](https://github.com/kroma-network/halo2/blob/7d0a36990452c8e7ebd600de258420781a9b7917/halo2_proofs/src/transcript.rs#L43-L63), [TranscriptRead](https://github.com/kroma-network/halo2/blob/7d0a36990452c8e7ebd600de258420781a9b7917/halo2_proofs/src/transcript.rs#L65-L73) and [TranscriptWirte](https://github.com/kroma-network/halo2/blob/7d0a36990452c8e7ebd600de258420781a9b7917/halo2_proofs/src/transcript.rs#L75-L83).
b733f83
to
abf97b8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
This PR implements Poseidon Transcript (Poseidon Read/Write) along with a base class Transcript (Transcript, Transcript Read/Write) which will later also be used implementing Sha256 Transcript.
Note that Halo2 Poseidon Sponge is implemented for two variants compared to Poseidon Sponge from arkworks.
For the halo2 rust implementation, see link