-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
Ready to merge, after fixing CI issue with ark-circom (FYI, @zaverucha) |
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()); |
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.
How does pm get defined when presentation_message is None? (same question for line 193)
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.
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)
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
andverify
functions, which in turn is passed in through the Groth16 show and verify functions.