-
Notifications
You must be signed in to change notification settings - Fork 150
Add Hyrax multilinear PCS #130
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
Merged
Merged
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
f13a576
added hyrax PCS
Antonio95 69896d4
adapt the scheme to https://github.com/arkworks-rs/algebra/issues/691
mmagician ecf73f4
remove unused code in hyrax
mmagician f424c48
expanded on Future Optimisations section
Antonio95 dd58a1a
Merge branch 'master' into hyrax-pcs
mmagician 06c59e9
Remove Prepared data types from `PolynomialCommitment` trait impl
mmagician a845018
merged master including new crate and directory structure
Antonio95 12afb33
added necessary dependencies overwritten by previous merge commit
Antonio95 6967c28
fixed hashbrown version
Antonio95 dd82dbc
pulled
Antonio95 a029081
created separate benchmark files
Antonio95 a7f465a
fixed duplicate dependency to match other branches
Antonio95 c010663
patched bn254 dep
Antonio95 d415053
restructured benchmark macros to accept ML schemes; benches working
Antonio95 3ef7309
Hyrax fix bench (#42)
mmagician cc1f75a
Hyrax parallel `commit` (#39)
mmagician 7c7328d
Make Hyrax hiding again (#43)
Antonio95 55d7b58
Delete `IOPTranscript`, update with master (#50) (aka Hyrax++)
autquis d13296c
Merge branch 'master' into hyrax-pcs
autquis 1f988ac
Add a few comments and update `Cargo.toml`
autquis 5677c5b
Remove extra `cfg_iter!`
autquis c2e6412
Change `pedersen_commit` and add `cfg_into_iter!`
autquis ac4a14c
Hash and absorb
autquis f3495d0
various minor fixes
Antonio95 103669f
Reorder Hyrax checks
Cesar199999 eee8e0b
Add `ark-std` to patch
autquis 65ef67c
Downgrade `hashbrown`
autquis 67ddd9c
Fix breaking change from algebra/poly (#72)
Cesar199999 175a610
Reorder deps
autquis d3e3808
Add dummy doc for nightly
autquis 0858433
Fix `hashbrown` + Replace Blake2 by Blake3
autquis c2ba181
Revert to Blake2
autquis 9e310f5
Merge branch 'master' into hyrax-pcs
autquis 9b03b60
Fix merging issues
autquis f5924ee
Test if CI is happy
autquis cb20740
Revert and cleanup
autquis 5239162
Delete dummy doc
autquis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
use ark_pcs_bench_templates::*; | ||
use ark_poly::{DenseMultilinearExtension, MultilinearExtension}; | ||
|
||
use ark_bn254::{Fr, G1Affine}; | ||
use ark_ff::PrimeField; | ||
use ark_poly_commit::hyrax::HyraxPC; | ||
|
||
use rand_chacha::ChaCha20Rng; | ||
|
||
// Hyrax PCS over BN254 | ||
type Hyrax254 = HyraxPC<G1Affine, DenseMultilinearExtension<Fr>>; | ||
|
||
fn rand_poly_hyrax<F: PrimeField>( | ||
num_vars: usize, | ||
rng: &mut ChaCha20Rng, | ||
) -> DenseMultilinearExtension<F> { | ||
DenseMultilinearExtension::rand(num_vars, rng) | ||
} | ||
|
||
fn rand_point_hyrax<F: PrimeField>(num_vars: usize, rng: &mut ChaCha20Rng) -> Vec<F> { | ||
(0..num_vars).map(|_| F::rand(rng)).collect() | ||
} | ||
|
||
const MIN_NUM_VARS: usize = 12; | ||
const MAX_NUM_VARS: usize = 22; | ||
|
||
bench!(Hyrax254, rand_poly_hyrax, rand_point_hyrax); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.