Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/asn-d6/curdleproofs
/ functions
Functions
105 in github.com/asn-d6/curdleproofs
⨍
Functions
105
◇
Types & classes
18
↓ 52 callers
Method
mul
(self, other: Fr)
src/commitments.rs:73
↓ 43 callers
Function
msm
An ergonomic MSM function
src/util.rs:19
↓ 24 callers
Method
append_list
(&mut self, label: &'static [u8], items: &[&T])
src/transcript.rs:35
↓ 23 callers
Method
get_and_append_challenge
(&mut self, label: &'static [u8])
src/transcript.rs:41
↓ 14 callers
Method
append
(&mut self, label: &'static [u8], item: &impl CanonicalSerialize)
src/transcript.rs:29
↓ 13 callers
Function
generate_blinders
Generate and return `n` blinders
src/util.rs:32
↓ 10 callers
Method
accumulate_check
Accumulate the check $C = \bm{x} \times \bm{V}$
src/msm_accumulator.rs:37
↓ 10 callers
Function
deserialize_g1projective_vec
( mut r: R, n: usize, )
src/util.rs:116
↓ 10 callers
Function
msm_from_projective
An ergonomic MSM function that works with projective points
src/util.rs:25
↓ 10 callers
Function
serialize_g1projective_vec
( v: &[G1Projective], mut w: W, )
src/util.rs:125
↓ 9 callers
Function
from_bytes_g1affine
(buf: &G1PointBytes)
src/whisk.rs:313
↓ 7 callers
Function
generate_crs
Generate a randomly generated CRS
src/curdleproofs.rs:25
↓ 7 callers
Function
get_permutation
Return `vec_a` permuted
src/util.rs:77
↓ 7 callers
Function
inner_product
Return the inner product of two field vectors
src/util.rs:67
↓ 7 callers
Function
to_bytes_g1affine
(g1: &G1Affine)
src/whisk.rs:307
↓ 7 callers
Method
try_into
(self)
src/crs.rs:107
↓ 6 callers
Function
from_hex_g1affine
(s: &str)
src/crs.rs:132
↓ 6 callers
Function
sum_affine_points
(affine_points: &[G1Affine])
src/util.rs:108
↓ 5 callers
Function
to_hex_g1affine
(p: &G1Affine)
src/crs.rs:128
↓ 4 callers
Function
apply_permutation_group
(vec_a: Vec<G1Affine>, permutation: &Vec<u32>)
benches/perf.rs:19
↓ 4 callers
Function
get_k_commitment
(k: &Fr)
src/whisk.rs:370
↓ 3 callers
Function
generate_whisk_shuffle_proof
Create a whisk shuffle proof and serialize it for Whisk # Arguments `crs` - Curdleproofs CRS (Common Reference String), a trusted setup `pr
src/whisk.rs:144
↓ 3 callers
Function
generate_whisk_tracker_proof
( rng: &mut T, tracker: &WhiskTracker, k: &Fr, )
src/whisk.rs:228
↓ 3 callers
Function
shuffle_permute_and_commit_input
Given input vectors, the permutation and the randomizer, shuffle and permute the input. Basically, prepare everything so that a shuffle proof can be
src/util.rs:83
↓ 3 callers
Function
unzip_trackers
( trackers: &[WhiskTracker], )
src/whisk.rs:265
↓ 2 callers
Function
compute_initial_k
(index: u64)
src/whisk.rs:573
↓ 2 callers
Function
deserialize_tracker_proof
( proof_bytes: &TrackerProofBytes, )
src/whisk.rs:301
↓ 2 callers
Function
from_bytes_fr
Convert bytes to a BLS field scalar. The output is not uniform over the BLS field. Reads bytes in big-endian, and converts them to a field element. I
src/whisk.rs:343
↓ 2 callers
Function
from_hex_g1affine_vec
(v: &[String])
src/crs.rs:124
↓ 2 callers
Function
generate_random_points
(num_points: usize, seed: &str)
tests/crs.rs:13
↓ 2 callers
Function
generate_shuffle_trackers
( rng: &mut T, )
src/whisk.rs:375
↓ 2 callers
Method
get_and_append_challenges
(&mut self, label: &'static [u8], n: usize)
src/transcript.rs:56
↓ 2 callers
Function
get_verification_scalars_bitstring
Get a bitstring to derive the verification scalars using binary decomposition. Used to [optimize the verifier](crate::notes::optimizations#ipa-verific
src/util.rs:40
↓ 2 callers
Method
log2_n
(&self)
src/crs.rs:71
↓ 2 callers
Function
process_block
(crs: &CurdleproofsCrs, state: &mut State, block: &Block)
src/whisk.rs:475
↓ 2 callers
Function
produce_block
( crs: &CurdleproofsCrs, state: &State, proposer_k: &Fr, proposer_index: u64,
src/whisk.rs:522
↓ 2 callers
Method
serialize
(&self, mut w: W)
src/whisk.rs:84
↓ 2 callers
Function
test_crs
(crs: &CurdleproofsCrs, n: usize)
tests/crs.rs:100
↓ 2 callers
Function
to_hex_g1affine_vec
(v: &[G1Affine])
src/crs.rs:120
↓ 1 callers
Function
generate_ipa_blinders
Generate two blinder vectors `r` and `z` that satisfy the following constraints: <r, d> + <z, c> == 0 ^ <r, z> == 0 We do this by solving a system o
src/inner_product_argument.rs:42
↓ 1 callers
Function
generate_shuffle_trackers
( rng: &mut T, n: usize, )
tests/crs.rs:116
↓ 1 callers
Function
serialize_tracker_proof
(proof: &TrackerProof)
src/whisk.rs:295
↓ 1 callers
Function
shuffle_proof_fixture
(n: usize)
src/whisk.rs:412
↓ 1 callers
Method
verification_scalars
( &self, n: usize, transcript: &mut Transcript, )
src/same_multiscalar_argument.rs:154
↓ 1 callers
Method
verification_scalars
( &self, n: usize, transcript: &mut Transcript, )
src/inner_product_argument.rs:202
↓ 1 callers
Method
verify
( &self, crs: &CurdleproofsCrs, vec_R: &Vec<G1Affine>, vec_S: &Vec<G1Affine>,
src/curdleproofs.rs:197
↓ 1 callers
Function
zip_trackers
( vec_r: &[G1Affine], vec_s: &[G1Affine], )
src/whisk.rs:279
Method
add
(self, other: Self)
src/commitments.rs:61
Function
benchmark_shuffle
(c: &mut Criterion)
benches/perf.rs:26
Function
bls_g1_scalar_multiply
G1 scalar multiplication
src/whisk.rs:323
Method
deserialize
(mut r: R, log2_n: usize)
src/same_multiscalar_argument.rs:276
Method
deserialize
(mut r: R, log2_n: usize)
src/inner_product_argument.rs:340
Method
deserialize
(mut r: R, log2_n: usize)
src/curdleproofs.rs:312
Method
deserialize
(mut r: R, log2_n: usize)
src/whisk.rs:90
Method
deserialize
(mut r: R, log2_n: usize)
src/same_permutation_argument.rs:179
Method
deserialize
(mut r: R, log2_n: usize)
src/grand_product_argument.rs:255
Function
ethereum_crs_128_seed
()
tests/crs.rs:55
Function
ethereum_crs_128_unsafe_rand
()
tests/crs.rs:92
Function
ethereum_crs_8_seed
()
tests/crs.rs:73
Method
from_k
(rng: &mut T, k: &Fr)
src/whisk.rs:57
Method
from_k_r
(k: &Fr, r: &Fr)
src/whisk.rs:45
Method
from_points
(ell: usize, points: &[G1Affine])
src/crs.rs:37
Method
from_rand
(rng: &mut T)
src/whisk.rs:61
Function
g1_generator
Returns G1 generator (x,y)
src/whisk.rs:318
Method
generate_crs
Generate a randomly generated (unsafe) CRS
src/crs.rs:61
Function
is_valid_whisk_shuffle_proof
Verify a whisk shuffle proof # Arguments `crs` - Curdleproofs CRS (Common Reference String), a trusted setup `pre_trackers`
src/whisk.rs:106
Function
is_valid_whisk_tracker_proof
Verify knowledge of `k` such that `tracker.k_r_g == k * tracker.r_g` and `k_commitment == k * BLS_G1_GENERATOR`. Defined in <https://github.com/nalinb
src/whisk.rs:183
Method
new
()
src/msm_accumulator.rs:28
Method
new
( crs_G_t: &G1Projective, crs_G_u: &G1Projective, crs_H: &G1Projective, R: G1
src/same_scalar_argument.rs:39
Method
new
( mut crs_G_vec: Vec<G1Affine>, A: G1Projective, Z_t: G1Projective, Z_u: G1Pr
src/same_multiscalar_argument.rs:54
Method
new
( mut crs_G_vec: Vec<G1Affine>, mut crs_G_prime_vec: Vec<G1Affine>, crs_H: &G1Projecti
src/inner_product_argument.rs:98
Method
new
( crs: &CurdleproofsCrs, vec_R: Vec<G1Affine>, vec_S: Vec<G1Affine>, vec_T: V
src/curdleproofs.rs:59
Method
new
Commit to `T` using provided CRS and randomness `r`
src/commitments.rs:44
Method
new
( crs_G_vec: &Vec<G1Affine>, crs_H_vec: &Vec<G1Affine>, crs_U: &G1Projective, // This
src/same_permutation_argument.rs:40
Method
new
( crs_G_vec: &Vec<G1Affine>, crs_H_vec: &Vec<G1Affine>, crs_U: &G1Projective, // This
src/grand_product_argument.rs:43
Function
rand_scalar
Rand scalar
src/whisk.rs:328
Function
serde_crs_json
()
src/crs.rs:149
Function
serde_fr_rand
()
src/whisk.rs:355
Function
serde_g1_roundtrip
()
src/whisk.rs:364
Method
serialize
(&self, mut w: W)
src/same_multiscalar_argument.rs:263
Method
serialize
(&self, mut w: W)
src/inner_product_argument.rs:328
Method
serialize
(&self, mut w: W)
src/curdleproofs.rs:300
Method
serialize
(&self, mut w: W)
src/same_permutation_argument.rs:173
Method
serialize
(&self, mut w: W)
src/grand_product_argument.rs:248
Function
test_bad_shuffle_arguments
()
src/curdleproofs.rs:385
Function
test_gprod_argument
()
src/grand_product_argument.rs:274
Function
test_group_commit
()
src/commitments.rs:88
Function
test_inner_product
()
src/inner_product_argument.rs:450
Function
test_inner_product_argument
()
src/inner_product_argument.rs:364
Function
test_msm_accumulator
()
src/msm_accumulator.rs:82
Function
test_same_msm_argument
()
src/same_multiscalar_argument.rs:300
Function
test_same_perm_argument
()
src/same_permutation_argument.rs:199
Function
test_same_scalar_argument
()
src/same_scalar_argument.rs:146
Function
test_shuffle_argument
()
src/curdleproofs.rs:336
Function
to_bytes_fr
Serialize field element to bytes
src/whisk.rs:333
Method
try_from
(value: &CurdleproofsCrs)
src/crs.rs:92
Method
verify
Verify all checks accumulated on this MSM accumulator
src/msm_accumulator.rs:55
Method
verify
( &self, crs_G_t: &G1Projective, crs_G_u: &G1Projective, crs_H: &G1Projective
src/same_scalar_argument.rs:96
Method
verify
( &self, crs_G_vec: &[G1Affine], A: G1Projective, Z_t: G1Projective,
src/same_multiscalar_argument.rs:213
Method
verify
( &self, crs_G_vec: &Vec<G1Affine>, crs_H: &G1Projective, C: G1Projective, //
src/inner_product_argument.rs:264
next →
1–100 of 105, ranked by callers