-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: restrict visibility of nonnative * refactor: restrict visibility of ECC * refactor: restrict visibility of gadgets::r1cs * refactor: restrict visibility of gadgets::utils * refactor: simple cleanup * test: check field representations in used libraries * chore: minor cleanups * refactor: simplify AllocatedPoint::default * refactor: simplify AllocatedPointNonInfinity::to_allocated_point
- Loading branch information
1 parent
ba34148
commit bb2b233
Showing
12 changed files
with
90 additions
and
57 deletions.
There are no files selected for viewing
This file contains 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 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 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 |
---|---|---|
@@ -1,5 +1,20 @@ | ||
//! This module implements various gadgets necessary for Nova and applications built with Nova. | ||
pub mod ecc; | ||
pub(crate) mod nonnative; | ||
pub(crate) mod r1cs; | ||
pub(crate) mod utils; | ||
mod ecc; | ||
pub(crate) use ecc::AllocatedPoint; | ||
|
||
mod nonnative; | ||
pub(crate) use nonnative::{bignat::nat_to_limbs, util::f_to_nat}; | ||
|
||
mod r1cs; | ||
pub(crate) use r1cs::{ | ||
conditionally_select_alloc_relaxed_r1cs, conditionally_select_vec_allocated_relaxed_r1cs_instance, | ||
}; | ||
pub(crate) use r1cs::{AllocatedR1CSInstance, AllocatedRelaxedR1CSInstance}; | ||
|
||
mod utils; | ||
#[cfg(test)] | ||
pub(crate) use utils::alloc_one; | ||
pub(crate) use utils::{ | ||
alloc_num_equals, alloc_scalar_as_base, alloc_zero, conditionally_select_vec, le_bits_to_num, | ||
scalar_as_base, | ||
}; |
This file contains 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 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 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 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 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 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 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 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 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
bb2b233
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.
Benchmarks
Table of Contents
Overview
This benchmark report shows the Arecibo GPU benchmarks.
NVIDIA L4
Intel(R) Xeon(R) CPU @ 2.20GHz
32 vCPUs
125 GB RAM
Workflow run: https://github.com/lurk-lab/arecibo/actions/runs/8102493867
Benchmark Results
RecursiveSNARK-NIVC-2
ref=ba34148
ref=bb2b233
Prove-NumCons-6540
44.55 ms
(✅ 1.00x)44.33 ms
(✅ 1.00x faster)Verify-NumCons-6540
34.13 ms
(✅ 1.00x)34.03 ms
(✅ 1.00x faster)Prove-NumCons-1028888
327.18 ms
(✅ 1.00x)317.28 ms
(✅ 1.03x faster)Verify-NumCons-1028888
248.14 ms
(✅ 1.00x)249.44 ms
(✅ 1.01x slower)CompressedSNARK-NIVC-Commitments-2
ref=ba34148
ref=bb2b233
Prove-NumCons-6540
10.57 s
(✅ 1.00x)10.50 s
(✅ 1.01x faster)Verify-NumCons-6540
50.70 ms
(✅ 1.00x)50.29 ms
(✅ 1.01x faster)Prove-NumCons-1028888
53.69 s
(✅ 1.00x)53.64 s
(✅ 1.00x faster)Verify-NumCons-1028888
50.72 ms
(✅ 1.00x)51.07 ms
(✅ 1.01x slower)Made with criterion-table