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
supports_revocation
(&self)
delegatable_credentials/src/protego/show/known_signer.rs:659
↓ 1 callers
Method
supports_threshold
(&self, threshold: ShareId)
secret_sharing_and_dkg/src/common.rs:132
↓ 1 callers
Function
t_pow_in_c
Obtain the non-zero at i position
bulletproofs_plus_plus/src/range_proof.rs:991
↓ 1 callers
Method
terms
(&self)
legogroth16/src/circom/r1cs.rs:18
↓ 1 callers
Method
threshold
(&self)
secret_sharing_and_dkg/src/pedersen_vss.rs:148
↓ 1 callers
Method
to_credential
Done by the credential receiver
delegatable_credentials/src/msbm/issuance.rs:492
↓ 1 callers
Method
to_keyed_proof
Create a new sub-proof that can be verified by someone with the secret key
kvac/src/bbdt_2016/proof_cdh.rs:351
↓ 1 callers
Method
to_keyed_proof
Create a new sub-proof that can be verified by someone with the secret key
kvac/src/bbdt_2016/proof.rs:236
↓ 1 callers
Method
total_num_digits
Obtain the number of digits in the base representation Num of digits in single proof times the number of proofs
bulletproofs_plus_plus/src/range_proof.rs:288
↓ 1 callers
Method
transform_ecdsa_sig
Transform the ECDSA signature received from user (likely from the secure hardware) to be verifiable by the blinded public key.
kvac/src/bbs_sharp/proof.rs:300
↓ 1 callers
Method
transform_message_for_ecdsa_sig
Transform the message to be given to ECDSA signing. Called before generating signature and thus before calling `Self::transform_ecdsa_sig`
kvac/src/bbs_sharp/proof.rs:316
↓ 1 callers
Function
transpose8
Transpose an 8x8 bit matrix given as a u64. The code is taken from the book Hacker's Delight's figure 7.6 after slight modification. In the book's cod
oblivious_transfer/src/util.rs:65
↓ 1 callers
Function
transpose_inplace
(dst: &mut [u8], src: &[u8], total_bits: usize, nrows: usize, ncols: usize)
oblivious_transfer/src/util.rs:151
↓ 1 callers
Function
transpose_using_sse
(m: &[u8], nrows: usize, ncols: usize)
oblivious_transfer/src/util.rs:201
↓ 1 callers
Method
try_map_ref_mut
Attempts to apply given `f` to the mutable reference of each contained entity producing a new `SecretKeyModel`.
coconut/src/setup/keygen/common.rs:107
↓ 1 callers
Function
try_validate
Ensures that the given iterator satisfies provided validator for each successful item. In case of an error, `Err(E)` will be emitted.
utils/src/try_iter.rs:157
↓ 1 callers
Method
update_mem_wit_on_addition
Update the membership witness on adding an element. Call this on the accumulator before update
vb_accumulator/src/kb_universal_accumulator/witness.rs:65
↓ 1 callers
Method
update_mem_wit_on_removal
Update the membership witness on removal of an element. Call this on the accumulator after update
vb_accumulator/src/kb_universal_accumulator/witness.rs:77
↓ 1 callers
Method
update_mem_wit_using_secret_key_on_batch_additions
Update the membership witnesses on addition of a batch of elements. Call this on the accumulator before update
vb_accumulator/src/kb_universal_accumulator/witness.rs:90
↓ 1 callers
Method
update_mem_wit_using_secret_key_on_batch_removals
Update the membership witnesses on removal of a batch of elements. Call this on the accumulator before update
vb_accumulator/src/kb_universal_accumulator/witness.rs:112
↓ 1 callers
Method
update_mem_wit_using_secret_key_on_batch_updates
Update the membership witnesses on addition and removal of a batch of elements. Call this on the accumulator before update
vb_accumulator/src/kb_universal_accumulator/witness.rs:134
↓ 1 callers
Method
update_non_mem_wit_on_addition
Update the non-membership witness on adding an element. Call this on the accumulator after update
vb_accumulator/src/kb_universal_accumulator/witness.rs:157
↓ 1 callers
Method
update_non_mem_wit_on_removal
Update the non-membership witness on removal of an element. Call this on the accumulator before update
vb_accumulator/src/kb_universal_accumulator/witness.rs:170
↓ 1 callers
Method
update_non_mem_wit_using_secret_key_on_batch_additions
Update the non-membership witnesses on addition of a batch of elements. Call this on the accumulator before update
vb_accumulator/src/kb_universal_accumulator/witness.rs:182
↓ 1 callers
Method
update_non_mem_wit_using_secret_key_on_batch_removals
Update the non-membership witnesses on removal of a batch of elements. Call this on the accumulator before update
vb_accumulator/src/kb_universal_accumulator/witness.rs:204
↓ 1 callers
Method
update_non_mem_wit_using_secret_key_on_batch_updates
Update the non-membership witnesses on addition and removal of a batch of elements. Call this on the accumulator before update
vb_accumulator/src/kb_universal_accumulator/witness.rs:220
↓ 1 callers
Method
update_non_mem_wit_using_secret_key_on_domain_extension
( &self, new_elements: &[G::ScalarField], non_members: &[G::ScalarField], old_
vb_accumulator/src/kb_universal_accumulator/witness.rs:242
↓ 1 callers
Method
update_using_public_info_after_domain_extension
( &self, new_elements: &[G::ScalarField], omega: &Omega<G>, non_member: &G::Sc
vb_accumulator/src/kb_universal_accumulator/witness.rs:590
↓ 1 callers
Method
validate
(&mut self, item: &I)
utils/src/try_iter.rs:51
↓ 1 callers
Method
verify
( &self, accumulator_value: &E::G1Affine, challenge: &E::ScalarField, pk: impl
vb_accumulator/src/kb_positive_accumulator/proofs_cdh.rs:112
↓ 1 callers
Method
verify
Verify if the proof is valid. Assumes that the public key and parameters have been validated already.
bbs_plus/src/proof_23_cdl.rs:302
↓ 1 callers
Method
verify
Verify the validity of the signature. Assumes that the public key and parameters have been validated already.
bbs_plus/src/signature_23.rs:136
↓ 1 callers
Method
verify
Check the proof that `a + b = t` Its assumed that verifier "trusts" that commitment to point `a`, `b` and `t` are `comm_a`, `comm_b` and `comm_t` resp
equality_across_groups/src/ec/sw_point_addition.rs:212
↓ 1 callers
Method
verify
For verifying `base * scalar = result` where `comm_scalar` and `comm_result` are commitments to `scalar` and `result` respectively
equality_across_groups/src/ec/sw_scalar_mult.rs:263
↓ 1 callers
Method
verify
( &self, num_bits: u16, setup_params: &SetupParams<G>, transcript: &mut impl T
bulletproofs_plus_plus/src/range_proof_arbitrary_range.rs:62
↓ 1 callers
Method
verify
Verify the argument.
bulletproofs_plus_plus/src/weighted_norm_linear_argument.rs:191
↓ 1 callers
Method
verify
Compute the commitment C and run the norm arg on it C = S + t*M + t^2*D + t^3*R + 2t^5*V + P P = <g_vec_pub_offsets, G_vec> + g_offset*G
bulletproofs_plus_plus/src/range_proof.rs:773
↓ 1 callers
Method
verify
Executed by each participant to verify its share received from the dealer. Also, should be called by the "reconstructor" to verify that each of the sh
secret_sharing_and_dkg/src/pedersen_vss.rs:103
↓ 1 callers
Method
verify
( &self, share: &ComputationShare<G>, share_commitment: &ShareCommitment<G>, s
secret_sharing_and_dkg/src/distributed_dlog_check/semi_honest.rs:145
↓ 1 callers
Method
verify
( &self, possible: Vec<&[E::G2Affine]>, instance: &[E::G2Affine], srs: &OneOfN
delegatable_credentials/src/one_of_n_proof.rs:140
↓ 1 callers
Method
verify
( &self, challenge: &E::ScalarField, disclosed_attributes: Vec<E::ScalarField>,
delegatable_credentials/src/protego/show/signer_hidden_with_decoys.rs:224
↓ 1 callers
Method
verify
( &self, challenge: &E::ScalarField, disclosed_attributes: Vec<E::ScalarField>,
delegatable_credentials/src/protego/show/signer_hidden_with_policy.rs:197
↓ 1 callers
Method
verify
( &self, commitment: &G, challenge: &G::ScalarField, comm_key: &MemberCommitme
smc_range_proof/src/ccs_set_membership/kv_single.rs:77
↓ 1 callers
Method
verify
( &self, commitment: &G, challenge: &G::ScalarField, min: u64, max: u6
smc_range_proof/src/cls_range_proof/kv_range_proof.rs:167
↓ 1 callers
Method
verify
Verify the proof for `0 <= value < max` where `commitment` is a Pedersen commitment to `value`
smc_range_proof/src/ccs_range_proof/kv_perfect_range.rs:146
↓ 1 callers
Method
verify
Verify the proof for `min <= value < max` where `commitment` is a Pedersen commitment to `value`
smc_range_proof/src/ccs_range_proof/kv_arbitrary_range.rs:214
↓ 1 callers
Method
verify
( &self, message: &E::ScalarField, pk: impl AsRef<E::G2Affine>, params: &Signa
short_group_sig/src/weak_bb_sig.rs:116
↓ 1 callers
Method
verify
( &self, challenge: &E::ScalarField, pk: impl Into<PreparedPublicKeyG2<E>>, g1
short_group_sig/src/bb_sig_pok_cdh.rs:161
↓ 1 callers
Method
verify_challenge
Verifies that `k_{l} = \sum_{j}(beta_tilde_{j} * m_{l}{j} + g_tilde * r_{l})`.
coconut/src/proof/signature_pok/k.rs:100
↓ 1 callers
Method
verify_decryption_given_groth16_vk_with_randomized_pairing_checker
( &self, message: &E::ScalarField, nu: &E::G1Affine, chunk_bit_size: u8,
saver/src/encryption.rs:807
↓ 1 callers
Method
verify_decryption_with_randomized_pairing_checker
Same as `Self::verify_decryption` but used randomized pairing checker
saver/src/encryption.rs:472
↓ 1 callers
Method
verify_for_inequality_with_committed_value
( &self, commitment1: &G, commitment2: &G, challenge: &G::ScalarField,
schnorr_pok/src/inequality.rs:262
↓ 1 callers
Method
verify_for_inequality_with_committed_value_using_randomized_mult_checker
( &self, commitment1: &G, commitment2: &G, challenge: &G::ScalarField,
schnorr_pok/src/inequality.rs:306
↓ 1 callers
Method
verify_given_commitment_multiplicands
Same as `Self::verify` except that it does not take the commitment directly but takes the `bases` and `scalars` whose inner product (MSM) gives the co
bulletproofs_plus_plus/src/weighted_norm_linear_argument.rs:213
↓ 1 callers
Method
verify_given_destructured_params
( &self, message: &E::ScalarField, pk: impl AsRef<E::G2Affine>, g1: &E::G1Affi
short_group_sig/src/weak_bb_sig.rs:125
↓ 1 callers
Method
verify_given_randomized_pairing_checker
( &self, commitment: &E::G1Affine, challenge: &E::ScalarField, min: u64,
smc_range_proof/src/cls_range_proof/range_proof_cdh.rs:191
↓ 1 callers
Method
verify_given_randomized_pairing_checker
Verify the proof for `0 <= value < max` where `commitment` is a Pedersen commitment to `value`
smc_range_proof/src/ccs_range_proof/perfect_range.rs:206
↓ 1 callers
Method
verify_given_randomized_pairing_checker
Verify the proof for `min <= value < max` where `commitment` is a Pedersen commitment to `value`
smc_range_proof/src/ccs_range_proof/arbitrary_range_cdh.rs:253
↓ 1 callers
Method
verify_given_randomized_pairing_checker
Verify the proof for `0 <= value < max` where `commitment` is a Pedersen commitment to `value`
smc_range_proof/src/ccs_range_proof/perfect_range_cdh.rs:177
↓ 1 callers
Method
verify_given_randomized_pairing_checker
Verify the proof for `min <= value < max` where `commitment` is a Pedersen commitment to `value`
smc_range_proof/src/ccs_range_proof/arbitrary_range.rs:323
↓ 1 callers
Method
verify_given_sig_params_with_pairing
( &self, message: &E::ScalarField, pk: &PublicKeyG2<E>, params: &SignaturePara
short_group_sig/src/bb_sig.rs:152
↓ 1 callers
Method
verify_given_sig_params_with_pairing
( &self, message: &E::ScalarField, pk: impl AsRef<E::G2Affine>, params: &Signa
short_group_sig/src/weak_bb_sig.rs:149
↓ 1 callers
Function
verify_kzg_v
verify_kzg_opening_g2 takes a KZG opening, the final commitment key, SRS and any shift (in TIPP we shift the v commitment by r^-1) and returns a pairi
legogroth16/src/aggregation/kzg.rs:36
↓ 1 callers
Function
verify_kzg_w
Similar to verify_kzg_opening_g2 but for g1.
legogroth16/src/aggregation/kzg.rs:82
↓ 1 callers
Function
verify_link_proof
Verify the proof of the Subspace Snark on the equality of openings of cp_link and proof.d
legogroth16/src/verifier.rs:53
↓ 1 callers
Method
verify_mac_and_partial_schnorr_proof_contribution
( &self, challenge: &G::ScalarField, proof: &PoKOfMAC<G>, secret_key: &SecretK
proof_system/src/sub_protocols/bbdt16_kvac.rs:182
↓ 1 callers
Method
verify_mac_and_schnorr_proof_contribution
( &self, challenge: &G::ScalarField, proof: &PoKOfMAC<G>, secret_key: &SecretK
proof_system/src/sub_protocols/bbdt16_kvac.rs:168
↓ 1 callers
Method
verify_non_membership
Check if element is absent in accumulator. Described in section 2 of the paper This takes `self` as an argument, but the secret `f_V` isn't used; thus
vb_accumulator/src/universal.rs:625
↓ 1 callers
Method
verify_partial
( &self, resp_for_element: &E::ScalarField, accumulator_value: &E::G1Affine, c
vb_accumulator/src/kb_positive_accumulator/proofs.rs:175
↓ 1 callers
Method
verify_partial
( &self, resp_for_element: &E::ScalarField, accumulator_value: &E::G1Affine, c
vb_accumulator/src/kb_positive_accumulator/proofs_cdh.rs:165
↓ 1 callers
Method
verify_partial
Similar to `Self::verify` but responses for some messages (witnesses) are provided in `missing_responses`. The keys of the map are message indices.
kvac/src/bbdt_2016/proof_cdh.rs:279
↓ 1 callers
Method
verify_partial_schnorr_proof
Similar to `Self::verify_schnorr_proof` but responses for some messages (witnesses) are provided in `missing_responses`. The keys of the map are messa
kvac/src/bbdt_2016/proof_cdh.rs:307
↓ 1 callers
Method
verify_partial_schnorr_proof
( &self, resp_for_message: &G::ScalarField, g1: &G, challenge: &G::ScalarField
short_group_sig/src/weak_bb_sig_pok_kv.rs:197
↓ 1 callers
Method
verify_partial_schnorr_proof_contribution
( &self, challenge: &G::ScalarField, proof: &PoKOfMAC<G>, missing_responses: B
proof_system/src/sub_protocols/bbdt16_kvac.rs:154
↓ 1 callers
Method
verify_partial_with_randomized_pairing_checker
( &self, resp_for_element: &E::ScalarField, accumulator_value: &E::G1Affine, c
vb_accumulator/src/kb_positive_accumulator/proofs.rs:207
↓ 1 callers
Method
verify_partial_with_randomized_pairing_checker
( &self, resp_for_element: &E::ScalarField, accumulator_value: &E::G1Affine, c
vb_accumulator/src/kb_positive_accumulator/proofs_cdh.rs:194
↓ 1 callers
Method
verify_proof_contribution
Verify that the snark proof and the Schnorr proof are valid.
proof_system/src/sub_protocols/r1cs_legogorth16.rs:164
↓ 1 callers
Function
verify_qap_proof
( pvk: &PreparedVerifyingKey<E>, a: E::G1Affine, b: E::G2Affine, c: E::G1Affine, d: E::G1A
legogroth16/src/verifier.rs:62
↓ 1 callers
Method
verify_recursively
( &self, mut c: Vec<G::ScalarField>, mut rho: G::ScalarField, commitment: &G,
bulletproofs_plus_plus/src/weighted_norm_linear_argument.rs:242
↓ 1 callers
Method
verify_schnorr_proof
( &self, g1: &G, challenge: &G::ScalarField, )
short_group_sig/src/weak_bb_sig_pok_kv.rs:176
↓ 1 callers
Method
verify_schnorr_proof_contribution
( &self, challenge: &G::ScalarField, proof: &PoKOfMAC<G>, )
proof_system/src/sub_protocols/bbdt16_kvac.rs:146
↓ 1 callers
Method
verify_schnorr_proofs
( &self, challenge: &E::ScalarField, context: &WnafContext, K_table: &[E::G1],
vb_accumulator/src/proofs.rs:1516
↓ 1 callers
Method
verify_schnorr_proofs
( &self, revealed_msgs: &BTreeMap<usize, E::ScalarField>, challenge: &E::ScalarField,
bbs_plus/src/proof_23_ietf.rs:409
↓ 1 callers
Method
verify_schnorr_proofs
( &self, revealed_msgs: &BTreeMap<usize, E::ScalarField>, challenge: &E::ScalarField,
bbs_plus/src/proof_23.rs:341
↓ 1 callers
Method
verify_schnorr_proofs
( &self, revealed_msgs: &BTreeMap<usize, E::ScalarField>, challenge: &E::ScalarField,
bbs_plus/src/proof_23_cdl.rs:469
↓ 1 callers
Method
verify_schnorr_proofs
( &self, revealed_msgs: &BTreeMap<usize, E::ScalarField>, challenge: &E::ScalarField,
bbs_plus/src/proof.rs:544
↓ 1 callers
Method
verify_using_randomized_mult_checker
Same as `Self::verify` but delegated the scalar multiplication checks to `RandomizedMultChecker`
equality_across_groups/src/pok_ecdsa_pubkey.rs:258
↓ 1 callers
Method
verify_using_randomized_mult_checker
Same as `Self::verify` but delegated the scalar multiplication checks to `RandomizedMultChecker`
equality_across_groups/src/ec/sw_point_addition.rs:270
↓ 1 callers
Method
verify_using_randomized_mult_checker
Same as `Self::verify` but delegated the scalar multiplication checks to `RandomizedMultChecker`
equality_across_groups/src/ec/sw_scalar_mult.rs:350
↓ 1 callers
Method
verify_with_public_verification_key
( &self, pk: impl Into<PreparedPublicVerificationKey<E>>, )
kvac/src/bbdt_2016/keyed_proof.rs:104
↓ 1 callers
Method
verify_with_randomized_pairing_checker
( &self, accumulator_value: &E::G1Affine, challenge: &E::ScalarField, pk: impl
vb_accumulator/src/kb_positive_accumulator/proofs.rs:142
↓ 1 callers
Method
verify_with_randomized_pairing_checker
( &self, accumulator_value: &E::G1Affine, challenge: &E::ScalarField, pk: impl
vb_accumulator/src/kb_positive_accumulator/proofs_cdh.rs:134
↓ 1 callers
Method
verify_with_randomized_pairing_checker
( &self, revealed_msgs: &BTreeMap<usize, E::ScalarField>, challenge: &E::ScalarField,
bbs_plus/src/proof.rs:368
↓ 1 callers
Method
verify_with_randomized_pairing_checker
( &self, challenge: &E::ScalarField, pk: impl Into<E::G2Prepared>, g1: &E::G1A
short_group_sig/src/weak_bb_sig_pok_cdh.rs:168
↓ 1 callers
Method
verify_with_randomized_pairing_checker
( &self, challenge: &E::ScalarField, pk: impl Into<PreparedPublicKeyG2<E>>, g1
short_group_sig/src/bb_sig_pok.rs:330
↓ 1 callers
Method
verify_with_randomized_pairing_checker
( &self, challenge: &E::ScalarField, pk: impl Into<E::G2Prepared>, g1: impl In
short_group_sig/src/weak_bb_sig_pok.rs:248
↓ 1 callers
Method
write_shared_rw_memory
Write a 32-byte value `v` in little-endian format at the offset `i`
legogroth16/src/circom/wasm.rs:51
Method
_init
( rng: &mut R, mut credential: Credential<E>, disclosed_attributes: Vec<E::ScalarField
delegatable_credentials/src/protego/show/known_signer.rs:178
Method
_init
( rng: &mut R, A_hat: G, B_bar: G, D: G, r1: G::ScalarField, r
kvac/src/bbs_sharp/proof.rs:358
Method
_verify
( self, rng: &mut R, proof_spec: ProofSpec<E>, nonce: Option<Vec<u8>>,
proof_system/src/verifier.rs:144
← previous
next →
1,001–1,100 of 2,782, ranked by callers