-
Notifications
You must be signed in to change notification settings - Fork 123
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
Pedersen commitment example in c++ #397
Conversation
#include <cassert> | ||
#include <nvml.h> | ||
|
||
#define CURVE_ID 1 |
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.
You can use
#define CURVE_ID BN254
This is much more readable
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.
Also, would be great to change it in all examples
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.
done
set(CMAKE_CUDA_FLAGS_RELEASE "") | ||
set(CMAKE_CUDA_FLAGS_DEBUG "${CMAKE_CUDA_FLAGS_DEBUG} -g -G -O0") | ||
# change the path to your Icicle location | ||
include_directories("../../../icicle") |
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.
This isn't specific to this example but it would be good to compile ICICLE once for all of the c++ examples and use target_link_libraries
to link icicle. It would reduce the CI time significantly
Co-authored-by: Jeremy Felder <[email protected]>
## What's in the example | ||
|
||
1. Define the curve and the size of commitment vector | ||
2. Use public random seed to transparently generate elliptic points without known discrete logarithm |
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.
suggested rewrite: points on the elliptic curve
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.
Thanks! Corrected.
* initial commit * random elliptic points * initial complete example * public random seed to prevent knowing dlogs * cleaned up code * add README * Update examples/c++/pedersen-commitment/README.md Co-authored-by: Jeremy Felder <[email protected]> * updates to PR comments * codespell compliance * corrected terminology in README --------- Co-authored-by: Jeremy Felder <[email protected]>
Describe the changes
Show using Icicle's MSM to perform Pedersen commitment