Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/celo-org/celo-threshold-bls-rs
/ functions
Functions
178 in github.com/celo-org/celo-threshold-bls-rs
⨍
Functions
178
◇
Types & classes
46
Function
hash_to_curve_g1
()
crates/threshold-bls/src/curve/bls12377.rs:610
Method
in_correct_subgroup
(&self)
crates/threshold-bls/src/curve/bls12377.rs:375
Method
internal_sign
Returns sig = msg^{private}. The message MUST be hashed before this call.
crates/threshold-bls/src/sig/bls.rs:33
Method
internal_verify
( public: &Self::Public, msg: &[u8], sig_bytes: &[u8], should_
crates/threshold-bls/src/sig/bls.rs:52
Function
interpolation_insufficient_shares
()
crates/threshold-bls/src/poly.rs:489
Method
keypair
Returns a new fresh keypair usable by the scheme.
crates/threshold-bls/src/sig/sig.rs:26
Method
lagrange_basis
Computes the lagrange basis polynomial of index i
crates/threshold-bls/src/poly.rs:282
Method
message
(&self)
crates/threshold-bls-ffi/src/wasm.rs:301
Function
mul
()
crates/threshold-bls/src/poly.rs:531
Function
mul_by_zero
()
crates/threshold-bls/src/poly.rs:380
Function
nbls_g1
()
crates/threshold-bls/src/sig/bls.rs:182
Function
nbls_g2
()
crates/threshold-bls/src/sig/bls.rs:174
Method
new
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
Method
new
()
crates/threshold-bls/src/curve/bls12377.rs:133
Method
new
Instantiates a token with the `Zero` element of the underlying scalar
crates/threshold-bls/src/sig/blind.rs:42
Method
new_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
Method
new_neg_constant
Returns the scalar polynomial f(x) = x - c
crates/threshold-bls/src/poly.rs:276
Method
num_shares
(&self)
crates/threshold-bls-ffi/src/wasm.rs:364
Method
one
()
crates/threshold-bls/src/curve/bls12377.rs:137
Method
pair
(a: &Self::G1, b: &Self::G2)
crates/threshold-bls/src/curve/bls12377.rs:400
Function
partial_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
Method
partial_sign
( private: &Share<Self::Private>, msg: &[u8], )
crates/threshold-bls/src/sig/tbls.rs:42
Function
partial_sign_blinded_message
( share: *const Share<PrivateKey>, blinded_message: *const Buffer, signature: *mut Buffer, )
crates/threshold-bls-ffi/src/ffi.rs:273
Function
partial_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
Function
partial_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
Function
partial_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
Method
partial_verify
( public: &Poly<Self::Public>, msg: &[u8], partial: &[u8], )
crates/threshold-bls/src/sig/tbls.rs:55
Function
partial_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
Function
partial_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
Method
point
point returns the default additive generator of the group.
crates/threshold-bls/src/group.rs:81
Function
poly_degree
()
crates/threshold-bls/src/poly.rs:357
Function
private_key_serialization
()
crates/threshold-bls-ffi/src/ffi.rs:849
Function
public_key_serialization
()
crates/threshold-bls-ffi/src/ffi.rs:881
Method
rand
(rng: &mut R)
crates/threshold-bls/src/curve/bls12377.rs:149
Method
recover
Given at least `t` polynomial evaluations, it will recover the polynomial's constant term
crates/threshold-bls/src/poly.rs:127
Function
rejects_length_just_over_limit
()
crates/threshold-bls/src/serialization.rs:65
Function
rejects_nested_vec_oversized_inner_length
()
crates/threshold-bls/src/serialization.rs:99
Function
rejects_oversized_length_prefix
()
crates/threshold-bls/src/serialization.rs:54
Function
round_trips_normal_input
()
crates/threshold-bls/src/serialization.rs:46
Method
scalar
scalar returns the identity element of the field.
crates/threshold-bls/src/group.rs:76
Function
serialize_field
(c: &C, s: S)
crates/threshold-bls/src/curve/bls12377.rs:446
Function
serialize_field_test
(size: usize)
crates/threshold-bls/src/curve/bls12377.rs:557
Function
serialize_group
(c: &C, s: S)
crates/threshold-bls/src/curve/bls12377.rs:503
Function
serialize_group_test
(size: usize)
crates/threshold-bls/src/curve/bls12377.rs:541
Function
serialize_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
Method
set
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
Method
share_map
( t: usize, mut shares: Vec<Eval<C>>, )
crates/threshold-bls/src/poly.rs:196
Function
shares
( n: usize, t: usize, )
crates/threshold-bls/src/sig/tblind.rs:79
Function
shares
(n: usize, t: usize)
crates/threshold-bls/src/sig/tbls.rs:115
Function
sign
Signs the message with the provided private key and returns the signature # Throws - If signing fails
crates/threshold-bls-ffi/src/wasm.rs:122
Method
sign
(private: &Self::Private, msg: &[u8])
crates/threshold-bls/src/sig/bls.rs:86
Function
sign_and_verify
()
crates/threshold-bls/src/test_vectors.rs:100
Method
sign_blind_partial
( private: &Share<Self::Private>, blinded_msg: &[u8], )
crates/threshold-bls/src/sig/tblind.rs:26
Function
sign_blinded_message
( private_key: *const PrivateKey, message: *const Buffer, signature: *mut Buffer, )
crates/threshold-bls-ffi/src/ffi.rs:208
Function
sign_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
Function
signing
()
crates/threshold-bls-ffi/src/wasm.rs:403
Function
tblind_g1_377_unblind
()
crates/threshold-bls/src/sig/tblind.rs:95
Function
tblind_g2_377_unblind
()
crates/threshold-bls/src/sig/tblind.rs:100
Function
tblind_test
()
crates/threshold-bls/src/sig/tblind.rs:104
Function
test_decryption
()
crates/threshold-bls/src/ecies.rs:142
Function
test_signature_aggregation
()
crates/threshold-bls/src/test_vectors.rs:216
Function
test_threshold_scheme
(creator: ShareCreator<T>)
crates/threshold-bls/src/sig/tbls.rs:127
Function
test_wire_format_partial_signatures
()
crates/threshold-bls/src/test_vectors.rs:193
Function
test_wire_format_public_polynomial
()
crates/threshold-bls/src/test_vectors.rs:163
Function
test_wire_format_shares
()
crates/threshold-bls/src/test_vectors.rs:179
Function
threshold_g1
()
crates/threshold-bls/src/sig/tbls.rs:146
Function
threshold_g2
()
crates/threshold-bls/src/sig/tbls.rs:152
Function
threshold_verify_ffi
()
crates/threshold-bls-ffi/src/ffi.rs:690
Function
threshold_wasm
()
crates/threshold-bls-ffi/src/wasm.rs:397
Function
try_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
Method
unblind_partial_sig
( t: &Self::Token, partial: &[u8], )
crates/threshold-bls/src/sig/tblind.rs:39
Method
unblind_sig
(t: &Self::Token, sigbuff: &[u8])
crates/threshold-bls/src/sig/blind.rs:70
Method
verify
Verifies the signature by the provided public key
crates/threshold-bls/src/sig/bls.rs:91
Method
verify_blind_partial
( public: &Poly<Self::Public>, blind_msg: &[u8], blind_partial: &[u8], )
crates/threshold-bls/src/sig/tblind.rs:55
Function
verify_ffi
()
crates/threshold-bls-ffi/src/ffi.rs:789
Method
visit_seq
(self, mut seq: S)
crates/threshold-bls/src/curve/bls12377.rs:424
Method
zero
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
Method
zero
Returns the zero element of the group
crates/threshold-bls/src/group.rs:34
← previous
101–178 of 178, ranked by callers