MCPcopy Create free account

hub / github.com/docknetwork/crypto / functions

Functions2,782 in github.com/docknetwork/crypto

↓ 2 callersMethodcompute_membership_witness
( &self, member: &G::ScalarField, sk: &SecretKey<G::ScalarField>, )
vb_accumulator/src/kb_universal_accumulator/accumulator.rs:380
↓ 2 callersMethodcompute_new_post_add_batch
Compute new accumulated value after batch addition
vb_accumulator/src/positive.rs:492
↓ 2 callersMethodcompute_new_post_add_batch
( &self, elements: &[G::ScalarField], sk: &SecretKey<G::ScalarField>, )
vb_accumulator/src/kb_universal_accumulator/accumulator.rs:321
↓ 2 callersMethodcompute_new_post_remove
( &self, element: &G::ScalarField, sk: &SecretKey<G::ScalarField>, )
vb_accumulator/src/kb_universal_accumulator/accumulator.rs:299
↓ 2 callersMethodcompute_new_post_remove_batch
Compute new accumulated value after batch removal
vb_accumulator/src/positive.rs:532
↓ 2 callersMethodconvert_orphan_signature
( &mut self, user_secret_key: &UserSecretKey<E>, X_0: &E::G1Affine, )
delegatable_credentials/src/msbm/issuance.rs:287
↓ 2 callersFunctioncreate_P
Create a random gamma and then P = gs * y + h * gamma
compressed_sigma/src/partial_knowledge.rs:60
↓ 2 callersFunctioncreate_c_vec
(y: F, t_pows: &TPowers<F>)
bulletproofs_plus_plus/src/range_proof.rs:1006
↓ 2 callersFunctioncreate_kzg_opening
Returns the KZG opening proof for the given commitment key. Specifically, it returns $g^{f(alpha) - f(z) / (alpha - z)}$ for $a$ and $b$.
legogroth16/src/aggregation/kzg.rs:178
↓ 2 callersMethodcreate_msgs
Prepare messages (commitments) to sign
delegatable_credentials/src/protego/issuance.rs:368
↓ 2 callersFunctioncreate_proof
( circuit: C, v: E::ScalarField, r: &E::ScalarField, pk: &ProvingKey<E>,
saver/src/saver_legogroth16.rs:82
↓ 2 callersFunctioncreate_y_from_t_and_poly
Return a new vector `y` whose first `d` elements are coefficients of degree `d` polynomial `poly` and rest of the elements are of `t`, i.e. `y = [a_1,
compressed_sigma/src/partial_knowledge.rs:49
↓ 2 callersFunctiondecompose_for_sumset
Returns digits of `value` when expressed in sumset notation give sumset boundaries, i.e. `G`
smc_range_proof/src/cls_range_proof/util.rs:96
↓ 2 callersMethoddecrypt_given_groth16_vk_and_pairing_powers
Same as `Self::decrypt` but takes Groth16's verification key and the precomputed pairing powers
saver/src/encryption.rs:339
↓ 2 callersMethoddecrypt_given_pairing_powers
Same as `Self::decrypt` but expects pairing powers (see `PreparedDecryptionKey::pairing_powers`) that can be precomputed for even faster decryption
saver/src/encryption.rs:303
↓ 2 callersMethoddelegate_without_new_attributes
Credential issued by the a delegated issuer without adding any more attributes. The issued credential will have an orphan signature, i.e. the receiver
delegatable_credentials/src/msbm/issuance.rs:115
↓ 2 callersMethodderive_commitment_keys
Derive commitment keys for Schnorr protocol from public params. This is done to avoid creating them if the same public params are used in multiple sta
proof_system/src/proof_spec.rs:228
↓ 2 callersMethodderive_membership_proving_key
Derive the membership proving key when doing a membership proof with a universal accumulator.
vb_accumulator/src/setup.rs:304
↓ 2 callersMethoddisjoint_witness_equalities
Given multiple `MetaStatement::WitnessEquality` which might have common witness references, return a list of `EqualWitnesses` with no common reference
proof_system/src/meta_statement.rs:99
↓ 2 callersFunctiondo_phase1
( rng: &mut StdRng, threshold_signers: ParticipantId, protocol_id: Vec<u8>, )
vb_accumulator/src/threshold/mod.rs:59
↓ 2 callersFunctiondo_phase1
First phase of signing where signers generate randomness
syra/src/threshold_issuance.rs:252
↓ 2 callersFunctiondo_phase1
( rng: &mut StdRng, threshold_signers: ParticipantId, protocol_id: Vec<u8>, )
short_group_sig/src/threshold_weak_bb_sig.rs:393
↓ 2 callersFunctiondo_phase2
( rng: &mut StdRng, threshold_signers: ParticipantId, gadget_vector: &GadgetVector<Fr,
vb_accumulator/src/threshold/mod.rs:125
↓ 2 callersFunctiondo_phase2
Second phase of signing where signers operate on the message and phase 1 output
syra/src/threshold_issuance.rs:312
↓ 2 callersFunctiondo_phase2
Pass `full_message` if all signers know the full message. Pass `message_shares` if each signer knows only a share of the original message.
short_group_sig/src/threshold_weak_bb_sig.rs:456
↓ 2 callersMethodelements
(&'a self)
vb_accumulator/src/persistence.rs:103
↓ 2 callersFunctionelements_to_element_products
Convert field element vector from `[c_1, c_2, c_3, ..., c_n]` to `[c_1*c_2*...*c_n, c_2*c_3*...*c_n, c_3*...*c_n, ..., c_{n-1}*c_n, c_n, 1]`
compressed_sigma/src/utils.rs:122
↓ 2 callersMethodeval_given_t_powers
evaluate the poly at t
bulletproofs_plus_plus/src/range_proof.rs:1050
↓ 2 callersMethodexpand
Given a parent node, create its 2 children nodes
verifiable_encryption/src/tz_21/seed_tree.rs:163
↓ 2 callersMethodextend_domain
Add new elements to an already initialized accumulator that were not part of its `domain`.
vb_accumulator/src/kb_universal_accumulator/accumulator.rs:64
↓ 2 callersMethodextract_prepared
(self)
legogroth16/src/aggregation/srs.rs:187
↓ 2 callersFunctionfinal_verification_check
( mut source1: Vec<E::G1Affine>, mut source2: Vec<E::G2Affine>, z_c: E::G1Affine, z_ab: &Pairi
legogroth16/src/aggregation/utils.rs:198
↓ 2 callersMethodfinish
Participant finishes Round 1 and starts Round 2.
secret_sharing_and_dkg/src/frost_dkg.rs:182
↓ 2 callersMethodfinish
This should be called after "sufficient" messages have been received. "sufficient" might be just the threshold or greater depending on the number of f
secret_sharing_and_dkg/src/abcp_dkg.rs:231
↓ 2 callersMethodfrom_orphan
Attach a user's public key to an orphan signature.
delegatable_credentials/src/msbm/sps_eq_uc_sig.rs:472
↓ 2 callersMethodgen_partial_proof
( mut self, challenge: &G::ScalarField, )
vb_accumulator/src/proofs_keyed_verification.rs:323
↓ 2 callersMethodgen_proof
( self, challenge: &E::ScalarField, )
vb_accumulator/src/kb_universal_accumulator/proofs.rs:76
↓ 2 callersMethodgen_proof
( self, challenge: &E::ScalarField, )
vb_accumulator/src/kb_universal_accumulator/proofs_cdh.rs:64
↓ 2 callersMethodgen_proof
( self, challenge: &G::ScalarField, )
vb_accumulator/src/kb_universal_accumulator/proofs_keyed_verification.rs:116
↓ 2 callersMethodgen_proof
( self, challenge: &Tom256Fr, )
equality_across_groups/src/pok_ecdsa_pubkey.rs:198
↓ 2 callersMethodgenerate_constraints
( self, cs: ConstraintSystemRef<ConstraintF>, )
legogroth16/src/tests.rs:53
↓ 2 callersMethodget_bases_and_scalars_for_reduced_commitment
( &self, c: Vec<G::ScalarField>, rho: G::ScalarField, setup_params: &SetupPara
bulletproofs_plus_plus/src/weighted_norm_linear_argument.rs:380
↓ 2 callersFunctionget_bounded_u16_from_u8_slice
(c: &[u8], upper_bound: u16)
verifiable_encryption/src/tz_21/util.rs:66
↓ 2 callersMethodget_coefficients
(&self)
vb_accumulator/src/batch_utils.rs:415
↓ 2 callersMethodget_comm_shares_and_salts
(&self)
bbs_plus/src/threshold/randomness_generation_phase.rs:25
↓ 2 callersMethodget_commitment_key_for_witnesses
Get the commitment key used for the Pedersen commitment to witnesses in the proof
legogroth16/src/data_structures.rs:206
↓ 2 callersMethodget_commitments_to_values_given_g
Same as `Self::get_commitments_to_values` but accepts the generator `g` from the setup params
bulletproofs_plus_plus/src/range_proof_arbitrary_range.rs:134
↓ 2 callersMethodget_enc_params
( &'a self, setup_params: &'a [SetupParams<E>], st_idx: usize, )
proof_system/src/statement/verifiable_encryption_tz_21.rs:96
↓ 2 callersMethodget_field_num_len32
Get number of 32-bit chunks needed to represent a field element
legogroth16/src/circom/wasm.rs:34
↓ 2 callersFunctionget_g_multiples_for_verifying_compression
In each round `i`, current `g` is split in 2 halves, `g_l` and `g_r` and new `g` is created as `c_i*g_l + g_r` where `g_l` and `g_r` are left and righ
compressed_sigma/src/utils.rs:88
↓ 2 callersMethodget_legogroth16_proof
( &self, index: usize, )
proof_system/src/verifier.rs:1850
↓ 2 callersMethodget_legogroth16_proof
Get LegoGroth16 randomness and proof to reuse for the given statement id
proof_system/src/prover.rs:114
↓ 2 callersMethodget_membership_witnesses_for_batch
Get membership witnesses for multiple elements present in accumulator. Returns witnesses in the order of passed elements. It is more efficient than co
vb_accumulator/src/positive.rs:386
↓ 2 callersMethodget_public_inputs
( &'a self, setup_params: &'a [SetupParams<E>], st_idx: usize, )
proof_system/src/statement/r1cs_legogroth16.rs:170
↓ 2 callersFunctionget_range_and_randomness_multiple
Return range, i.e. `max - min`, such that it's a multiple of `base-1`. If `base-1` does not divide `max - min`, the new range is `(max - min)*(base-1)
smc_range_proof/src/cls_range_proof/util.rs:15
↓ 2 callersMethodget_response_for_element
(&self)
vb_accumulator/src/proofs.rs:468
↓ 2 callersMethodget_responses
( &self, msg_ids: &BTreeSet<usize>, revealed_msg_ids: &BTreeSet<usize>, )
kvac/src/bbdt_2016/proof_cdh.rs:335
↓ 2 callersMethodget_schnorr_response_for_message
( &self, index: usize, )
proof_system/src/statement_proof.rs:304
↓ 2 callersMethodget_snark_verifying_key
( &'a self, setup_params: &'a [SetupParams<E>], st_idx: usize, )
proof_system/src/statement/saver.rs:242
↓ 2 callersMethodhas_correct_len
Returns true if commitment keys have the exact required length. It is necessary for the IPP scheme to work that commitment key have the exact same num
legogroth16/src/aggregation/srs.rs:135
↓ 2 callersMethodid
(&self)
secret_sharing_and_dkg/src/common.rs:185
↓ 2 callersMethodinit
( &mut self, rng: &mut R, comm_key: &'a [G], message: G::ScalarField,
proof_system/src/sub_protocols/bound_check_bpp.rs:53
↓ 2 callersMethodinit_schnorr_protocol
Initializes a Schnorr protocol to prove the knowledge of committed values in the Pedersen commitment in the Legosnark proof
proof_system/src/sub_protocols/bound_check_legogroth16.rs:269
↓ 2 callersMethodinit_schnorr_protocol
( &mut self, rng: &mut R, comm_key: &'a [E::G1Affine], witness: crate::witness
proof_system/src/sub_protocols/r1cs_legogorth16.rs:237
↓ 2 callersMethodinit_schnorr_protocols
Initialize 3 Schnorr proof of knowledge protocols to prove the knowledge of committed value in ciphertext
proof_system/src/sub_protocols/saver.rs:492
↓ 2 callersMethodinit_with_all_blindings_given
( &mut self, blindings: Vec<G::ScalarField>, witnesses: Vec<G::ScalarField>, )
proof_system/src/sub_protocols/schnorr.rs:62
↓ 2 callersMethodinit_with_old_randomness_and_proof
( &mut self, rng: &mut R, comm_key: &'a [E::G1Affine], witness: crate::witness
proof_system/src/sub_protocols/r1cs_legogorth16.rs:91
↓ 2 callersFunctioninner_product_and_double_commitments
( a_left: &[E::G1Affine], a_right: &[E::G1Affine], b_left: Vec<E::G2Prepared>, b_right: Vec<E:
legogroth16/src/aggregation/utils.rs:73
↓ 2 callersMethodinto_iter
(self)
utils/src/owned_pairs.rs:162
↓ 2 callersMethodinto_par_iter
(self)
utils/src/owned_pairs.rs:176
↓ 2 callersMethodis_non_zero
(&self)
short_group_sig/src/weak_bb_sig.rs:177
↓ 2 callersMethodis_valid
Params shouldn't be 0
vb_accumulator/src/setup.rs:136
↓ 2 callersMethodis_valid
( &self, g: &[G], max_size: u32, P: &[G], y: &[G], f: &F,
compressed_sigma/src/amortized_homomorphism.rs:90
↓ 2 callersMethodis_valid
Keys of `missing_responses` are the witness indices whose response was generated while creating this. Instead, these come from some other Schnorr prot
schnorr_pok/src/partial.rs:149
↓ 2 callersFunctionissuance_given_setup
( rng: &mut StdRng, attributes: Vec<Fr>, auditable: bool, apk: &AuditorPublicK
delegatable_credentials/src/protego/issuance.rs:531
↓ 2 callersMethoditer
Returns an iterator over zipped pairs.
utils/src/owned_pairs.rs:62
↓ 2 callersFunctionle_bytes_iter
Produces an iterator emitting `n` items `u32::to_le_bytes` of the counter starting from zero.
utils/src/misc.rs:76
↓ 2 callersMethodlen
(&self)
utils/src/randomized_mult_checker.rs:103
↓ 2 callersMethodmap_ref_mut
Applies given `f` to the mutable reference of each contained entity producing a new `SecretKeyModel`.
coconut/src/setup/keygen/common.rs:120
↓ 2 callersMethodmatrix_byte_size
(&self)
oblivious_transfer/src/configs.rs:105
↓ 2 callersMethodmerge
(&mut self, other: &Self)
legogroth16/src/aggregation/legogroth16/verifier.rs:527
↓ 2 callersMethodmerge
(&mut self, other: &Self)
legogroth16/src/aggregation/groth16/verifier.rs:446
↓ 2 callersFunctionmerge_indexed_messages_with_blindings
Merges indexed messages sorted by index with indexed blindings sorted by index. Messages which don't have corresponding blindings will be blinded rand
proof_system/src/sub_protocols/mod.rs:156
↓ 2 callersFunctionmultiples_of_g
Returns `[g, 2*g, 3*g, ..., n*g]`
oblivious_transfer/src/util.rs:32
↓ 2 callersFunctionmultiples_with_n_powers_of_i
Returns vector `[g * i * coeff, g * i^2 * coeff, g * i^3 * coeff, ..., g * i^n * coeff]`
compressed_sigma/src/utils.rs:68
↓ 2 callersFunctionnew_store
()
legogroth16/src/circom/witness.rs:32
↓ 2 callersMethodnext_u32
fetches 32 bits of randomness
oblivious_transfer/src/aes_prng.rs:162
↓ 2 callersMethodnum_digits_per_proof
Obtain the number of digits in the base representation
bulletproofs_plus_plus/src/range_proof.rs:293
↓ 2 callersMethodover
Applies `sf` to a single item and `pf` to a pair.
utils/src/try_iter.rs:126
↓ 2 callersFunctionpair_valid_items_with_slice
Maps supplied iterator and attempts to pair each successfully validated item with a corresponding item from the slice. Validation errors will be propa
utils/src/iter.rs:48
↓ 2 callersFunctionpair_with_slice
Maps supplied iterator and attempts to pair each item with an item from the slice which has provided index. Returns `Err` containing an invalid index
utils/src/iter.rs:23
↓ 2 callersMethodpairing_powers
Calling `pairing_powers` on the prepared decryption key
saver/src/keygen.rs:194
↓ 2 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/legogroth16/proof.rs:44
↓ 2 callersFunctionpluck_missed
Plucks items from the supplied iterator corresponding to missed indices. This function implies that both iterators are sorted.
utils/src/iter.rs:7
↓ 2 callersFunctionpolynomial_coefficients_from_transcript
Compute the coefficients of the polynomial $\prod_{j=0}^{l-1} (1 + x_{l-j}(rX)^{2j})$ It does this in logarithmic time directly; here is an example wi
legogroth16/src/aggregation/kzg.rs:267
↓ 2 callersMethodpre_verify
( &self, bases: &[G], missing_responses: BTreeMap<usize, G::ScalarField>, )
schnorr_pok/src/partial.rs:207
↓ 2 callersFunctionprepare_generators_and_linear_form_for_compression
( g: &[G], h: &G, linear_form: &L, c_1: &G::ScalarField, )
compressed_sigma/src/compressed_linear_form.rs:379
↓ 2 callersMethodprocess_received
Verify the received credential and then randomize the credential, update key (if needed) and user's secret and public key
delegatable_credentials/src/msbm/issuance.rs:388
↓ 2 callersMethodprocess_received_using_given_randomness
( self, mu: &E::ScalarField, psi: E::ScalarField, chi: E::ScalarField,
delegatable_credentials/src/msbm/issuance.rs:417
↓ 2 callersMethodrandomize_using_given_randomness
( &self, psi: &E::ScalarField, chi: &E::ScalarField, P1: &E::G1Affine, )
delegatable_credentials/src/msbm/keys.rs:136
← previousnext →601–700 of 2,782, ranked by callers