MCPcopy Create free account

hub / github.com/docknetwork/crypto / functions

Functions2,782 in github.com/docknetwork/crypto

↓ 1 callersMethodget_params_and_comm_key
( &'a self, setup_params: &'a [SetupParams<E>], st_idx: usize, )
proof_system/src/statement/bound_check_smc_with_kv.rs:113
↓ 1 callersMethodget_pedersen_commitment_key
(&self)
bulletproofs_plus_plus/src/setup.rs:109
↓ 1 callersMethodget_phase_1_share_of_party
Get share given by party with id `id` in phase 1.
secret_sharing_and_dkg/src/gennaro_dkg.rs:238
↓ 1 callersMethodget_public_inputs
Get the public output and input signals of the circuit excluding the first signal "1". The returned vector contains the public output signals, followe
legogroth16/src/circom/circuit.rs:58
↓ 1 callersMethodget_r1cs
( &'a self, setup_params: &'a [SetupParams<E>], st_idx: usize, )
proof_system/src/statement/r1cs_legogroth16.rs:99
↓ 1 callersMethodget_raw_prime
Move the file cursor to the place where the subgroup order is written in little-endian order. The order is prime.
legogroth16/src/circom/wasm.rs:40
↓ 1 callersMethodget_resp_for_message
Get the response from post-challenge phase of the Schnorr protocol for the given message index `msg_idx`. Used when comparing message equality
bbs_plus/src/proof_23_ietf.rs:314
↓ 1 callersMethodget_resp_for_message
Get the response from post-challenge phase of the Schnorr protocol for the given message index `msg_idx`. Used when comparing message equality
bbs_plus/src/proof_23_cdl.rs:406
↓ 1 callersMethodget_resp_for_message
Get the response from post-challenge phase of the Schnorr protocol for the given message index `msg_idx`. Used when comparing message equality
kvac/src/bbdt_2016/proof_cdh.rs:319
↓ 1 callersMethodget_responses
( &self, ids: &BTreeSet<usize>, )
schnorr_pok/src/pok_generalized_pedersen.rs:194
↓ 1 callersMethodget_saver_proof
Get SAVER randomness, ciphertext and proof to reuse for the given statement id
proof_system/src/prover.rs:107
↓ 1 callersMethodget_signal_count
Return number of signals for an input signal. For signals that are arrays, it returns the length of the array otherwise returns 1.
legogroth16/src/circom/wasm.rs:94
↓ 1 callersMethodget_snark_proving_key
( &'a self, setup_params: &'a [SetupParams<E>], st_idx: usize, )
proof_system/src/statement/saver.rs:139
↓ 1 callersMethodget_split_commitments
Returns a vector of tuples where each tuple is a pair of commitments as (`(v_i - min_i)`, `(max_i - v_i)`)
bulletproofs_plus_plus/src/range_proof_arbitrary_range.rs:116
↓ 1 callersMethodget_version
Get the Circom version used to generate the WASM module
legogroth16/src/circom/wasm.rs:22
↓ 1 callersMethodget_wasm_bytes
( &'a self, setup_params: &'a [SetupParams<E>], st_idx: usize, )
proof_system/src/statement/r1cs_legogroth16.rs:114
↓ 1 callersMethodget_witness
Move the cursor to the `i`th witness in the WASM module.
legogroth16/src/circom/wasm.rs:77
↓ 1 callersMethodget_witness_count
Return number of wires in the circuit
legogroth16/src/circom/wasm.rs:83
↓ 1 callersFunctiongipa_tipp_mipp
gipa_tipp_mipp performs the recursion of the GIPA protocol for TIPP and MIPP. It returns a proof containing all intermediate committed values, as well
legogroth16/src/aggregation/legogroth16/prover.rs:217
↓ 1 callersFunctiongipa_tipp_mipp
gipa_tipp_mipp performs the recursion of the GIPA protocol for TIPP and MIPP. It returns a proof containing all intermediate committed values, as well
legogroth16/src/aggregation/groth16/prover.rs:204
↓ 1 callersFunctiongipa_verify_tipp_mipp
gipa_verify_tipp_mipp recurse on the proof and statement and produces the final values to be checked by TIPP and MIPP verifier, namely, for TIPP for e
legogroth16/src/aggregation/legogroth16/verifier.rs:236
↓ 1 callersFunctiongipa_verify_tipp_mipp
gipa_verify_tipp_mipp recurse on the proof and statement and produces the final values to be checked by TIPP and MIPP verifier, namely, for TIPP for e
legogroth16/src/aggregation/groth16/verifier.rs:208
↓ 1 callersMethodhas_shares_from
(&self, id: &ParticipantId)
oblivious_transfer/src/zero_sharing.rs:129
↓ 1 callersFunctionhash_to_field
( party_1: ParticipantId, party_2: ParticipantId, r: &F, hasher: &DefaultFieldHasher<D>, )
oblivious_transfer/src/zero_sharing.rs:145
↓ 1 callersMethodinit
Runs the LegoGroth16 protocol to prove that the message is bounded and initialize a Schnorr proof of knowledge protocol to prove knowledge of the comm
proof_system/src/sub_protocols/bound_check_legogroth16.rs:80
↓ 1 callersMethodinit
( &mut self, rng: &mut R, comm_key_as_slice: &'a [G], message: G::ScalarField,
proof_system/src/sub_protocols/bound_check_smc_with_kv.rs:78
↓ 1 callersMethodinit
( &mut self, rng: &mut R, comm_key_as_slice: &'a [E::G1Affine], message: E::Sc
proof_system/src/sub_protocols/bound_check_smc.rs:51
↓ 1 callersMethodinit
( &mut self, rng: &mut R, r1cs: R1CS<E>, wasm_bytes: &[u8], comm_key:
proof_system/src/sub_protocols/r1cs_legogorth16.rs:53
↓ 1 callersMethodinit
( &mut self, rng: &mut R, comm_key_as_slice: &'a [G], message: G::ScalarField,
proof_system/src/sub_protocols/inequality.rs:44
↓ 1 callersMethodinit
(&self, store: &mut Store, sanity_check: bool)
legogroth16/src/circom/wasm.rs:16
↓ 1 callersMethodinit
Initialize state
oblivious_transfer/src/aes_prng.rs:97
↓ 1 callersFunctioninit_accum
( rng: &mut StdRng, )
delegatable_credentials/src/protego/show/tests.rs:35
↓ 1 callersMethodinit_schnorr_protocol
( &mut self, rng: &mut R, comm_key: &'a [G], message: G::ScalarField,
proof_system/src/sub_protocols/bound_check_smc_with_kv.rs:109
↓ 1 callersMethodinit_schnorr_protocol
( &mut self, rng: &mut R, comm_key: &'a [E::G1Affine], message: E::ScalarField
proof_system/src/sub_protocols/bound_check_smc.rs:78
↓ 1 callersMethodinit_schnorr_protocol
( &mut self, rng: &mut R, comm_key: &'a [G], message: G::ScalarField,
proof_system/src/sub_protocols/inequality.rs:70
↓ 1 callersMethodinit_schnorr_protocol
( &mut self, rng: &mut R, comm_key: &'a [G], message: G::ScalarField,
proof_system/src/sub_protocols/bound_check_bpp.rs:86
↓ 1 callersMethodinit_with_ciphertext_and_proof
( &mut self, rng: &mut R, ck_comm_ct: &'a [E::G1Affine], ck_comm_chunks: &'a [
proof_system/src/sub_protocols/saver.rs:149
↓ 1 callersMethodinsert_val
Insert value `v` in the column index `c` at row index `r`
legogroth16/src/link/utils.rs:47
↓ 1 callersMethodis_non_zero
Checks that the elliptic curve point in the signature is non-zero
bbs_plus/src/signature_23.rs:106
↓ 1 callersFunctionkey_to_aes_seed
(key: &Key)
oblivious_transfer/src/ot_extensions/alsz_ote.rs:714
↓ 1 callersFunctionkeygen
( rng: &mut StdRng, auditable: bool, supports_revocation: bool, set_comm_srs:
delegatable_credentials/src/protego/issuance.rs:450
↓ 1 callersFunctionlagrange_basis_at_0
Return the Lagrange basis polynomial at x = 0 given the `x` coordinates. `(x_coords[0]) * (x_coords[1]) * ... / ((x_coords[0] - i) * (x_coords[1] - i)
secret_sharing_and_dkg/src/common.rs:420
↓ 1 callersFunctionlagrange_basis_at_0
( S: impl_into_indexed_iter!(<Item = impl Into<F>>), )
coconut/src/helpers/mod.rs:32
↓ 1 callersFunctionlagrange_basis_at_0_for_all
Return the Lagrange basis polynomial at x = 0 for each of the given `x` coordinates. Faster than doing multiple calls to `lagrange_basis_at_0`
secret_sharing_and_dkg/src/common.rs:442
↓ 1 callersFunctionle_bytes_iter_from_given_range
Produces an iterator of little endian bytes of each element contained in the range `counter_range`
utils/src/misc.rs:81
↓ 1 callersMethodmatrix_byte_size_for_random
(&self)
oblivious_transfer/src/configs.rs:114
↓ 1 callersFunctionmimc
This is an implementation of MiMC, specifically a variant named `LongsightF322p3` for BLS12-377. See http://eprint.iacr.org/2016/492 for more informat
legogroth16/tests/mimc.rs:48
↓ 1 callersMethodmsm_bigint
`G::Group::msm_bigint(left, right)`
utils/src/pairs.rs:153
↓ 1 callersMethodmultiply_with_ciphertexts
(&mut self, m: &G::ScalarField)
verifiable_encryption/src/tz_21/encryption.rs:121
↓ 1 callersMethodmultiply_with_poly_of_constants
multiply a vector polynomial `c` whose coefficients are constants, i.e. coefficient vectors have only 1 coefficient
bulletproofs_plus_plus/src/range_proof.rs:1086
↓ 1 callersMethodnext_u64
fetches 64 bits of randomness
oblivious_transfer/src/aes_prng.rs:174
↓ 1 callersMethodnum_proofs
Number of proofs to aggregate
bulletproofs_plus_plus/src/range_proof.rs:282
↓ 1 callersMethodnum_public_inputs
(&self)
legogroth16/src/data_structures.rs:197
↓ 1 callersMethodopen_seeds
Return nodes on a path from leaf level till root level - 1 (excluding root node as root node can create the whole tree) that allow reconstructing all
verifiable_encryption/src/tz_21/seed_tree.rs:102
↓ 1 callersFunctionoptimal_base
Optimal base as suggested by the CCS and CLS paper as `log_2(range)/log_2(log_2(range))` where `range = max - min` A more optimal base can be calculat
smc_range_proof/src/common.rs:141
↓ 1 callersMethodoverwrite
(&mut self, data: &[u8])
merlin/src/strobe.rs:130
↓ 1 callersMethodpar_iter
(&self)
utils/src/pairs.rs:117
↓ 1 callersMethodparsing_check
Performs some high level checks on the length of vectors and others to make sure all items in the proofs are consistent with each other.
legogroth16/src/aggregation/groth16/proof.rs:38
↓ 1 callersMethodpoly_degree
The degree of the polynomial whose coefficients were committed
secret_sharing_and_dkg/src/common.rs:128
↓ 1 callersMethodprepare
Prepare `self` for use in proof verification.
legogroth16/src/constraints.rs:50
↓ 1 callersFunctionprepare_inputs
Prepare proof inputs for use with [`verify_proof`], wrt the prepared verification key `pvk` and instance public inputs.
legogroth16/src/verifier.rs:29
↓ 1 callersMethodprocess_received_delegated_using_given_randomness
( mut self, mu: &E::ScalarField, psi: E::ScalarField, chi: E::ScalarField,
delegatable_credentials/src/msbm/issuance.rs:361
↓ 1 callersMethodprocess_received_from_root_using_given_randomness
( self, mu: &E::ScalarField, psi: E::ScalarField, chi: E::ScalarField,
delegatable_credentials/src/msbm/issuance.rs:315
↓ 1 callersMethodprocess_response
( mut self, response: Responses<G::ScalarField>, )
kvac/src/bbs_sharp/hol.rs:258
↓ 1 callersFunctionprove_commitment_v
( srs_powers_alpha_table: &[G], srs_powers_beta_table: &[G], transcript: &[G::ScalarField], kz
legogroth16/src/aggregation/kzg.rs:285
↓ 1 callersFunctionprove_commitment_w
( srs_powers_alpha_table: &[G], srs_powers_beta_table: &[G], transcript: &[G::ScalarField], r_
legogroth16/src/aggregation/kzg.rs:311
↓ 1 callersFunctionprove_tipp_mipp
Proves a TIPP relation between A and B as well as a MIPP relation with C and r. Commitment keys must be of size of A, B and C. In the context of Groth
legogroth16/src/aggregation/legogroth16/prover.rs:159
↓ 1 callersFunctionprove_tipp_mipp
Proves a TIPP relation between A and B as well as a MIPP relation with C and r. Commitment keys must be of size of A, B and C. In the context of Groth
legogroth16/src/aggregation/groth16/prover.rs:149
↓ 1 callersMethodrandomize_for_show
( self, rng: &mut R, commitment_randomness: &E::ScalarField, user_public_key:
delegatable_credentials/src/msbm/issuance.rs:173
↓ 1 callersFunctionrandomize_proof
Randomize the Groth16 proof as per algorithm 2 of the paper. Can alternatively use `rerandomize_proof` from `ark_groth16`
saver/src/saver_groth16.rs:109
↓ 1 callersMethodrandomize_without_update_key_with_given_randomness
( self, mu: &E::ScalarField, psi: E::ScalarField, chi: E::ScalarField,
delegatable_credentials/src/msbm/issuance.rs:228
↓ 1 callersFunctionread_map
Read the wire to label map. The labels not part of constraints because they were optimized out are not part of this map.
legogroth16/src/circom/r1cs_reader.rs:219
↓ 1 callersMethodreceive_commitment
Process received commitments to the shares from another party and store it
oblivious_transfer/src/zero_sharing.rs:65
↓ 1 callersMethodreconstruct_secret
(&self)
secret_sharing_and_dkg/src/pedersen_vss.rs:126
↓ 1 callersMethodremove
(&mut self, element: &T)
test_utils/src/accumulators.rs:158
↓ 1 callersMethodremove_batch
Removing a batch of members from the accumulator. Reads and writes to state. Described in section 3 of the paper
vb_accumulator/src/universal.rs:350
↓ 1 callersMethodremove_batch
Removes a batch of elements from the accumulator. Returns the new value of the accumulator
vb_accumulator/src/kb_positive_accumulator/adaptive_accumulator.rs:114
↓ 1 callersMethodremove_batch
( &self, elements: &[G::ScalarField], sk: &SecretKey<G::ScalarField>, state: &
vb_accumulator/src/kb_positive_accumulator/non_adaptive_accumulator.rs:75
↓ 1 callersMethodremove_participant
Called when got >= `threshold` complaints for `participant_id` and disqualifying a participant
secret_sharing_and_dkg/src/gennaro_dkg.rs:120
↓ 1 callersMethodremove_using_trapdoor
( &mut self, removals: &[E::ScalarField], trapdoor: &E::ScalarField, )
delegatable_credentials/src/accumulator.rs:91
↓ 1 callersMethodresponse
Create responses for each witness (discrete log) as `response[i] = self.blindings[i] + (witnesses[i] * challenge)`
schnorr_pok/src/pok_generalized_pedersen.rs:102
↓ 1 callersMethodresponse_for_message
Get the response from post-challenge phase of the Schnorr protocol for the given message index `msg_idx`. Used when comparing message equality.
coconut/src/proof/signature_pok/proof.rs:76
↓ 1 callersMethodright
Returns underlying right elements.
utils/src/pairs.rs:91
↓ 1 callersMethodround_1
Round 1: Commit to the base representation of the value and multiplicities # The digits commitment: D The prover first computes the base representat
bulletproofs_plus_plus/src/range_proof.rs:334
↓ 1 callersMethodround_2
Prover Round 2: Prover has committed to d_vec and m_vec in the previous round. Received challenge e. # The reciprocal commitment: R The prover compu
bulletproofs_plus_plus/src/range_proof.rs:417
↓ 1 callersMethodround_3
Prover Round 3: Prover has committed to r_vec in the previous round. Received challenge (x, y, q, lambda, delta). Already has e from round 1 lambda is
bulletproofs_plus_plus/src/range_proof.rs:569
↓ 1 callersMethodround_4
Round 4: Run the norm argument on the obtained challenge t. If we have sent the correct commitments, we only need to evaluate the poly w_vec at t and
bulletproofs_plus_plus/src/range_proof.rs:689
↓ 1 callersFunctionset_bit
(dst: &mut [u8], i: usize, b: u8)
oblivious_transfer/src/util.rs:190
↓ 1 callersMethodset_input_signal
( &self, store: &mut Store, hmsb: u32, hlsb: u32, pos: u32, )
legogroth16/src/circom/wasm.rs:61
↓ 1 callersFunctionsetup_kb_positive_accum
( rng: &mut StdRng, )
test_utils/src/accumulators.rs:60
↓ 1 callersFunctionsetup_positive_accum
()
vb_accumulator/src/proofs_keyed_verification.rs:750
↓ 1 callersFunctionsetup_uni_accum
( rng: &mut StdRng, max: u64, )
vb_accumulator/src/kb_universal_accumulator/proofs_keyed_verification.rs:421
↓ 1 callersFunctionsetup_universal_accum
( rng: &mut StdRng, max: u64, )
vb_accumulator/src/proofs_keyed_verification.rs:767
↓ 1 callersMethodsign
After verifying the signature request, signer creates a signature using the request
delegatable_credentials/src/protego/issuance.rs:351
↓ 1 callersMethodsign_public_key
( &self, rng: &mut R, pk: &IssuerPublicKey<E>, P1: &E::G1Affine, P2: &
delegatable_credentials/src/protego/show/signer_hidden_with_policy.rs:48
↓ 1 callersFunctionsolve_discrete_log_brute_force
Solve discrete log using brute force. `max` is the maximum value of the discrete log and this returns `x` such that `1 <= x <= max` and `base * x = ta
utils/src/solve_discrete_log.rs:8
↓ 1 callersMethodsplit
Splits blinded message into the message and blinding, returns `None` for the revealed message.
coconut/src/proof/mod.rs:47
↓ 1 callersMethodsqueeze
(&mut self, data: &mut [u8])
merlin/src/strobe.rs:140
↓ 1 callersFunctionsse_trans
Modified from https://mischasan.wordpress.com/2011/10/03/the-full-sse2-bit-matrix-transpose-routine/ with inner most loops changed to _mm_set_epi8 and
oblivious_transfer/c/transpose.c:40
↓ 1 callersMethodsupports_revocation
(&self)
delegatable_credentials/src/protego/issuance.rs:395
← previousnext →901–1,000 of 2,782, ranked by callers