MCPcopy Create free account

hub / github.com/docknetwork/crypto / functions

Functions2,782 in github.com/docknetwork/crypto

↓ 2 callersMethodrandomize_with_given_randomness
( self, mu: &E::ScalarField, psi: E::ScalarField, chi: E::ScalarField,
delegatable_credentials/src/msbm/issuance.rs:193
↓ 2 callersMethodrandomized_value
(&self, randomizer: &G::ScalarField)
vb_accumulator/src/positive.rs:442
↓ 2 callersMethodread
(mut reader: R)
legogroth16/src/aggregation/srs.rs:308
↓ 2 callersMethodread_shared_rw_memory
Read next 32-bytes in little-endian format from the offset `i`
legogroth16/src/circom/wasm.rs:46
↓ 2 callersMethodreceive_commitment
( &mut self, sender_id: ParticipantId, comm_zero_share: Commitments, )
short_group_sig/src/threshold_weak_bb_sig.rs:168
↓ 2 callersMethodreceive_commitment
Process received commitments to the shares from another party and store it
oblivious_transfer/src/cointoss.rs:69
↓ 2 callersMethodreconstruct_secret
Reconstruct the secret. Assumes that shares are unique and have the same threshold
secret_sharing_and_dkg/src/shamir_ss.rs:56
↓ 2 callersMethodremove
Remove an element from the accumulator and state. Reads and writes to state. Described in section 2 of the paper
vb_accumulator/src/universal.rs:318
↓ 2 callersMethodremove_batch
( &self, elements: Vec<G::ScalarField>, sk: &SecretKey<G::ScalarField>, mem_st
vb_accumulator/src/kb_universal_accumulator/accumulator.rs:127
↓ 2 callersMethodresponse
( &self, witnesses: Vec<&[G::ScalarField]>, challenge: &G::ScalarField, )
compressed_sigma/src/amortized_homomorphism.rs:71
↓ 2 callersMethodresponse
( &self, x: &[G::ScalarField], challenge: &G::ScalarField, )
compressed_sigma/src/amortized_homomorphisms.rs:133
↓ 2 callersMethodresponse
Schnorr response for relation `com = g * o + \sum_{i}(h_{i} * m_{i})`
coconut/src/proof/messages_pok/multi_message_commitment.rs:72
↓ 2 callersMethodscale
Returns both vectors of key scaled by the given vector entrywise. In other words, it returns $\{v_i^{s_i}\}$
legogroth16/src/aggregation/key.rs:116
↓ 2 callersFunctionseq_inc_by_n_from
Produces a function which will check for each item to be equal previous plus `n` starting from the supplied value.
utils/src/misc.rs:39
↓ 2 callersMethodset_wires
Set values for the circuit wires.
legogroth16/src/circom/circuit.rs:66
↓ 2 callersMethodset_wires_using_witness_calculator
( &mut self, wit_calc: &mut WitnessCalculator<E>, inputs: I, sanity_check: boo
legogroth16/src/circom/circuit.rs:70
↓ 2 callersFunctionsetup
( rng: &mut StdRng, max_attributes: u32, auditable: bool, supports_revocation:
delegatable_credentials/src/protego/issuance.rs:476
↓ 2 callersFunctionsig_setup
( rng: &mut R, message_count: u32, )
bbs_plus/src/proof_23.rs:408
↓ 2 callersFunctionsolve_discrete_log_bsgs
Solve discrete log using Baby Step Giant Step as described in section 2 of <https://eprint.iacr.org/2015/605> `max` is the maximum value of the discre
utils/src/solve_discrete_log.rs:26
↓ 2 callersFunctionsolve_discrete_log_bsgs_inner
( num_baby_steps: u64, num_giant_steps: u64, base: G, target: G, )
utils/src/solve_discrete_log.rs:42
↓ 2 callersMethodstatement_proofs
(&self)
proof_system/src/prover.rs:1132
↓ 2 callersMethodsupported_message_count
(&self)
kvac/src/bbs_sharp/setup.rs:140
↓ 2 callersMethodto_keyed_proof
(&self)
vb_accumulator/src/kb_universal_accumulator/proofs_keyed_verification.rs:182
↓ 2 callersFunctiontransmute_state
(st: &mut AlignedKeccakState)
merlin/src/strobe.rs:35
↓ 2 callersFunctiontranspose_naive
(input: &[u8], nrows: usize, ncols: usize)
oblivious_transfer/src/util.rs:139
↓ 2 callersMethodtrim_key
(&self, start_index: u32, end_index: u32)
delegatable_credentials/src/msbm/keys.rs:193
↓ 2 callersFunctiontrusted_party_keygen
( rng: &mut StdRng, threshold: ParticipantId, total: ParticipantId, )
benches/benches/syra.rs:35
↓ 2 callersFunctiontrusted_party_keygen
Just for testing, let a trusted party do the keygen and give each signer its keyshare
syra/src/threshold_issuance.rs:242
↓ 2 callersFunctiontrusted_party_keygen
Just for testing, let a trusted party do the keygen and give each signer its keushare
short_group_sig/src/threshold_weak_bb_sig.rs:384
↓ 2 callersFunctiontry_pair_with_slice
Maps supplied iterator and attempts to pair each `Ok(_)` item with an item from the slice which has provided index. Returns `Err` containing an invali
utils/src/try_iter.rs:14
↓ 2 callersFunctionu8vec_to_boolvec
(v: &[u8])
oblivious_transfer/src/util.rs:232
↓ 2 callersMethodupdate_both_wit_using_secret_key_on_batch_updates
Update both membership and non-membership witnesses in a single call. Call this on the accumulator before update
vb_accumulator/src/kb_universal_accumulator/witness.rs:290
↓ 2 callersMethodupdate_unchecked
Update accumulator on share created by self. Assumes the share is valid
secret_sharing_and_dkg/src/common.rs:350
↓ 2 callersMethodupdate_using_public_info_after_batch_updates
( &self, additions: &[G::ScalarField], removals: &[G::ScalarField], omega: &Om
vb_accumulator/src/kb_universal_accumulator/witness.rs:532
↓ 2 callersMethodupdate_witnesses_using_secret_key_on_non_mem_accum_update
Update non-membership witnesses when the non-membership accumulator is updated
vb_accumulator/src/kb_universal_accumulator/witness.rs:509
↓ 2 callersMethodverify
( &self, accumulator_value: &E::G1Affine, challenge: &E::ScalarField, pk: impl
vb_accumulator/src/kb_positive_accumulator/proofs.rs:117
↓ 2 callersMethodverify
( pp: &Self::PP, vk: &Self::VK, x: &[Self::OutVec], pi: &Self::Proof, )
legogroth16/src/link/snark.rs:135
↓ 2 callersMethodverify
Verifies the proof of equality without checking for range proof. `comm_g1` and `comm_g2` are the commitments to `witness` in groups G1 and G2 respecti
equality_across_groups/src/eq_across_groups.rs:222
↓ 2 callersMethodverify
Signer verifies the signature request before creating a signature
delegatable_credentials/src/protego/issuance.rs:260
↓ 2 callersMethodverify
( &self, challenge: &E::ScalarField, Z: E::G1Affine, issuer_pk: PreparedIssuer
syra/src/pseudonym.rs:328
↓ 2 callersMethodverify
( &self, user_id: E::ScalarField, issuer_pk: &IssuerPublicKey<E>, params: impl
syra/src/pseudonym_alt.rs:97
↓ 2 callersMethodverify
Verifies underlying proof of knowledge using supplied arguments. `indexed_revealed_messages_sorted_by_index` must produce items sorted by unique indic
coconut/src/proof/signature_pok/proof.rs:32
↓ 2 callersMethodverify
( &self, messages: &[G::ScalarField], sk: impl AsRef<G::ScalarField>, params:
kvac/src/bbdt_2016/mac.rs:131
↓ 2 callersMethodverify
( &self, messages: &[G::ScalarField], user_public_key: &UserPublicKey<G>, sk:
kvac/src/bbs_sharp/mac.rs:83
↓ 2 callersMethodverify_challenge
Verifies relation `com = g * o + \sum_{i}(h_{i} * m_{i})`.
coconut/src/proof/messages_pok/multi_message_commitment.rs:95
↓ 2 callersMethodverify_ciphertext_and_commitment
( &self, challenge: &E::ScalarField, ciphertext: &Ciphertext<E>, comm_combined
proof_system/src/sub_protocols/saver.rs:312
↓ 2 callersMethodverify_commitment_and_proof
Verify ciphertext commitment and snark proof
saver/src/encryption.rs:760
↓ 2 callersMethodverify_decoy_pk_proof
( &self, possible_public_keys: &[IssuerPublicKey<E>], one_of_n_srs: &OneOfNSrs<E>,
delegatable_credentials/src/protego/show/signer_hidden_with_decoys.rs:273
↓ 2 callersMethodverify_except_pairings
Verify the proof except the pairing equations. This is useful when doing several verifications (of this protocol or others) and the pairing equations
bbs_plus/src/proof_23_ietf.rs:466
↓ 2 callersMethodverify_except_pairings
Verify the proof except the pairing equations. This is useful when doing several verifications (of this protocol or others) and the pairing equations
bbs_plus/src/proof_23.rs:380
↓ 2 callersMethodverify_except_pairings
Verify the proof except the pairing equations. This is useful when doing several verifications (of this protocol or others) and the pairing equations
bbs_plus/src/proof_23_cdl.rs:536
↓ 2 callersMethodverify_except_pairings
Verify the proof except the pairing equations. This is useful when doing several verifications (of this protocol or others) and the pairing equations
bbs_plus/src/proof.rs:529
↓ 2 callersMethodverify_except_pairings
( &self, commitment: &E::G1Affine, challenge: &E::ScalarField, min: u64,
smc_range_proof/src/cls_range_proof/range_proof.rs:259
↓ 2 callersMethodverify_except_pairings
( &self, commitment: &E::G1Affine, challenge: &E::ScalarField, max: u64,
smc_range_proof/src/ccs_range_proof/perfect_range.rs:226
↓ 2 callersMethodverify_except_pairings
( &self, commitment: &E::G1Affine, challenge: &E::ScalarField, min: u64,
smc_range_proof/src/ccs_range_proof/arbitrary_range.rs:374
↓ 2 callersMethodverify_except_pairings
( &self, challenge: &E::ScalarField, g1: &E::G1Affine, )
short_group_sig/src/weak_bb_sig_pok_cdh.rs:195
↓ 2 callersMethodverify_except_pairings
( &self, resp_for_message: &E::ScalarField, challenge: &E::ScalarField, provin
short_group_sig/src/bb_sig_pok.rs:409
↓ 2 callersMethodverify_except_pairings
( &self, challenge: &E::ScalarField, proving_key: &ProvingKey<E::G1Affine>, )
short_group_sig/src/weak_bb_sig_pok.rs:281
↓ 2 callersMethodverify_given_destructured_params_with_pairing
( &self, message: &E::ScalarField, pk: impl AsRef<E::G2Affine>, g2: E::G2Affin
short_group_sig/src/weak_bb_sig.rs:158
↓ 2 callersFunctionverify_kzg
( v_srs: &VerifierSRSProjective<E>, final_vkey: &(E::G2Affine, E::G2Affine), vkey_opening: &KZGOpe
legogroth16/src/aggregation/utils.rs:163
↓ 2 callersMethodverify_pairing
Ensures that `e(sigma_1, p1) == e(sigma_2, p2)` and signature isn't zero.
coconut/src/signature/ps_signature.rs:123
↓ 2 callersMethodverify_partial_except_pairings
( &self, resp_for_message: &E::ScalarField, challenge: &E::ScalarField, g1: &E
short_group_sig/src/weak_bb_sig_pok_cdh.rs:219
↓ 2 callersMethodverify_partial_with_randomized_pairing_checker
Similar to `Self::verify_with_randomized_pairing_checker` but responses for some messages (witnesses) are provided in `missing_responses`. The keys of
bbs_plus/src/proof.rs:407
↓ 2 callersFunctionverify_proof
( pvk: &PreparedVerifyingKey<E>, proof: &Proof<E>, ciphertext: &Ciphertext<E>, )
saver/src/saver_legogroth16.rs:110
↓ 2 callersMethodverify_proof_contribution_using_prepared_when_aggregating_snark
( &self, challenge: &E::ScalarField, proof: &R1CSLegoGroth16ProofWhenAggregatingSnarks
proof_system/src/sub_protocols/r1cs_legogorth16.rs:199
↓ 2 callersMethodverify_schnorr_proof
( &self, accumulator: &G, challenge: &G::ScalarField, )
vb_accumulator/src/kb_universal_accumulator/proofs_keyed_verification.rs:164
↓ 2 callersMethodverify_schnorr_proof
( &self, revealed_msgs: &BTreeMap<usize, G::ScalarField>, challenge: &G::ScalarField,
kvac/src/bbdt_2016/proof_cdh.rs:296
↓ 2 callersMethodverify_schnorr_proofs
This verifies `pi_3` from the paper.
kvac/src/bbdt_2016/proof.rs:244
↓ 2 callersMethodverify_with_randomized_pairing_checker
( &self, revealed_msgs: &BTreeMap<usize, E::ScalarField>, challenge: &E::ScalarField,
bbs_plus/src/proof_23.rs:280
↓ 2 callersMethodw_q_norm
Compute the inner product of two polynomials
bulletproofs_plus_plus/src/range_proof.rs:1061
↓ 2 callersFunctionwitness_as_u64
Parse witness as a u64. Expects that witness won't be > u64
equality_across_groups/src/eq_across_groups.rs:676
↓ 2 callersMethodwrite
(&self, mut writer: W)
legogroth16/src/aggregation/srs.rs:271
↓ 2 callersMethodzeroize
(&mut self)
secret_sharing_and_dkg/src/common.rs:250
↓ 1 callersMethod_verify
( &self, sig: &Signature<E>, x_prep: Vec<E::G2Prepared>, t: u32, srs:
delegatable_credentials/src/msbm/keys.rs:203
↓ 1 callersMethodadd
(&mut self, item: MetaStatement)
proof_system/src/meta_statement.rs:78
↓ 1 callersMethodadd_batch
Add a batch of members in the accumulator. Reads and writes to state. Described in section 3 of the paper
vb_accumulator/src/universal.rs:284
↓ 1 callersMethodadd_batch
Add a batch of elements to the accumulator. Returns the membership witness of that batch
vb_accumulator/src/kb_positive_accumulator/adaptive_accumulator.rs:85
↓ 1 callersMethodadd_batch
( &self, elements: Vec<G::ScalarField>, state: &mut dyn State<G::ScalarField>, )
vb_accumulator/src/kb_positive_accumulator/non_adaptive_accumulator.rs:61
↓ 1 callersMethodadd_multiple_sources_and_target_with_laziness_choice
Same as `Self::add_multiple_sources_and_target` except that this accepts whether to be lazy or not and does not default to laziness decided during cre
utils/src/randomized_pairing_check.rs:116
↓ 1 callersMethodadd_multiple_sources_with_laziness_choice
Same as `Self::add_multiple_sources` except that this accepts whether to be lazy or not and does not default to laziness decided during creation of th
utils/src/randomized_pairing_check.rs:142
↓ 1 callersMethodadd_received_share
Called by a participant when it receives its share during Round 1
secret_sharing_and_dkg/src/frost_dkg.rs:209
↓ 1 callersMethodadd_sources_with_laziness_choice
Same as `Self::add_sources` except that this accepts whether to be lazy or not and does not default to laziness decided during creation of the checker
utils/src/randomized_pairing_check.rs:177
↓ 1 callersFunctionalpha_d
Compute a vector of powers of `b` multiplied by powers of `lambda` like this: `(1, b, b^2, b^3, ..., b^{num_digits-1}, lambda, lambda*b, lambda*b^2, l
bulletproofs_plus_plus/src/range_proof.rs:906
↓ 1 callersFunctionalpha_d_given_lambda_powers
Same as `alpha_d` except that it accepts lambda powers
bulletproofs_plus_plus/src/range_proof.rs:921
↓ 1 callersFunctionalpha_m
Compute alpha_m = vec![x/e, x/(e + 1), x/(e + 2), ...]
bulletproofs_plus_plus/src/range_proof.rs:940
↓ 1 callersFunctionalpha_m_q_inv_pows
Compute alpha_m = vec![x/e, x/(e + 1), x/(e + 2), ...] X q_inv_pows
bulletproofs_plus_plus/src/range_proof.rs:934
↓ 1 callersFunctionalpha_r_q_inv_pow_given_alpha_r
( alpha_r: &[F], alpha_r2: &[F], q_inv_pows: &[F], )
bulletproofs_plus_plus/src/range_proof.rs:953
↓ 1 callersMethodappend_message
(&mut self, label: &'static [u8], bytes: &[u8])
utils/src/transcript.rs:83
↓ 1 callersMethodappend_u64
Convenience method for appending a `u64` to the transcript. The `label` parameter is metadata about the message, and is also appended to the transcri
merlin/src/transcript.rs:164
↓ 1 callersMethodas_ref
(&self)
vb_accumulator/src/positive.rs:460
↓ 1 callersMethodas_ref
(&self)
syra/src/pseudonym_alt.rs:83
↓ 1 callersFunctionbase_n_digits_for_u128
(mut value: u128, base: u16)
smc_range_proof/src/common.rs:79
↓ 1 callersMethodbatch_updates
Adding and removing batches of elements from the accumulator. Reads and writes to state. Described in section 3 of the paper
vb_accumulator/src/universal.rs:382
↓ 1 callersFunctionbbdt16_mac_setup_given_messages
( rng: &mut R, messages: &[Fr], )
test_utils/src/kvac.rs:18
↓ 1 callersFunctionbbs_sig_setup_given_messages
( rng: &mut R, messages: &[Fr], )
test_utils/src/bbs.rs:51
↓ 1 callersFunctionblind_bbs_plus_sig_and_message_equality_aux
(eq : bool)
proof_system/tests/blind_bbs_plus_sig_and_message_equality.rs:49
↓ 1 callersMethodblindings
Returns underlying blindings.
coconut/src/proof/messages_pok/mod.rs:142
↓ 1 callersFunctionc_poly
obtain the c poly
bulletproofs_plus_plus/src/range_proof.rs:972
↓ 1 callersFunctioncalculate_Q
( k: &G, Ps: &[G], ys: &[G::ScalarField], A: &G, t: &G::ScalarField, challenge: &G::Sc
compressed_sigma/src/amortized_linear_form.rs:222
↓ 1 callersFunctioncalculate_d
( pvk: &PreparedVerifyingKey<E>, proof: &Proof<E>, public_inputs: &[E::ScalarField], )
legogroth16/src/verifier.rs:101
← previousnext →701–800 of 2,782, ranked by callers