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

Added presentation message to DL proof generation and validation #90

Merged
merged 7 commits into from
Jan 27, 2025

Conversation

christianpaquin
Copy link
Contributor

@christianpaquin christianpaquin commented Jan 17, 2025

Adds a presentation message to the DL proof generation and validation process. Addresses part 1 of issue #89.

The presentation message is expected by the DLogPoK prove and verify functions, which in turn is passed in through the Groth16 show and verify functions.

@christianpaquin christianpaquin marked this pull request as ready for review January 22, 2025 21:38
@christianpaquin
Copy link
Contributor Author

Ready to merge, after fixing CI issue with ark-circom (FYI, @zaverucha)

christianpaquin and others added 3 commits January 23, 2025 11:54
Long-term we plan to move to circom-compat in arkworks version 5.0, and this
forked code will be removed.

Signed-off-by: Greg Zaverucha <gregz@microsoft.com>
) {
let proof_timer = std::time::Instant::now();
let paths = CachePaths::new(base_path);
let io_locations = IOLocations::new(&paths.io_locations);
let mut client_state: ClientState<CrescentPairing> = read_from_file(&paths.client_state).unwrap();
let range_pk : RangeProofPK<CrescentPairing> = read_from_file(&paths.range_pk).unwrap();

let pm = presentation_message.as_deref().map(|s| s.as_bytes());
Copy link
Collaborator

Choose a reason for hiding this comment

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

How does pm get defined when presentation_message is None? (same question for line 193)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

pm stays None in that case, and that becomes an empty string in the crypto layer (and the transcript code hashes a [0,0,0,0] length array)

@christianpaquin christianpaquin merged commit 8c39402 into main Jan 27, 2025
4 checks passed
@christianpaquin christianpaquin deleted the add-presentation-message branch January 27, 2025 13:27
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

Successfully merging this pull request may close these issues.

2 participants