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 PoL #718

Merged
merged 8 commits into from
Sep 3, 2024
Merged

Add PoL #718

merged 8 commits into from
Sep 3, 2024

Conversation

zeegomo
Copy link
Contributor

@zeegomo zeegomo commented Sep 2, 2024

Promote PoL and CL crates from nomos-pocs.
CL is mostly unchanged, while PoL has gone through some refactors. I didn't include the crate in the workspace as it has special build instruction and e.g. does not support clippy

@zeegomo zeegomo force-pushed the add-pol branch 6 times, most recently from 4f74f3a to d5cdc22 Compare September 2, 2024 23:38
Copy link
Collaborator

@danielSanchezQ danielSanchezQ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good!
CI is failing in the risc0 tests though


pub fn leaf(data: &[u8]) -> [u8; 32] {
let mut hasher = Sha256::new();
hasher.update(b"NOMOS_MERKLE_LEAF");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should consider moving to tag codes if necessary. In Merkle tree constraints, that could save a lot of cycles.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you elaborate?

Copy link

@thomaslavaur thomaslavaur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

cl = { path = "../../../cl/cl" }
leader_proof_statements = { path = "../../proof_statements" }
nomos_pol_risc0_proofs = { path = "../risc0_proofs" }
risc0-zkvm = { version = "1.0", features = ["prove", "metal"] }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could it be that the risc0 test fails because metal feature flag is being used on the linux host?

@zeegomo zeegomo merged commit 6f6bb61 into master Sep 3, 2024
12 checks passed
@zeegomo zeegomo deleted the add-pol branch September 3, 2024 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants