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
↓ 1 callers
Method
calculate_witnesses
Given the input wires (signals), calculate the values of the remaining wires and return the values of all wires of the circuit. The input wires are a
legogroth16/src/circom/witness.rs:131
↓ 1 callers
Function
check
( rng: &mut StdRng, base: u16, num_bits: u16, values_and_bounds: Vec<(u64, u64
bulletproofs_plus_plus/src/range_proof_arbitrary_range.rs:186
↓ 1 callers
Function
check
( rng: &mut StdRng, size: u32, count_decoys: usize, P1: &<Bls1
delegatable_credentials/src/one_of_n_proof.rs:224
↓ 1 callers
Function
check_base_ot_keys
( choices: &[Bit], receiver_keys: &ROTReceiverKeys, sender_keys: &OneOfTwoROTSenderKeys, )
benches/src/ot.rs:23
↓ 1 callers
Function
check_base_ot_keys
( choices: &[Bit], receiver_keys: &ROTReceiverKeys, sender_keys: &OneOfTwoROTSenderKeys, )
test_utils/src/ot.rs:18
↓ 1 callers
Function
check_base_ot_keys
( choices: &[Bit], receiver_keys: &ROTReceiverKeys, sender_keys: &OneOfTwoROTSenderKey
oblivious_transfer/src/base_ot/simplest_ot.rs:545
↓ 1 callers
Function
check_base_ot_keys
( choices: &[Bit], receiver_keys: &ROTReceiverKeys, sender_keys: &OneOfTwoROTSenderKey
oblivious_transfer/src/ot_based_multiplication/base_ot_multi_party_pairwise.rs:262
↓ 1 callers
Method
coefficient
Coefficient (`c_i`) at the _ith_ position
vb_accumulator/src/batch_utils.rs:706
↓ 1 callers
Method
commit_to_a_batch
Commit to a batch of messages and output commitments corresponding to each message.
utils/src/commitment.rs:42
↓ 1 callers
Method
commit_to_messages
( &self, indexed_messages_sorted_by_index: MI, )
kvac/src/bbs_sharp/setup.rs:106
↓ 1 callers
Method
commitments
Returns underlying message commitments.
coconut/src/proof/messages_pok/proof.rs:80
↓ 1 callers
Function
compute_masked_arguments_to_multiply
( signing_key: &F, r: Vec<F>, mut zero_shares: Vec<F>, self_id: ParticipantId, others: &[P
bbs_plus/src/threshold/utils.rs:12
↓ 1 callers
Method
compute_membership_witness
Compute membership witness
vb_accumulator/src/positive.rs:343
↓ 1 callers
Method
compute_membership_witnesses_for_batch
Compute membership witness for batch
vb_accumulator/src/positive.rs:369
↓ 1 callers
Method
compute_new_post_add
Compute new accumulated value after addition.
vb_accumulator/src/universal.rs:239
↓ 1 callers
Method
compute_new_post_add
Compute new accumulated value after addition
vb_accumulator/src/positive.rs:472
↓ 1 callers
Method
compute_new_post_add
( &self, element: &G::ScalarField, sk: &SecretKey<G::ScalarField>, )
vb_accumulator/src/kb_universal_accumulator/accumulator.rs:277
↓ 1 callers
Method
compute_new_post_add_batch
Compute new accumulated value after batch addition.
vb_accumulator/src/universal.rs:272
↓ 1 callers
Method
compute_new_post_batch_updates
Compute new accumulated value after batch additions and removals
vb_accumulator/src/universal.rs:369
↓ 1 callers
Method
compute_new_post_batch_updates
( &self, additions: &[G::ScalarField], removals: &[G::ScalarField], sk: &Secre
vb_accumulator/src/kb_universal_accumulator/accumulator.rs:359
↓ 1 callers
Method
compute_new_post_remove
Compute new accumulated value after removal
vb_accumulator/src/universal.rs:306
↓ 1 callers
Method
compute_new_post_remove
Compute new accumulated value after removal
vb_accumulator/src/positive.rs:512
↓ 1 callers
Method
compute_new_post_remove_batch
Compute new accumulated value after batch removal
vb_accumulator/src/universal.rs:338
↓ 1 callers
Method
compute_new_post_remove_batch
( &self, elements: &[G::ScalarField], sk: &SecretKey<G::ScalarField>, )
vb_accumulator/src/kb_universal_accumulator/accumulator.rs:340
↓ 1 callers
Method
compute_non_membership_witness
( &self, member: &G::ScalarField, sk: &SecretKey<G::ScalarField>, )
vb_accumulator/src/kb_universal_accumulator/accumulator.rs:388
↓ 1 callers
Method
compute_non_membership_witness_given_d
Compute non membership witness given `d` where `d = f_V(-non_member) = (member_0 - non_member)*(member_1 - non_member)*...(member_n - non_member)` whe
vb_accumulator/src/universal.rs:425
↓ 1 callers
Method
compute_non_membership_witnesses_for_batch
( &self, members: &[G::ScalarField], sk: &SecretKey<G::ScalarField>, )
vb_accumulator/src/kb_universal_accumulator/accumulator.rs:408
↓ 1 callers
Method
compute_non_membership_witnesses_for_batch_given_d
Compute non-membership witnesses for a batch {`y_i`} given their `d`s, where `d = f_V(-y_i)` for each member `y_i`
vb_accumulator/src/universal.rs:499
↓ 1 callers
Method
compute_response
Computes `r_0_i = s_i + c_0_i * sk`
kvac/src/bbs_sharp/hol.rs:324
↓ 1 callers
Function
create_init_state
Dumps 0, 1, ... PIPELINES_SIZE-1 into Block128 object then unifies it into a Block128x8 this could probably be done faster in a similar manner to as_m
oblivious_transfer/src/aes_prng.rs:73
↓ 1 callers
Function
create_proof_with_reduction
( circuit: C, pk: &ProvingKey<E>, r: E::ScalarField, s: E::ScalarField, v: E::ScalarField,
legogroth16/src/prover.rs:149
↓ 1 callers
Function
deal
Produces threshold secret key and individual secret keys supporting `message_count` messages for all participants.
coconut/src/setup/keygen/shamir_ss.rs:14
↓ 1 callers
Function
deal_random_secret
Generate a random secret with its shares according to Pedersen's verifiable secret sharing. At least `threshold` number of shares are needed to recons
secret_sharing_and_dkg/src/pedersen_vss.rs:29
↓ 1 callers
Function
deal_secret
Same as `deal_random_secret` above but accepts the secret to share
secret_sharing_and_dkg/src/pedersen_vss.rs:52
↓ 1 callers
Function
deal_secret
Same as `deal_random_secret` above but accepts the secret to share
secret_sharing_and_dkg/src/feldman_vss.rs:43
↓ 1 callers
Method
decrypt
Use the party's secret key to decrypt the share
secret_sharing_and_dkg/src/baghery_pvss/same_base.rs:178
↓ 1 callers
Method
decrypt
(&self, sk: &G::ScalarField)
secret_sharing_and_dkg/src/baghery_pvss/different_base.rs:212
↓ 1 callers
Method
decrypt
(&self, sender_encryptions: SenderEncryptions<G>)
oblivious_transfer/src/base_ot/naor_pinkas_ot_without_ro.rs:85
↓ 1 callers
Method
deref
(&self)
merlin/src/strobe.rs:187
↓ 1 callers
Method
derive_prepared_parameters
Derive prepared keys for performing pairings. This is done to avoid preparing the same parameters again and is effectively a pre-processing step done
proof_system/src/proof_spec.rs:372
↓ 1 callers
Function
encode_u64
(x: u64)
merlin/src/transcript.rs:10
↓ 1 callers
Method
ensure_sufficient_len
(&self, m: &[K])
legogroth16/src/aggregation/key.rs:83
↓ 1 callers
Method
evaluate_temp
(&self, y: &G::ScalarField, scalar: &G::ScalarField)
vb_accumulator/src/batch_utils.rs:671
↓ 1 callers
Method
extend
(&mut self, iter: I)
coconut/src/setup/keygen/common.rs:57
↓ 1 callers
Method
find
(&self, orig: &Ref)
proof_system/src/derived_params.rs:80
↓ 1 callers
Method
finish
( self, )
short_group_sig/src/threshold_weak_bb_sig.rs:129
↓ 1 callers
Method
finish
(self)
oblivious_transfer/src/ot_based_multiplication/batch_mul_multi_party.rs:219
↓ 1 callers
Method
finish
(mut self)
oblivious_transfer/src/ot_based_multiplication/base_ot_multi_party_pairwise.rs:235
↓ 1 callers
Function
fnv
(inp: &str)
legogroth16/src/circom/witness.rs:287
↓ 1 callers
Function
from_bytes_le
(bytes: &[u8])
equality_across_groups/src/util.rs:11
↓ 1 callers
Method
func
Get the function with given name
legogroth16/src/circom/wasm.rs:133
↓ 1 callers
Method
g_offset
Compute the public offsets for P in along G This computes v_hat as (explained in prover round 3) P += 2*T^5*<alpha_d_vec, alpha_r2>*G // Reciprocal co
bulletproofs_plus_plus/src/range_proof.rs:750
↓ 1 callers
Method
g_vec_pub_offsets
Compute the public offsets for P in along G_vec. This computes P = alpha_d_vec * t^3 + alpha_r1_vec * t^2 + alpha_r2_vec * t^2 + alpha_m_vec * t^4
bulletproofs_plus_plus/src/range_proof.rs:725
↓ 1 callers
Method
gen_partial_proof
( self, challenge: &E::ScalarField, )
vb_accumulator/src/kb_positive_accumulator/proofs.rs:103
↓ 1 callers
Method
gen_partial_proof
( self, challenge: &E::ScalarField, )
vb_accumulator/src/kb_positive_accumulator/proofs_cdh.rs:98
↓ 1 callers
Method
gen_partial_proof_contribution_g2
( &mut self, challenge: &G::ScalarField, skip_responses_for: &BTreeSet<usize>, )
proof_system/src/sub_protocols/schnorr.rs:119
↓ 1 callers
Method
gen_proof
( self, challenge: &E::ScalarField, )
vb_accumulator/src/kb_positive_accumulator/proofs.rs:91
↓ 1 callers
Method
gen_proof
( self, challenge: &E::ScalarField, )
vb_accumulator/src/kb_positive_accumulator/proofs_cdh.rs:86
↓ 1 callers
Method
gen_proof
Generate proof. Post-challenge phase of the protocol.
bbs_plus/src/proof_23_cdl.rs:218
↓ 1 callers
Method
gen_proof
(self, challenge: &C::ScalarField)
equality_across_groups/src/ec/sw_point_addition.rs:174
↓ 1 callers
Method
gen_proof
(self, challenge: &[u8])
equality_across_groups/src/ec/sw_scalar_mult.rs:218
↓ 1 callers
Method
gen_proof
(self, challenge: &E::ScalarField)
syra/src/pseudonym_alt.rs:200
↓ 1 callers
Method
gen_proof
(self, challenge: &E::ScalarField)
smc_range_proof/src/ccs_set_membership/single_member.rs:95
↓ 1 callers
Method
gen_proof
(self, challenge: &E::ScalarField)
smc_range_proof/src/ccs_set_membership/single_member_cdh.rs:69
↓ 1 callers
Method
gen_proof
(self, challenge: &G::ScalarField)
smc_range_proof/src/ccs_set_membership/kv_single.rs:68
↓ 1 callers
Method
gen_proof
(self, challenge: &E::ScalarField)
smc_range_proof/src/ccs_set_membership/batch_members.rs:105
↓ 1 callers
Method
gen_proof
(self, challenge: &G::ScalarField)
smc_range_proof/src/cls_range_proof/kv_range_proof.rs:153
↓ 1 callers
Method
gen_proof
(self, challenge: &E::ScalarField)
smc_range_proof/src/cls_range_proof/range_proof.rs:155
↓ 1 callers
Method
gen_proof
(self, challenge: &E::ScalarField)
smc_range_proof/src/ccs_range_proof/perfect_range.rs:132
↓ 1 callers
Method
gen_proof
(self, challenge: &E::ScalarField)
smc_range_proof/src/ccs_range_proof/arbitrary_range_cdh.rs:169
↓ 1 callers
Method
gen_proof
(self, challenge: &E::ScalarField)
smc_range_proof/src/ccs_range_proof/perfect_range_cdh.rs:133
↓ 1 callers
Method
gen_proof
(self, challenge: &E::ScalarField)
smc_range_proof/src/ccs_range_proof/arbitrary_range.rs:213
↓ 1 callers
Method
gen_proof
(self, challenge: &G::ScalarField)
smc_range_proof/src/ccs_range_proof/kv_perfect_range.rs:130
↓ 1 callers
Method
gen_proof
(self, challenge: &G::ScalarField)
smc_range_proof/src/ccs_range_proof/kv_arbitrary_range.rs:193
↓ 1 callers
Method
gen_proof
(mut self, challenge: &G::ScalarField)
short_group_sig/src/weak_bb_sig_pok_kv.rs:115
↓ 1 callers
Method
gen_proof
(mut self, challenge: &E::ScalarField)
short_group_sig/src/weak_bb_sig_pok_cdh.rs:109
↓ 1 callers
Method
gen_proof
( mut self, challenge: &E::ScalarField, )
short_group_sig/src/bb_sig_pok_cdh.rs:121
↓ 1 callers
Method
gen_proof
( mut self, challenge: &E::ScalarField, )
short_group_sig/src/weak_bb_sig_pok.rs:158
↓ 1 callers
Method
gen_proof_contribution_g2
( &mut self, challenge: &G::ScalarField, )
proof_system/src/sub_protocols/schnorr.rs:100
↓ 1 callers
Method
gen_randomness_and_compute_commitment
Generates random `v` and returns pair `(v, v*g + <g_vec, n> + <h_vec, l>)`
bulletproofs_plus_plus/src/setup.rs:99
↓ 1 callers
Method
gen_request
Creates a signature request by committing the attributes in a set commitment and then signing that commitment along with other values. The attributes
delegatable_credentials/src/protego/issuance.rs:215
↓ 1 callers
Method
generate_omega_for_membership_witnesses
Call this on the accumulator before update
vb_accumulator/src/kb_universal_accumulator/witness.rs:259
↓ 1 callers
Method
generate_omega_for_non_membership_witnesses
Call this on the accumulator before update
vb_accumulator/src/kb_universal_accumulator/witness.rs:269
↓ 1 callers
Method
generate_omega_for_non_membership_witnesses_on_domain_extension
Generate Omega when the domain of the accumulator is extended. This means new elements are added to the non-membership accumulator and hence those wit
vb_accumulator/src/kb_universal_accumulator/witness.rs:281
↓ 1 callers
Function
generate_random_parameters
Generates a random common reference string for a circuit. `commit_witness_count` is the number of witnesses committed in proof
legogroth16/src/generator.rs:48
↓ 1 callers
Function
get_bit
(src: &[u8], i: usize)
oblivious_transfer/src/util.rs:182
↓ 1 callers
Method
get_blinded_for_ecdsa
Return `pk * blinding`
kvac/src/bbs_sharp/setup.rs:176
↓ 1 callers
Method
get_blinded_for_schnorr_sig
Return `pk + g * blinding`
kvac/src/bbs_sharp/setup.rs:167
↓ 1 callers
Method
get_col
(&self, c: usize)
legogroth16/src/link/utils.rs:70
↓ 1 callers
Method
get_commitments_to_values
( &self, proof: &ProofArbitraryRange<G>, )
proof_system/src/sub_protocols/bound_check_bpp.rs:230
↓ 1 callers
Method
get_commitments_to_values
Returns a vector of tuples where each tuple is a pair of commitments to the `v_i` but with different randomnesses
bulletproofs_plus_plus/src/range_proof_arbitrary_range.rs:125
↓ 1 callers
Method
get_first_n_private_inputs
Get the 1st `n` private inputs to the circuit. The order is determined by the order in which `Self::set_private` was called.
proof_system/src/witness.rs:428
↓ 1 callers
Function
get_gs_for_encryption
These parameters are needed for setting up keys for encryption/decryption
saver/src/saver_legogroth16.rs:28
↓ 1 callers
Method
get_input_count
Return number of input signals
legogroth16/src/circom/wasm.rs:88
↓ 1 callers
Method
get_key_for_index
(&self, index: u32)
delegatable_credentials/src/msbm/keys.rs:184
↓ 1 callers
Method
get_leaf
(&self, leaf_index: u16)
verifiable_encryption/src/tz_21/seed_tree.rs:76
↓ 1 callers
Method
get_non_membership_witnesses_for_batch
( &self, non_members: &[G::ScalarField], sk: &SecretKey<G::ScalarField>, non_m
vb_accumulator/src/kb_universal_accumulator/accumulator.rs:216
↓ 1 callers
Method
get_ote_correlation
(&self)
oblivious_transfer/src/ot_based_multiplication/dkls18_mul_2p.rs:188
↓ 1 callers
Method
get_ote_correlation
(&self)
oblivious_transfer/src/ot_based_multiplication/dkls19_batch_mul_2p.rs:241
↓ 1 callers
Method
get_pairing_contribution
( &self, challenge: &E::ScalarField, context: &WnafContext, K_table: &[E::G1],
vb_accumulator/src/proofs.rs:1553
← previous
next →
801–900 of 2,782, ranked by callers