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
↓ 14 callers
Method
nth_power
(&self, i: i32)
bulletproofs_plus_plus/src/range_proof.rs:885
↓ 14 callers
Method
update_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 callers
Method
verify
Verifies a signature. Can verify aggregated signature and unblinded signature received from a signer as well.
coconut/src/signature/ps_signature.rs:95
↓ 13 callers
Function
aggregate_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 callers
Method
batch_updates
Adding and removing batches of elements from the accumulator
vb_accumulator/src/positive.rs:563
↓ 13 callers
Function
bbs_plus_sig_setup_given_messages
( rng: &mut R, messages: &[Fr], )
test_utils/src/bbs.rs:21
↓ 13 callers
Method
commit
Commit to a message
utils/src/commitment.rs:37
↓ 13 callers
Method
open_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 callers
Function
verify_proof
( pvk: &PreparedVerifyingKey<E>, proof: &Proof<E>, ciphertext: &Ciphertext<E>, )
saver/src/saver_groth16.rs:138
↓ 12 callers
Function
abs_path
Given path relative to this crate, return absolute disk path
proof_system/tests/r1cs/mod.rs:17
↓ 12 callers
Method
as_ref
(&self)
vb_accumulator/src/setup.rs:109
↓ 12 callers
Method
as_ref
(&self)
short_group_sig/src/common.rs:75
↓ 12 callers
Method
challenge_contribution
( &self, accumulator_value: &G, writer: W, )
vb_accumulator/src/proofs_keyed_verification.rs:306
↓ 12 callers
Method
challenge_contribution
The commitment's contribution to the overall challenge of the protocol.
coconut/src/proof/messages_pok/mod.rs:104
↓ 12 callers
Method
challenge_contribution
( &self, revealed_msgs: &BTreeMap<usize, G::ScalarField>, params: &MACParams<G>,
kvac/src/bbdt_2016/proof.rs:152
↓ 12 callers
Method
challenge_contribution
( &self, revealed_msgs: &BTreeMap<usize, G::ScalarField>, params: &MACParams<G>,
kvac/src/bbs_sharp/proof.rs:239
↓ 12 callers
Method
challenge_contribution
( &self, base: &G, y: &G, writer: W, )
schnorr_pok/src/partial.rs:262
↓ 12 callers
Function
create_random_proof
( circuit: C, v: E::ScalarField, pk: &ProvingKey<E>, rng: &mut R, )
legogroth16/src/prover.rs:53
↓ 12 callers
Method
len
(&self)
legogroth16/src/aggregation/key.rs:79
↓ 12 callers
Function
read_u32
(reader: R)
legogroth16/src/circom/r1cs_reader.rs:147
↓ 12 callers
Function
seq_pairs_satisfy
Ensures that each sequence pair satisfy provided predicate.
utils/src/misc.rs:18
↓ 12 callers
Function
show
( rng: &mut StdRng, max_attributes: u32, attributes: Vec<Fr>, disclosed_attrs: Vec<Fr>, au
delegatable_credentials/src/protego/show/tests.rs:92
↓ 12 callers
Method
size
(&self)
compressed_sigma/src/amortized_linear_form.rs:277
↓ 12 callers
Method
verify
Verify if the proof is valid. Assumes that the public key and parameters have been validated already.
bbs_plus/src/proof.rs:358
↓ 12 callers
Method
verify
( &self, challenge: &E::ScalarField, disclosed_attributes: Vec<E::ScalarField>,
delegatable_credentials/src/protego/show/known_signer.rs:462
↓ 12 callers
Method
verify
( &self, message: E::ScalarField, output: &Output<E>, public_key: impl Into<&'
syra/src/vrf.rs:55
↓ 12 callers
Method
verify
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 callers
Function
_transpose
(nrows: usize, ncols: usize)
oblivious_transfer/src/util.rs:260
↓ 11 callers
Method
add
(&mut self, p: G, s: G::ScalarField)
utils/src/randomized_mult_checker.rs:107
↓ 11 callers
Function
check
(rng: &mut StdRng, n: u16, choice: u16, g: &<Bls12_381 as Pairing>::G1Affine)
oblivious_transfer/src/base_ot/endemic_ot.rs:126
↓ 11 callers
Function
check_partial_know_multiple
( n: usize, witness_sizes: Vec<usize>, known_indices: BTreeSet<usize>,
compressed_sigma/src/partial_knowledge.rs:559
↓ 11 callers
Method
commit_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 callers
Method
finish
(self)
bbs_plus/src/threshold/multiplication_phase.rs:86
↓ 11 callers
Method
get_comm_key
( &'a self, setup_params: &'a [SetupParams<E>], st_idx: usize, )
proof_system/src/statement/inequality.rs:50
↓ 11 callers
Method
insert_row_slice
insert a continuous sequence of values at row r starting from c_offset
legogroth16/src/link/utils.rs:57
↓ 11 callers
Function
keygen
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 callers
Function
scale
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 callers
Function
validate_bounds
(min: u64, max: u64)
proof_system/src/sub_protocols/mod.rs:191
↓ 11 callers
Method
verify
Verify this proof. Delegates to [`verify_proof`] [`verify_proof`]: ProofProtocol::verify_proof
vb_accumulator/src/proofs.rs:1269
↓ 11 callers
Method
verify
( &self, update_key: Option<&UpdateKey<E>>, user_public_key: &UserPublicKey<E>,
delegatable_credentials/src/msbm/issuance.rs:260
↓ 11 callers
Method
verify
( &self, challenge: &E::ScalarField, pk: impl Into<PreparedPublicKeyG2<E>>, g1
short_group_sig/src/bb_sig_pok.rs:313
↓ 11 callers
Method
verify_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 callers
Method
verify_partial_proof_contribution
( &self, challenge: &G::ScalarField, proof: &PedersenCommitmentPartialProof<G>,
proof_system/src/sub_protocols/schnorr.rs:175
↓ 10 callers
Method
add_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 callers
Method
as_ref
(&self)
kvac/src/bbs_sharp/setup.rs:224
↓ 10 callers
Method
challenge_contribution
( &self, accumulator_value: &E::G1Affine, writer: W, )
vb_accumulator/src/proofs_cdh.rs:111
↓ 10 callers
Method
challenge_contribution
Assumes that the public commitments and commitment key have already been included in the challenge
schnorr_pok/src/mult_relations.rs:170
↓ 10 callers
Method
change_rep
ChangeRep from the paper
delegatable_credentials/src/msbm/sps_eq_uc_sig.rs:193
↓ 10 callers
Method
check_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 callers
Method
decrypt_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 callers
Function
divide_by_8
(n: T)
oblivious_transfer/src/util.rs:43
↓ 10 callers
Method
extend
(&mut self, iter: I)
utils/src/extend_some.rs:24
↓ 10 callers
Method
finalize
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 callers
Function
from_seed
()
coconut/src/setup/keypair/secret.rs:88
↓ 10 callers
Method
gen_partial_proof_contribution_as_struct
( &mut self, challenge: &G::ScalarField, skip_responses_for: &BTreeSet<usize>, )
proof_system/src/sub_protocols/schnorr.rs:143
↓ 10 callers
Method
gen_proof
Generate proof. Post-challenge phase of the protocol.
coconut/src/proof/messages_pok/mod.rs:127
↓ 10 callers
Method
gen_proof
(mut self, challenge: &G::ScalarField)
kvac/src/bbdt_2016/proof.rs:172
↓ 10 callers
Method
get_resp_for_message
(&self)
short_group_sig/src/bb_sig_pok.rs:489
↓ 10 callers
Method
remove
Remove an element from the accumulator updating both the internal accumulators.
vb_accumulator/src/kb_universal_accumulator/accumulator.rs:92
↓ 10 callers
Method
row_byte_size
(&self)
oblivious_transfer/src/configs.rs:127
↓ 10 callers
Function
setup_universal_accum
( rng: &mut StdRng, max: u64, )
test_utils/src/accumulators.rs:35
↓ 10 callers
Method
verify
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 callers
Method
verify
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 callers
Method
accumulated
(&self)
delegatable_credentials/src/accumulator.rs:103
↓ 9 callers
Function
check
(chunk_bit_size: u8)
saver/src/encryption.rs:923
↓ 9 callers
Function
check
(chunk_bit_size: u8)
saver/src/tests.rs:71
↓ 9 callers
Method
double
Commits to 2 vector, 1 of group G1 elements and 1 of group G2 elements.
legogroth16/src/aggregation/commitment.rs:36
↓ 9 callers
Method
fill_bytes
(&mut self, dest: &mut [u8])
merlin/src/transcript.rs:377
↓ 9 callers
Method
gen_partial2_proof
Generate proof when only response for witness2 has to be generated.
schnorr_pok/src/partial.rs:135
↓ 9 callers
Method
get_accumulator_member
Get the member in the non-adaptive accumulator
vb_accumulator/src/kb_positive_accumulator/witness.rs:32
↓ 9 callers
Function
multiple_batches_check
Create accumulator and check whether multiple batch updates can be applied to a witness
vb_accumulator/src/witness.rs:1571
↓ 9 callers
Function
multiple_batches_check
( member: &Fr, initial_additions: Vec<Fr>, additions: Vec<Vec<Fr>>, removals:
vb_accumulator/src/kb_positive_accumulator/witness.rs:608
↓ 9 callers
Method
overhead
(&self)
oblivious_transfer/src/ot_based_multiplication/dkls18_mul_2p.rs:69
↓ 9 callers
Function
padded_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 callers
Method
partial_response
The key of the map is the index for which response has to be generated.
schnorr_pok/src/partial.rs:91
↓ 9 callers
Method
response
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 callers
Function
setup_for_groth16
Generate secret key, encryption key, decryption key and generate SNARK proving and verifying key
saver/src/setup.rs:90
↓ 9 callers
Function
setup_kb_positive_accum
( rng: &mut StdRng, )
vb_accumulator/src/kb_positive_accumulator/adaptive_accumulator.rs:264
↓ 9 callers
Function
take_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 callers
Method
verify
(&self)
proof_system/src/statement/bound_check_smc.rs:52
↓ 9 callers
Method
verify_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 callers
Method
add
(&mut self, item: Statement<E>)
proof_system/src/statement/mod.rs:153
↓ 8 callers
Method
add
(&self, _other: &Self)
compressed_sigma/src/amortized_linear_form.rs:269
↓ 8 callers
Method
challenge_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 callers
Method
challenge_bytes_with_non_static_label
(&mut self, label: &[u8], dest: &mut [u8])
merlin/src/transcript.rs:188
↓ 8 callers
Method
challenge_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 callers
Method
challenge_contribution
( &self, P1: &E::G1Affine, writer: W, )
delegatable_credentials/src/msbm/show.rs:101
↓ 8 callers
Method
challenge_contribution
( &self, Z: &E::G1Affine, writer: W, )
syra/src/pseudonym.rs:235
↓ 8 callers
Method
check_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 callers
Method
commit_as_projective
( &self, message: &G::ScalarField, randomness: &G::ScalarField, )
utils/src/commitment.rs:58
↓ 8 callers
Method
gen_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 callers
Method
gen_proof
Generate proof. Post-challenge phase of the protocol.
bbs_plus/src/proof_23.rs:210
↓ 8 callers
Method
gen_proof
(mut self, challenge: &G::ScalarField)
kvac/src/bbdt_2016/proof_cdh.rs:193
↓ 8 callers
Method
gen_show
(self, challenge: &E::ScalarField)
delegatable_credentials/src/msbm/show.rs:111
↓ 8 callers
Function
get_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 callers
Method
get_resp_for_randomness
(&self)
short_group_sig/src/bb_sig_pok.rs:493
↓ 8 callers
Function
issuance
( rng: &mut StdRng, max_attributes: u32, attributes: Vec<Fr>, auditable: bool,
delegatable_credentials/src/protego/issuance.rs:500
↓ 8 callers
Method
multiply_many
Multiply with a many scalars
utils/src/msm.rs:38
↓ 8 callers
Function
multiply_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 callers
Method
open_set
Checks if the commitment can be opened with the given opening and for the given set.
delegatable_credentials/src/set_commitment.rs:278
← previous
next →
101–200 of 2,782, ranked by callers