Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/docknetwork/crypto
/ functions
Functions
2,782 in github.com/docknetwork/crypto
⨍
Functions
2,782
◇
Types & classes
723
↓ 4 callers
Function
write_vec
(mut w: W, v: &[G])
legogroth16/src/aggregation/srs.rs:414
↓ 3 callers
Method
_compute_new_post_add
Compute new accumulated value after addition. Described in section 2 of the paper
vb_accumulator/src/positive.rs:172
↓ 3 callers
Method
_compute_new_post_add_batch
Compute new accumulated value after batch addition. Described in section 3 of the paper
vb_accumulator/src/positive.rs:201
↓ 3 callers
Method
_compute_new_post_batch_updates
Compute new accumulated value after batch additions and removals. Described in section 3 of the paper
vb_accumulator/src/positive.rs:298
↓ 3 callers
Method
_compute_new_post_remove
Compute new accumulated value after removal. Described in section 2 of the paper
vb_accumulator/src/positive.rs:232
↓ 3 callers
Method
_remove
Common code for removing a single member from both accumulators. Reads and writes to state. Described in section 2 of the paper
vb_accumulator/src/positive.rs:250
↓ 3 callers
Method
_remove_batch
Common code for removing a batch of members from both accumulators. Reads and writes to state. Described in section 3 of the paper
vb_accumulator/src/positive.rs:281
↓ 3 callers
Method
_verify_schnorr_proof
( &self, revealed_msgs: &BTreeMap<usize, G::ScalarField>, challenge: &G::ScalarField,
kvac/src/bbdt_2016/proof_cdh.rs:391
↓ 3 callers
Method
absorb
(&mut self, data: &[u8])
merlin/src/strobe.rs:120
↓ 3 callers
Method
add_self_share
Called by a participant when it creates a share for itself
secret_sharing_and_dkg/src/common.rs:272
↓ 3 callers
Method
batch_updates
( &self, additions: Vec<G::ScalarField>, removals: &[G::ScalarField], sk: &Sec
vb_accumulator/src/kb_positive_accumulator/non_adaptive_accumulator.rs:85
↓ 3 callers
Function
bbs_sig_setup
( rng: &mut R, message_count: u32, )
test_utils/src/bbs.rs:37
↓ 3 callers
Function
calculate_coeff
( initial: G::Group, query: &[G], vk_param: G, assignment: &[<G::ScalarField as PrimeField>::B
legogroth16/src/prover.rs:585
↓ 3 callers
Method
challenge_bytes
Generate challenge from transcript by adding `k1_com`, `k2_com` and ensuring that the challenge is of `CHALLENGE_BIT_SIZE` bits max.
equality_across_groups/src/eq_across_groups.rs:439
↓ 3 callers
Method
challenge_contribution
(&self, mut writer: W)
equality_across_groups/src/ec/sw_scalar_mult.rs:197
↓ 3 callers
Method
challenge_contribution
( &self, accumulated: Option<&E::G1Affine>, Q: Option<&E::G1Affine>, apk: Opti
delegatable_credentials/src/protego/show/known_signer.rs:341
↓ 3 callers
Method
challenge_contribution
( &self, g: &G, h: &G, y: &G, z: &G, writer: W, )
schnorr_pok/src/inequality.rs:435
↓ 3 callers
Function
check
(chunk_bit_size: u8)
saver/src/saver_legogroth16.rs:205
↓ 3 callers
Function
check
(chunk_bit_size: u8)
saver/src/setup.rs:158
↓ 3 callers
Function
check_batch_witness_update_using_secret_key
Update an accumulator with a batch of updates, update existing witnesses of given elements and check that new witnesses are valid
vb_accumulator/src/witness.rs:1221
↓ 3 callers
Function
check_batch_witness_update_using_secret_key
Update an accumulator with a batch of updates, update existing witnesses of given elements and check that new witnesses are valid
vb_accumulator/src/kb_positive_accumulator/witness.rs:328
↓ 3 callers
Function
check_keygen
(chunk_bit_size: u8)
saver/src/keygen.rs:318
↓ 3 callers
Function
check_poly
(x: Vec<Fr>)
compressed_sigma/src/partial_knowledge.rs:392
↓ 3 callers
Method
commit_decomposed_given_base_powers
Same as `commit_decomposed` but takes `[1, base, base^2, ..., base^{n-1}]`
smc_range_proof/src/common.rs:58
↓ 3 callers
Method
compute_commitment
Returns `v*g + <g_vec, n> + <h_vec, l>`
bulletproofs_plus_plus/src/setup.rs:76
↓ 3 callers
Method
compute_joint_randomness
Use the shares received from all parties to compute the joint randomness
oblivious_transfer/src/cointoss.rs:123
↓ 3 callers
Method
compute_new_post_batch_updates
Compute new accumulated value after batch additions and removals
vb_accumulator/src/positive.rs:552
↓ 3 callers
Method
compute_pedersen_commitment
Create Pedersen commitment as `C = v*G + gamma*H_vec[0]`
bulletproofs_plus_plus/src/setup.rs:71
↓ 3 callers
Method
compute_u
(&self, idx: usize)
oblivious_transfer/src/ot_based_multiplication/batch_mul_multi_party.rs:228
↓ 3 callers
Method
convert
ConvertSK from the paper.
delegatable_credentials/src/mercurial_sig.rs:113
↓ 3 callers
Function
create_new_witnesses_and_their_commitment
Create the new witnesses and commit to them in a single commitment from the given witnesses and their individual commitments
compressed_sigma/src/partial_knowledge.rs:151
↓ 3 callers
Function
create_poly
Create polynomial referred to p(X) in the paper. p(0) = 1 and p(X) = 0 for all X in given vector `x`, thus its a polynomial of degree `x.len()`. From
compressed_sigma/src/partial_knowledge.rs:29
↓ 3 callers
Function
deal_secret
Same as `deal_random_secret` above but accepts the secret to share
secret_sharing_and_dkg/src/shamir_ss.rs:29
↓ 3 callers
Method
decrypt
Decrypt the given ciphertext and return the message and a "commitment" to randomness to help in verifying the decryption without knowledge of secret k
saver/src/encryption.rs:289
↓ 3 callers
Function
do_phase1
( rng: &mut StdRng, threshold_signers: ParticipantId, protocol_id: Vec<u8>, )
benches/benches/syra.rs:44
↓ 3 callers
Function
do_phase2
( rng: &mut StdRng, threshold_signers: ParticipantId, gadget_vector: &GadgetVector<Fr, KAPPA, STAT
benches/benches/syra.rs:102
↓ 3 callers
Function
evaluate_constraint
(terms: &'a [(LHS, usize)], assignment: &'a [RHS])
legogroth16/src/r1cs_to_qap.rs:15
↓ 3 callers
Method
finalize
Called by a participant when it has received shares from all participants. Computes the final share of the distributed secret
secret_sharing_and_dkg/src/common.rs:364
↓ 3 callers
Function
find_number_of_digits
Returns what the paper calls l and calculated as `ceil(log_u(range+1))`. Here we assume that `base - 1` divides `range`.
smc_range_proof/src/cls_range_proof/util.rs:67
↓ 3 callers
Function
find_sumset_boundaries
Returns what the paper calls `G_i`, `range` is called `H` and `num` is called `l` in the paper. Calculates as per Theorem 2 in the paper
smc_range_proof/src/cls_range_proof/util.rs:77
↓ 3 callers
Method
finish
Finish phase 2 to get the user secret key share to be sent to the user.
syra/src/threshold_issuance.rs:177
↓ 3 callers
Method
for_aggregate
(&self)
proof_system/src/prover.rs:1142
↓ 3 callers
Method
for_aggregation
(&self)
proof_system/src/statement_proof.rs:237
↓ 3 callers
Function
gen_messages
( rng: &mut R, count: u32, chunk_bit_size: u8, )
saver/src/encryption.rs:911
↓ 3 callers
Method
gen_partial_proof
Generate a partial proof, i.e. don't generate responses for message indices in `skip_responses_for` as these will be generated by some other protocol.
bbs_plus/src/proof.rs:295
↓ 3 callers
Method
gen_partial_proof
Generate a partial proof, i.e. don't generate responses for message indices in `skip_responses_for` as these will be generated by some other protocol.
kvac/src/bbdt_2016/proof_cdh.rs:209
↓ 3 callers
Method
gen_partial_proof
(self)
schnorr_pok/src/partial.rs:112
↓ 3 callers
Method
gen_proof
( self, challenge: &E::ScalarField, )
vb_accumulator/src/proofs_cdh.rs:120
↓ 3 callers
Method
gen_proof
(self, challenge: &E::ScalarField)
smc_range_proof/src/cls_range_proof/range_proof_cdh.rs:150
↓ 3 callers
Method
gen_show
( self, user_secret_key: Option<&UserSecretKey<E>>, challenge: &E::ScalarField, )
delegatable_credentials/src/protego/show/known_signer.rs:390
↓ 3 callers
Method
generate_omega_for_both_witnesses
Call this on the accumulator before update
vb_accumulator/src/kb_universal_accumulator/witness.rs:493
↓ 3 callers
Method
get_comm_shares_and_salts_for_zero_sharing_protocol_with_other
( &self, other_id: &ParticipantId, )
bbs_plus/src/threshold/randomness_generation_phase.rs:29
↓ 3 callers
Method
get_comm_shares_and_salts_for_zero_sharing_protocol_with_other
( &self, other_id: &ParticipantId, )
short_group_sig/src/threshold_weak_bb_sig.rs:155
↓ 3 callers
Method
get_encryption_gens
( &'a self, setup_params: &'a [SetupParams<E>], st_idx: usize, )
proof_system/src/statement/saver.rs:94
↓ 3 callers
Method
get_params_and_comm_key_and_sk
( &'a self, setup_params: &'a [SetupParams<E>], st_idx: usize, )
proof_system/src/statement/bound_check_smc_with_kv.rs:167
↓ 3 callers
Method
get_setup_params
( &'a self, setup_params: &'a [SetupParams<E>], st_idx: usize, )
proof_system/src/statement/bound_check_bpp.rs:58
↓ 3 callers
Method
get_smc_params
(&self)
proof_system/src/statement/bound_check_smc_with_kv.rs:50
↓ 3 callers
Function
get_sumset_parameters
Pre-requisites of applying sumset protocol Returns number of digits, sumset boundaries (G), randomness multiple and digits of the adapted value.
smc_range_proof/src/cls_range_proof/util.rs:117
↓ 3 callers
Method
has_shares_from_all_who_committed
Returns true if it has got shares from all other participants that sent commitments.
oblivious_transfer/src/cointoss.rs:144
↓ 3 callers
Function
hash_to_field
( index: u32, q: &[u8], hasher: &DefaultFieldHasher<D>, )
oblivious_transfer/src/ot_extensions/kos_ote.rs:392
↓ 3 callers
Function
inner_product_and_single_commitments
( c_left: &[E::G1Affine], c_right: &[E::G1Affine], r_left_bi: &[<E::ScalarField as PrimeField>::Bi
legogroth16/src/aggregation/utils.rs:47
↓ 3 callers
Method
into_par_iter
(self)
utils/src/pairs.rs:178
↓ 3 callers
Method
is_empty
(&self)
proof_system/src/meta_statement.rs:87
↓ 3 callers
Method
is_non_zero
(&self)
short_group_sig/src/bb_sig.rs:170
↓ 3 callers
Method
is_valid
A witness equality should have at least 2 witness references.
proof_system/src/meta_statement.rs:64
↓ 3 callers
Method
left
Returns underlying left elements.
utils/src/pairs.rs:86
↓ 3 callers
Method
max_size
Maximum elements the accumulator should hold
vb_accumulator/src/universal.rs:213
↓ 3 callers
Function
multiply_by_8
(n: T)
oblivious_transfer/src/util.rs:48
↓ 3 callers
Function
multiply_many_polys
Multiply given polynomials together
utils/src/poly.rs:26
↓ 3 callers
Method
num_extensions
(&self)
oblivious_transfer/src/ot_based_multiplication/dkls18_mul_2p.rs:65
↓ 3 callers
Method
num_proofs
(&self)
bulletproofs_plus_plus/src/range_proof_arbitrary_range.rs:111
↓ 3 callers
Function
pad_homomorphisms_to_have_same_size
Pad given homomorphisms such that all have the same size after padding
compressed_sigma/src/utils.rs:10
↓ 3 callers
Function
poly_from_given_updates
Create a polynomial with given points in `updates` as: `(updates[0]-x) * (updates[1]-x) * (updates[2] - x)...(updates[last] - x)`
vb_accumulator/src/batch_utils.rs:43
↓ 3 callers
Method
pre_verify
Basic validations before signature verification like there is at-least 1 message, the number of messages are supported by params, signature is non-zer
bbs_plus/src/signature_23.rs:113
↓ 3 callers
Method
randomize
Randomize the set commitment and the corresponding opening
delegatable_credentials/src/set_commitment.rs:358
↓ 3 callers
Method
randomize
( self, rng: &mut R, user_public_key: &UserPublicKey<E>, update_key: Option<&U
delegatable_credentials/src/msbm/issuance.rs:139
↓ 3 callers
Method
receive_commitment
Process received commitments for joint randomness and zero sharing protocol
bbs_plus/src/threshold/randomness_generation_phase.rs:43
↓ 3 callers
Method
receive_responses
( &mut self, sender_id: ParticipantId, responses: Responses, )
oblivious_transfer/src/ot_based_multiplication/base_ot_multi_party_pairwise.rs:195
↓ 3 callers
Method
remove
( &self, element: &G::ScalarField, sk: &SecretKey<G::ScalarField>, state: &mut
vb_accumulator/src/kb_positive_accumulator/non_adaptive_accumulator.rs:51
↓ 3 callers
Method
serialize_uncompressed
( &self, mut writer: W, )
kvac/src/bbs_sharp/proof.rs:672
↓ 3 callers
Function
setup_kb_universal_accum_given_domain
( rng: &mut StdRng, domain: Vec<Fr>, )
test_utils/src/accumulators.rs:95
↓ 3 callers
Method
size
(&self)
vb_accumulator/src/persistence.rs:95
↓ 3 callers
Function
skip_up_to_n
Skips up to `n` elements from the iterator using supplied random generator.
utils/src/iter.rs:85
↓ 3 callers
Function
solve_discrete_log_bsgs_alt
Solve discrete log using Baby Step Giant Step with worse worst-case performance but better average case performance as described in section 2 of <http
utils/src/solve_discrete_log.rs:36
↓ 3 callers
Method
threshold
(&self)
secret_sharing_and_dkg/src/common.rs:110
↓ 3 callers
Method
to_keyed_proof
Create a new sub-proof that can be verified by someone with the secret key. This doesn't need to be created if `self.proof_of_validity` is set.
kvac/src/bbs_sharp/proof.rs:539
↓ 3 callers
Method
to_orphan
Remove the user's public key from the signature making it orphan
delegatable_credentials/src/msbm/sps_eq_uc_sig.rs:463
↓ 3 callers
Function
transpose_portable
Transpose a bit-matrix by dividing into submatrices, each of 8x8 bits, transposing the submatrix and placing the submatrices into their appropriate po
oblivious_transfer/src/util.rs:93
↓ 3 callers
Method
update_after_removal
Update witness after removal of an element from accumulator. The removed element is expected to be passed as members of the non-adaptive accumulator
vb_accumulator/src/kb_positive_accumulator/witness.rs:38
↓ 3 callers
Method
verify
( &self, accumulator_value: &E::G1Affine, challenge: &E::ScalarField, pk: impl
vb_accumulator/src/proofs_cdh.rs:138
↓ 3 callers
Method
verify
Verifies underlying proof of knowledge using supplied arguments. `unique_sorted_revealed_indices` must produce sorted unique indices, otherwise, an er
coconut/src/proof/messages_pok/proof.rs:34
↓ 3 callers
Method
verify
( &self, commitment: &E::G1Affine, challenge: &E::ScalarField, comm_key: &Memb
smc_range_proof/src/ccs_set_membership/single_member.rs:131
↓ 3 callers
Method
verify
( &self, commitment: &E::G1Affine, challenge: &E::ScalarField, comm_key: &Memb
smc_range_proof/src/ccs_set_membership/single_member_cdh.rs:78
↓ 3 callers
Method
verify
( &self, commitments: &[E::G1Affine], challenge: &E::ScalarField, comm_key: &M
smc_range_proof/src/ccs_set_membership/batch_members.rs:155
↓ 3 callers
Method
verify
( &self, commitment: &E::G1Affine, challenge: &E::ScalarField, min: u64,
smc_range_proof/src/cls_range_proof/range_proof.rs:200
↓ 3 callers
Method
verify
Verify the proof for `0 <= value < max` where `commitment` is a Pedersen commitment to `value`
smc_range_proof/src/ccs_range_proof/perfect_range.rs:178
↓ 3 callers
Method
verify
Verify the proof for `min <= value < max` where `commitment` is a Pedersen commitment to `value`
smc_range_proof/src/ccs_range_proof/arbitrary_range_cdh.rs:210
↓ 3 callers
Method
verify
Verify the proof for `0 <= value < max` where `commitment` is a Pedersen commitment to `value`
smc_range_proof/src/ccs_range_proof/perfect_range_cdh.rs:148
↓ 3 callers
Method
verify
Verify the proof for `min <= value < max` where `commitment` is a Pedersen commitment to `value`
smc_range_proof/src/ccs_range_proof/arbitrary_range.rs:281
↓ 3 callers
Method
verify
Verify the proof using secret key
kvac/src/bbdt_2016/keyed_proof.rs:97
← previous
next →
401–500 of 2,782, ranked by callers