MCPcopy Create free account

hub / github.com/celo-org/celo-threshold-bls-rs / functions

Functions178 in github.com/celo-org/celo-threshold-bls-rs

Functionhash_to_curve_g1
()
crates/threshold-bls/src/curve/bls12377.rs:610
Methodin_correct_subgroup
(&self)
crates/threshold-bls/src/curve/bls12377.rs:375
Methodinternal_sign
Returns sig = msg^{private}. The message MUST be hashed before this call.
crates/threshold-bls/src/sig/bls.rs:33
Methodinternal_verify
( public: &Self::Public, msg: &[u8], sig_bytes: &[u8], should_
crates/threshold-bls/src/sig/bls.rs:52
Functioninterpolation_insufficient_shares
()
crates/threshold-bls/src/poly.rs:489
Methodkeypair
Returns a new fresh keypair usable by the scheme.
crates/threshold-bls/src/sig/sig.rs:26
Methodlagrange_basis
Computes the lagrange basis polynomial of index i
crates/threshold-bls/src/poly.rs:282
Methodmessage
(&self)
crates/threshold-bls-ffi/src/wasm.rs:301
Functionmul
()
crates/threshold-bls/src/poly.rs:531
Functionmul_by_zero
()
crates/threshold-bls/src/poly.rs:380
Functionnbls_g1
()
crates/threshold-bls/src/sig/bls.rs:182
Functionnbls_g2
()
crates/threshold-bls/src/sig/bls.rs:174
Methodnew
Returns a new polynomial of the given degree where each coefficients is sampled at random. In the context of secret sharing, the threshold is the deg
crates/threshold-bls/src/poly.rs:64
Methodnew
()
crates/threshold-bls/src/curve/bls12377.rs:133
Methodnew
Instantiates a token with the `Zero` element of the underlying scalar
crates/threshold-bls/src/sig/blind.rs:42
Methodnew_from
Returns a new polynomial of the given degree where each coefficients is sampled at random from the given RNG. In the context of secret sharing, the th
crates/threshold-bls/src/poly.rs:43
Methodnew_neg_constant
Returns the scalar polynomial f(x) = x - c
crates/threshold-bls/src/poly.rs:276
Methodnum_shares
(&self)
crates/threshold-bls-ffi/src/wasm.rs:364
Methodone
()
crates/threshold-bls/src/curve/bls12377.rs:137
Methodpair
(a: &Self::G1, b: &Self::G2)
crates/threshold-bls/src/curve/bls12377.rs:400
Functionpartial_sign
Signs the message with the provided **share** of the private key and returns the **partial signature. # Throws - If signing fails NOTE: This method
crates/threshold-bls-ffi/src/wasm.rs:154
Methodpartial_sign
( private: &Share<Self::Private>, msg: &[u8], )
crates/threshold-bls/src/sig/tbls.rs:42
Functionpartial_sign_blinded_message
( share: *const Share<PrivateKey>, blinded_message: *const Buffer, signature: *mut Buffer, )
crates/threshold-bls-ffi/src/ffi.rs:273
Functionpartial_sign_blinded_message
Signs the message with the provided **share** of the private key and returns the **partial signature. # Throws - If signing fails NOTE: This method
crates/threshold-bls-ffi/src/wasm.rs:173
Functionpartial_verify
( // TODO: The polynomial does not have a constant length type. Is it safe to not // pass any length p
crates/threshold-bls-ffi/src/ffi.rs:309
Functionpartial_verify
Verifies a partial signature against the public key corresponding to the secret shared polynomial. # Throws - If verification fails
crates/threshold-bls-ffi/src/wasm.rs:193
Methodpartial_verify
( public: &Poly<Self::Public>, msg: &[u8], partial: &[u8], )
crates/threshold-bls/src/sig/tbls.rs:55
Functionpartial_verify_blind_signature
( // TODO: The polynomial does not have a constant length type. Is it safe to not // pass any length p
crates/threshold-bls-ffi/src/ffi.rs:337
Functionpartial_verify_blind_signature
Verifies a partial *blind* signature against the public key corresponding to the secret shared polynomial. # Throws - If verification fails
crates/threshold-bls-ffi/src/wasm.rs:208
Methodpoint
point returns the default additive generator of the group.
crates/threshold-bls/src/group.rs:81
Functionpoly_degree
()
crates/threshold-bls/src/poly.rs:357
Functionprivate_key_serialization
()
crates/threshold-bls-ffi/src/ffi.rs:849
Functionpublic_key_serialization
()
crates/threshold-bls-ffi/src/ffi.rs:881
Methodrand
(rng: &mut R)
crates/threshold-bls/src/curve/bls12377.rs:149
Methodrecover
Given at least `t` polynomial evaluations, it will recover the polynomial's constant term
crates/threshold-bls/src/poly.rs:127
Functionrejects_length_just_over_limit
()
crates/threshold-bls/src/serialization.rs:65
Functionrejects_nested_vec_oversized_inner_length
()
crates/threshold-bls/src/serialization.rs:99
Functionrejects_oversized_length_prefix
()
crates/threshold-bls/src/serialization.rs:54
Functionround_trips_normal_input
()
crates/threshold-bls/src/serialization.rs:46
Methodscalar
scalar returns the identity element of the field.
crates/threshold-bls/src/group.rs:76
Functionserialize_field
(c: &C, s: S)
crates/threshold-bls/src/curve/bls12377.rs:446
Functionserialize_field_test
(size: usize)
crates/threshold-bls/src/curve/bls12377.rs:557
Functionserialize_group
(c: &C, s: S)
crates/threshold-bls/src/curve/bls12377.rs:503
Functionserialize_group_test
(size: usize)
crates/threshold-bls/src/curve/bls12377.rs:541
Functionserialize_sig
Serializes a signature to the provided buffer # Safety - **This function will dereference the provided pointers. If any invalid pointers are passed t
crates/threshold-bls-ffi/src/ffi.rs:482
Methodset
set the given element at the specified index. The index 0 is the free coefficient of the polynomial. It panics if the index is out of range.
crates/threshold-bls/src/poly.rs:56
Methodshare_map
( t: usize, mut shares: Vec<Eval<C>>, )
crates/threshold-bls/src/poly.rs:196
Functionshares
( n: usize, t: usize, )
crates/threshold-bls/src/sig/tblind.rs:79
Functionshares
(n: usize, t: usize)
crates/threshold-bls/src/sig/tbls.rs:115
Functionsign
Signs the message with the provided private key and returns the signature # Throws - If signing fails
crates/threshold-bls-ffi/src/wasm.rs:122
Methodsign
(private: &Self::Private, msg: &[u8])
crates/threshold-bls/src/sig/bls.rs:86
Functionsign_and_verify
()
crates/threshold-bls/src/test_vectors.rs:100
Methodsign_blind_partial
( private: &Share<Self::Private>, blinded_msg: &[u8], )
crates/threshold-bls/src/sig/tblind.rs:26
Functionsign_blinded_message
( private_key: *const PrivateKey, message: *const Buffer, signature: *mut Buffer, )
crates/threshold-bls-ffi/src/ffi.rs:208
Functionsign_blinded_message
Signs the message with the provided private key without hashing and returns the signature # Throws - If signing fails
crates/threshold-bls-ffi/src/wasm.rs:136
Functionsigning
()
crates/threshold-bls-ffi/src/wasm.rs:403
Functiontblind_g1_377_unblind
()
crates/threshold-bls/src/sig/tblind.rs:95
Functiontblind_g2_377_unblind
()
crates/threshold-bls/src/sig/tblind.rs:100
Functiontblind_test
()
crates/threshold-bls/src/sig/tblind.rs:104
Functiontest_decryption
()
crates/threshold-bls/src/ecies.rs:142
Functiontest_signature_aggregation
()
crates/threshold-bls/src/test_vectors.rs:216
Functiontest_threshold_scheme
(creator: ShareCreator<T>)
crates/threshold-bls/src/sig/tbls.rs:127
Functiontest_wire_format_partial_signatures
()
crates/threshold-bls/src/test_vectors.rs:193
Functiontest_wire_format_public_polynomial
()
crates/threshold-bls/src/test_vectors.rs:163
Functiontest_wire_format_shares
()
crates/threshold-bls/src/test_vectors.rs:179
Functionthreshold_g1
()
crates/threshold-bls/src/sig/tbls.rs:146
Functionthreshold_g2
()
crates/threshold-bls/src/sig/tbls.rs:152
Functionthreshold_verify_ffi
()
crates/threshold-bls-ffi/src/ffi.rs:690
Functionthreshold_wasm
()
crates/threshold-bls-ffi/src/wasm.rs:397
Functiontry_and_increment_hash
Try-and-increment hash-to-curve that matches the original `algebra-core` crate's behavior (scipr-lab/zexe at commit 9d267f65). We bypass `bls-crypto`
crates/threshold-bls/src/curve/bls12377.rs:230
Methodunblind_partial_sig
( t: &Self::Token, partial: &[u8], )
crates/threshold-bls/src/sig/tblind.rs:39
Methodunblind_sig
(t: &Self::Token, sigbuff: &[u8])
crates/threshold-bls/src/sig/blind.rs:70
Methodverify
Verifies the signature by the provided public key
crates/threshold-bls/src/sig/bls.rs:91
Methodverify_blind_partial
( public: &Poly<Self::Public>, blind_msg: &[u8], blind_partial: &[u8], )
crates/threshold-bls/src/sig/tblind.rs:55
Functionverify_ffi
()
crates/threshold-bls-ffi/src/ffi.rs:789
Methodvisit_seq
(self, mut seq: S)
crates/threshold-bls/src/curve/bls12377.rs:424
Methodzero
Returns a polynomial from the given list of coefficients TODO: implement the From<> trait TODO fix semantics of zero: it should be G1::zero() as only
crates/threshold-bls/src/poly.rs:73
Methodzero
Returns the zero element of the group
crates/threshold-bls/src/group.rs:34
← previous101–178 of 178, ranked by callers