MCPcopy Create free account

hub / github.com/docknetwork/crypto / functions

Functions2,782 in github.com/docknetwork/crypto

↓ 14 callersMethodnth_power
(&self, i: i32)
bulletproofs_plus_plus/src/range_proof.rs:885
↓ 14 callersMethodupdate_using_public_info_after_batch_updates
Compute an update to the witness after adding and removing batches of elements from the accumulator. Expects the update-info (`Omega`) published by th
vb_accumulator/src/witness.rs:586
↓ 14 callersMethodverify
Verifies a signature. Can verify aggregated signature and unblinded signature received from a signer as well.
coconut/src/signature/ps_signature.rs:95
↓ 13 callersFunctionaggregate_proofs
Aggregate `n` zkSnark proofs, where `n` must be a power of two. WARNING: transcript_include represents everything that should be included in the trans
legogroth16/src/aggregation/groth16/prover.rs:46
↓ 13 callersMethodbatch_updates
Adding and removing batches of elements from the accumulator
vb_accumulator/src/positive.rs:563
↓ 13 callersFunctionbbs_plus_sig_setup_given_messages
( rng: &mut R, messages: &[Fr], )
test_utils/src/bbs.rs:21
↓ 13 callersMethodcommit
Commit to a message
utils/src/commitment.rs:37
↓ 13 callersMethodopen_subset
Same as `Self::open_subset_unchecked` but additionally checks if the subset is indeed a subset and the opening is valid.
delegatable_credentials/src/set_commitment.rs:304
↓ 13 callersFunctionverify_proof
( pvk: &PreparedVerifyingKey<E>, proof: &Proof<E>, ciphertext: &Ciphertext<E>, )
saver/src/saver_groth16.rs:138
↓ 12 callersFunctionabs_path
Given path relative to this crate, return absolute disk path
proof_system/tests/r1cs/mod.rs:17
↓ 12 callersMethodas_ref
(&self)
vb_accumulator/src/setup.rs:109
↓ 12 callersMethodas_ref
(&self)
short_group_sig/src/common.rs:75
↓ 12 callersMethodchallenge_contribution
( &self, accumulator_value: &G, writer: W, )
vb_accumulator/src/proofs_keyed_verification.rs:306
↓ 12 callersMethodchallenge_contribution
The commitment's contribution to the overall challenge of the protocol.
coconut/src/proof/messages_pok/mod.rs:104
↓ 12 callersMethodchallenge_contribution
( &self, revealed_msgs: &BTreeMap<usize, G::ScalarField>, params: &MACParams<G>,
kvac/src/bbdt_2016/proof.rs:152
↓ 12 callersMethodchallenge_contribution
( &self, revealed_msgs: &BTreeMap<usize, G::ScalarField>, params: &MACParams<G>,
kvac/src/bbs_sharp/proof.rs:239
↓ 12 callersMethodchallenge_contribution
( &self, base: &G, y: &G, writer: W, )
schnorr_pok/src/partial.rs:262
↓ 12 callersFunctioncreate_random_proof
( circuit: C, v: E::ScalarField, pk: &ProvingKey<E>, rng: &mut R, )
legogroth16/src/prover.rs:53
↓ 12 callersMethodlen
(&self)
legogroth16/src/aggregation/key.rs:79
↓ 12 callersFunctionread_u32
(reader: R)
legogroth16/src/circom/r1cs_reader.rs:147
↓ 12 callersFunctionseq_pairs_satisfy
Ensures that each sequence pair satisfy provided predicate.
utils/src/misc.rs:18
↓ 12 callersFunctionshow
( rng: &mut StdRng, max_attributes: u32, attributes: Vec<Fr>, disclosed_attrs: Vec<Fr>, au
delegatable_credentials/src/protego/show/tests.rs:92
↓ 12 callersMethodsize
(&self)
compressed_sigma/src/amortized_linear_form.rs:277
↓ 12 callersMethodverify
Verify if the proof is valid. Assumes that the public key and parameters have been validated already.
bbs_plus/src/proof.rs:358
↓ 12 callersMethodverify
( &self, challenge: &E::ScalarField, disclosed_attributes: Vec<E::ScalarField>,
delegatable_credentials/src/protego/show/known_signer.rs:462
↓ 12 callersMethodverify
( &self, message: E::ScalarField, output: &Output<E>, public_key: impl Into<&'
syra/src/vrf.rs:55
↓ 12 callersMethodverify
Verify the proof of knowledge of MAC. Requires the knowledge of the signer's secret key. It can be seen as composed of 2 parts, one requiring knowledg
kvac/src/bbs_sharp/proof.rs:492
↓ 11 callersFunction_transpose
(nrows: usize, ncols: usize)
oblivious_transfer/src/util.rs:260
↓ 11 callersMethodadd
(&mut self, p: G, s: G::ScalarField)
utils/src/randomized_mult_checker.rs:107
↓ 11 callersFunctioncheck
(rng: &mut StdRng, n: u16, choice: u16, g: &<Bls12_381 as Pairing>::G1Affine)
oblivious_transfer/src/base_ot/endemic_ot.rs:126
↓ 11 callersFunctioncheck_partial_know_multiple
( n: usize, witness_sizes: Vec<usize>, known_indices: BTreeSet<usize>,
compressed_sigma/src/partial_knowledge.rs:559
↓ 11 callersMethodcommit_decomposed
Given `base`-ary representation of a value, commit to its `digits`, `g * (1 * digits[0] + base * digits[1] + base^2 * digits[2] + base^{n-1} * digits[
smc_range_proof/src/common.rs:47
↓ 11 callersMethodfinish
(self)
bbs_plus/src/threshold/multiplication_phase.rs:86
↓ 11 callersMethodget_comm_key
( &'a self, setup_params: &'a [SetupParams<E>], st_idx: usize, )
proof_system/src/statement/inequality.rs:50
↓ 11 callersMethodinsert_row_slice
insert a continuous sequence of values at row r starting from c_offset
legogroth16/src/link/utils.rs:57
↓ 11 callersFunctionkeygen
Generate keys for encryption and decryption. The parameters `g_i`, `delta_g` and `gamma_g` are shared with the SNARK SRS.
saver/src/keygen.rs:239
↓ 11 callersFunctionscale
Return a scaled vector by multiplying each of its elements by `factor`. Returns `[arr_0 * factor, arr_1 * factor, arr_2 * factor, ...]`
utils/src/ff.rs:107
↓ 11 callersFunctionvalidate_bounds
(min: u64, max: u64)
proof_system/src/sub_protocols/mod.rs:191
↓ 11 callersMethodverify
Verify this proof. Delegates to [`verify_proof`] [`verify_proof`]: ProofProtocol::verify_proof
vb_accumulator/src/proofs.rs:1269
↓ 11 callersMethodverify
( &self, update_key: Option<&UpdateKey<E>>, user_public_key: &UserPublicKey<E>,
delegatable_credentials/src/msbm/issuance.rs:260
↓ 11 callersMethodverify
( &self, challenge: &E::ScalarField, pk: impl Into<PreparedPublicKeyG2<E>>, g1
short_group_sig/src/bb_sig_pok.rs:313
↓ 11 callersMethodverify_decryption_given_groth16_vk
Same as `Self::verify_decryption` but takes Groth16's verification key instead of the generators used for Elgamal encryption
saver/src/encryption.rs:527
↓ 11 callersMethodverify_partial_proof_contribution
( &self, challenge: &G::ScalarField, proof: &PedersenCommitmentPartialProof<G>,
proof_system/src/sub_protocols/schnorr.rs:175
↓ 10 callersMethodadd_multiple_sources
Add a sequence of group elements whose pairing product must be equal to the another given sequence of group elements, i.e. `\prod_{i}(e(a_i, b_i)) = \
utils/src/randomized_pairing_check.rs:92
↓ 10 callersMethodas_ref
(&self)
kvac/src/bbs_sharp/setup.rs:224
↓ 10 callersMethodchallenge_contribution
( &self, accumulator_value: &E::G1Affine, writer: W, )
vb_accumulator/src/proofs_cdh.rs:111
↓ 10 callersMethodchallenge_contribution
Assumes that the public commitments and commitment key have already been included in the challenge
schnorr_pok/src/mult_relations.rs:170
↓ 10 callersMethodchange_rep
ChangeRep from the paper
delegatable_credentials/src/msbm/sps_eq_uc_sig.rs:193
↓ 10 callersMethodcheck_before_add
Checks that should be done before adding the element to the accumulator, such as the element already being present
vb_accumulator/src/positive.rs:147
↓ 10 callersMethoddecrypt_given_groth16_vk
Same as `Self::decrypt` but takes Groth16's verification key instead of the generators used for Elgamal encryption
saver/src/encryption.rs:325
↓ 10 callersFunctiondivide_by_8
(n: T)
oblivious_transfer/src/util.rs:43
↓ 10 callersMethodextend
(&mut self, iter: I)
utils/src/extend_some.rs:24
↓ 10 callersMethodfinalize
Use the supplied external `rng` to rekey the transcript, so that the finalized [`TranscriptRng`] is a PRF bound to randomness from the external RNG, a
merlin/src/transcript.rs:336
↓ 10 callersFunctionfrom_seed
()
coconut/src/setup/keypair/secret.rs:88
↓ 10 callersMethodgen_partial_proof_contribution_as_struct
( &mut self, challenge: &G::ScalarField, skip_responses_for: &BTreeSet<usize>, )
proof_system/src/sub_protocols/schnorr.rs:143
↓ 10 callersMethodgen_proof
Generate proof. Post-challenge phase of the protocol.
coconut/src/proof/messages_pok/mod.rs:127
↓ 10 callersMethodgen_proof
(mut self, challenge: &G::ScalarField)
kvac/src/bbdt_2016/proof.rs:172
↓ 10 callersMethodget_resp_for_message
(&self)
short_group_sig/src/bb_sig_pok.rs:489
↓ 10 callersMethodremove
Remove an element from the accumulator updating both the internal accumulators.
vb_accumulator/src/kb_universal_accumulator/accumulator.rs:92
↓ 10 callersMethodrow_byte_size
(&self)
oblivious_transfer/src/configs.rs:127
↓ 10 callersFunctionsetup_universal_accum
( rng: &mut StdRng, max: u64, )
test_utils/src/accumulators.rs:35
↓ 10 callersMethodverify
Verify the proof of knowledge of MAC. Requires the knowledge of secret key. It can be seen as composed of 2 parts, one requiring knowledge of secret k
kvac/src/bbdt_2016/proof_cdh.rs:267
↓ 10 callersMethodverify
Verify the proof of knowledge of MAC. Requires the knowledge of secret key. It can be seen as composed of 2 parts, one requiring knowledge of secret k
kvac/src/bbdt_2016/proof.rs:220
↓ 9 callersMethodaccumulated
(&self)
delegatable_credentials/src/accumulator.rs:103
↓ 9 callersFunctioncheck
(chunk_bit_size: u8)
saver/src/encryption.rs:923
↓ 9 callersFunctioncheck
(chunk_bit_size: u8)
saver/src/tests.rs:71
↓ 9 callersMethoddouble
Commits to 2 vector, 1 of group G1 elements and 1 of group G2 elements.
legogroth16/src/aggregation/commitment.rs:36
↓ 9 callersMethodfill_bytes
(&mut self, dest: &mut [u8])
merlin/src/transcript.rs:377
↓ 9 callersMethodgen_partial2_proof
Generate proof when only response for witness2 has to be generated.
schnorr_pok/src/partial.rs:135
↓ 9 callersMethodget_accumulator_member
Get the member in the non-adaptive accumulator
vb_accumulator/src/kb_positive_accumulator/witness.rs:32
↓ 9 callersFunctionmultiple_batches_check
Create accumulator and check whether multiple batch updates can be applied to a witness
vb_accumulator/src/witness.rs:1571
↓ 9 callersFunctionmultiple_batches_check
( member: &Fr, initial_additions: Vec<Fr>, additions: Vec<Vec<Fr>>, removals:
vb_accumulator/src/kb_positive_accumulator/witness.rs:608
↓ 9 callersMethodoverhead
(&self)
oblivious_transfer/src/ot_based_multiplication/dkls18_mul_2p.rs:69
↓ 9 callersFunctionpadded_base_n_digits_as_field_elements
Same as `base_n_digits` but pads representation with 0s to the end to make the output vector length as `size`
smc_range_proof/src/common.rs:90
↓ 9 callersMethodpartial_response
The key of the map is the index for which response has to be generated.
schnorr_pok/src/partial.rs:91
↓ 9 callersMethodresponse
Schnorr response for relation `k_{l} = \sum_{j}(beta_tilde_{j} * m_{l}{j} + g_tilde * r_{l})`.
coconut/src/proof/signature_pok/k.rs:80
↓ 9 callersFunctionsetup_for_groth16
Generate secret key, encryption key, decryption key and generate SNARK proving and verifying key
saver/src/setup.rs:90
↓ 9 callersFunctionsetup_kb_positive_accum
( rng: &mut StdRng, )
vb_accumulator/src/kb_positive_accumulator/adaptive_accumulator.rs:264
↓ 9 callersFunctiontake_while_satisfy
Ensures that the given iterator satisfies provided validator for each item. The supplied option will be modified to `V::Failure` in case of failure, a
utils/src/iter.rs:68
↓ 9 callersMethodverify
(&self)
proof_system/src/statement/bound_check_smc.rs:52
↓ 9 callersMethodverify_using_randomized_mult_checker
Same as `Self::is_valid` except it uses `RandomizedMultChecker` to combine the scalar multiplication checks into a single
schnorr_pok/src/partial.rs:170
↓ 8 callersMethodadd
(&mut self, item: Statement<E>)
proof_system/src/statement/mod.rs:153
↓ 8 callersMethodadd
(&self, _other: &Self)
compressed_sigma/src/amortized_linear_form.rs:269
↓ 8 callersMethodchallenge_bytes
Fill the supplied buffer with the verifier's challenge bytes. The `label` parameter is metadata about the challenge, and is also appended to the tran
merlin/src/transcript.rs:184
↓ 8 callersMethodchallenge_bytes_with_non_static_label
(&mut self, label: &[u8], dest: &mut [u8])
merlin/src/transcript.rs:188
↓ 8 callersMethodchallenge_contribution
Get the contribution of this protocol towards the challenge, i.e. bytecode of items that will be hashed
bbs_plus/src/proof_23.rs:193
↓ 8 callersMethodchallenge_contribution
( &self, P1: &E::G1Affine, writer: W, )
delegatable_credentials/src/msbm/show.rs:101
↓ 8 callersMethodchallenge_contribution
( &self, Z: &E::G1Affine, writer: W, )
syra/src/pseudonym.rs:235
↓ 8 callersMethodcheck_before_remove
Checks that should be done before removing the element from the accumulator, such as the element already being absent
vb_accumulator/src/positive.rs:160
↓ 8 callersMethodcommit_as_projective
( &self, message: &G::ScalarField, randomness: &G::ScalarField, )
utils/src/commitment.rs:58
↓ 8 callersMethodgen_proof
Create membership proof once the overall challenge is ready. Delegates to [`compute_responses`] [`compute_responses`]: ProofProtocol::compute_respons
vb_accumulator/src/proofs.rs:1058
↓ 8 callersMethodgen_proof
Generate proof. Post-challenge phase of the protocol.
bbs_plus/src/proof_23.rs:210
↓ 8 callersMethodgen_proof
(mut self, challenge: &G::ScalarField)
kvac/src/bbdt_2016/proof_cdh.rs:193
↓ 8 callersMethodgen_show
(self, challenge: &E::ScalarField)
delegatable_credentials/src/msbm/show.rs:111
↓ 8 callersFunctionget_n_powers
Given `elem` and number `n`, return `n` powers of `elem` as `[elem, elem^2, elem^3, ..., elem^n]`
compressed_sigma/src/utils.rs:59
↓ 8 callersMethodget_resp_for_randomness
(&self)
short_group_sig/src/bb_sig_pok.rs:493
↓ 8 callersFunctionissuance
( rng: &mut StdRng, max_attributes: u32, attributes: Vec<Fr>, auditable: bool,
delegatable_credentials/src/protego/issuance.rs:500
↓ 8 callersMethodmultiply_many
Multiply with a many scalars
utils/src/msm.rs:38
↓ 8 callersFunctionmultiply_poly
Naive multiplication (n^2) of 2 polynomials defined over prime fields Note: Using multiply operator from ark-poly is orders of magnitude slower than n
utils/src/poly.rs:10
↓ 8 callersMethodopen_set
Checks if the commitment can be opened with the given opening and for the given set.
delegatable_credentials/src/set_commitment.rs:278
← previousnext →101–200 of 2,782, ranked by callers