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
↓ 40 callers
Method
map
(&mut self, data: &[u8])
crates/threshold-bls/src/curve/bls12377.rs:275
↓ 31 callers
Function
serialize
(in_obj: *const T, out_bytes: *mut *mut u8)
crates/threshold-bls-ffi/src/ffi.rs:504
↓ 22 callers
Method
mul
Performs the multiplication operation. Note this is a simple implementation that is suitable for secret sharing schemes, but may be inneficient for o
crates/threshold-bls/src/poly.rs:251
↓ 19 callers
Function
deserialize
Drop-in replacement for `bincode::deserialize` that enforces [`MAX_DESERIALIZE_BYTES`].
crates/threshold-bls/src/serialization.rs:31
↓ 14 callers
Function
deserialize
( in_buf: *const u8, len: usize, out: *mut *mut T, )
crates/threshold-bls-ffi/src/ffi.rs:486
↓ 12 callers
Method
add
Performs polynomial addition in place
crates/threshold-bls/src/poly.rs:82
↓ 12 callers
Method
eval
Evaluates the polynomial at the specified value.
crates/threshold-bls/src/poly.rs:106
↓ 10 callers
Function
verify
( public_key: *const PublicKey, message: *const Buffer, signature: *const Buffer, )
crates/threshold-bls-ffi/src/ffi.rs:146
↓ 7 callers
Method
mul
(&mut self, mul: &Scalar)
crates/threshold-bls/src/curve/bls12377.rs:145
↓ 7 callers
Method
serialized_size
(&self)
crates/threshold-bls/src/curve/bls12377.rs:176
↓ 6 callers
Method
commit
Commits the scalar polynomial to the group and returns a polynomial over the group This is done by multiplying each coefficient of the polynomial wit
crates/threshold-bls/src/poly.rs:321
↓ 5 callers
Function
keypair
()
crates/threshold-bls/src/sig/bls.rs:166
↓ 5 callers
Method
public_key
(&self)
crates/threshold-bls-ffi/src/wasm.rs:331
↓ 4 callers
Method
add
(&mut self, s2: &Self)
crates/threshold-bls/src/curve/bls12377.rs:141
↓ 4 callers
Function
deserialize_from
Drop-in replacement for `bincode::deserialize_from` that enforces [`MAX_DESERIALIZE_BYTES`].
crates/threshold-bls/src/serialization.rs:37
↓ 4 callers
Method
public_key
Returns the constant term of the polynomial which can be interpreted as the threshold public key
crates/threshold-bls/src/poly.rs:226
↓ 4 callers
Function
sign
( private_key: *const PrivateKey, message: *const Buffer, signature: *mut Buffer, )
crates/threshold-bls-ffi/src/ffi.rs:176
↓ 4 callers
Function
verify
Verifies the signature after it has been unblinded. Users will call this on the threshold signature against the full public key public_key: The publi
crates/threshold-bls-ffi/src/wasm.rs:79
↓ 3 callers
Function
fixed_threshold_setup
Builds the fixed-coefficient private polynomial, derives the matching shares and public polynomial, and returns everything needed by the wire-format t
crates/threshold-bls/src/test_vectors.rs:142
↓ 3 callers
Function
get_rng
(digest: &[u8])
crates/threshold-bls-ffi/src/ffi.rs:667
↓ 3 callers
Function
get_rng
(digest: &[u8])
crates/threshold-bls-ffi/src/wasm.rs:380
↓ 3 callers
Method
inverse
(&self)
crates/threshold-bls/src/curve/bls12377.rs:159
↓ 3 callers
Method
is_zero
(&self)
crates/threshold-bls/src/poly.rs:77
↓ 3 callers
Function
keygen
(seed: *const Buffer, keypair: *mut *mut Keypair)
crates/threshold-bls-ffi/src/ffi.rs:621
↓ 3 callers
Function
partial_sign
( share: *const Share<PrivateKey>, message: *const Buffer, signature: *mut Buffer, )
crates/threshold-bls-ffi/src/ffi.rs:241
↓ 3 callers
Method
threshold_public_key
(&self)
crates/threshold-bls-ffi/src/wasm.rs:374
↓ 2 callers
Function
blake2_hash
Blake2s CRH followed by Blake2x XOF expansion. This is equivalent to `bls-crypto`'s `DirectHasher::hash()`.
crates/threshold-bls/src/curve/bls12377.rs:47
↓ 2 callers
Function
blind
( message: *const Buffer, seed: *const Buffer, blinded_message_out: *mut Buffer, blinding_fact
crates/threshold-bls-ffi/src/ffi.rs:66
↓ 2 callers
Function
blind
Given a message and a seed, it will blind it and return the blinded message message: A cleartext message which you want to blind seed: A 32 byte seed
crates/threshold-bls-ffi/src/wasm.rs:34
↓ 2 callers
Method
blinding_factor
(&self)
crates/threshold-bls-ffi/src/wasm.rs:306
↓ 2 callers
Method
degree
Returns the degree of the polynomial
crates/threshold-bls/src/poly.rs:32
↓ 2 callers
Function
kp
()
crates/threshold-bls/src/ecies.rs:134
↓ 2 callers
Method
negate
(&mut self)
crates/threshold-bls/src/curve/bls12377.rs:163
↓ 2 callers
Function
options
()
crates/threshold-bls/src/serialization.rs:19
↓ 2 callers
Function
private_key_ptr
(keypair: *const Keypair)
crates/threshold-bls-ffi/src/ffi.rs:643
↓ 2 callers
Function
public_key_ptr
(keypair: *const Keypair)
crates/threshold-bls-ffi/src/ffi.rs:634
↓ 2 callers
Method
set_int
(&mut self, i: u64)
crates/threshold-bls/src/curve/bls12377.rs:155
↓ 2 callers
Method
sub
(&mut self, other: &Self)
crates/threshold-bls/src/curve/bls12377.rs:167
↓ 2 callers
Function
threshold_verify_ffi_should_blind
(should_blind: bool)
crates/threshold-bls-ffi/src/ffi.rs:695
↓ 2 callers
Function
threshold_wasm_should_blind
(should_blind: bool)
crates/threshold-bls-ffi/src/wasm.rs:439
↓ 2 callers
Function
unblind
( blinded_signature: *const Buffer, blinding_factor: *const Token<PrivateKey>, unblinded_signature
crates/threshold-bls-ffi/src/ffi.rs:109
↓ 2 callers
Function
unblind
Given a blinded message and a blinding_factor used for blinding, it returns the message unblinded blinded_message: A message which has been blinded o
crates/threshold-bls-ffi/src/wasm.rs:58
↓ 2 callers
Function
verify_blind_signature
Verifies the signature after it has been unblinded without hashing. Users will call this on the threshold signature against the full public key publi
crates/threshold-bls-ffi/src/wasm.rs:99
↓ 2 callers
Function
verify_ffi_should_blind
(should_blind: bool)
crates/threshold-bls-ffi/src/ffi.rs:794
↓ 2 callers
Function
wasm_should_blind
(should_blind: bool)
crates/threshold-bls-ffi/src/wasm.rs:408
↓ 2 callers
Function
xof_digest_length_to_node_offset
Encodes the XOF digest length into the node offset field used by Blake2s/Blake2x.
crates/threshold-bls/src/curve/bls12377.rs:39
↓ 1 callers
Function
combine
( threshold: usize, signatures: *const Buffer, asig: *mut Buffer, )
crates/threshold-bls-ffi/src/ffi.rs:365
↓ 1 callers
Function
combine
Combines a flattened vector of partial signatures to a single threshold signature NOTE: Wasm-bindgen does not support Vec<Vec<u8>>, so this function
crates/threshold-bls-ffi/src/wasm.rs:244
↓ 1 callers
Function
deserialize_privkey
Deserializes a private key from the provided buffer # Safety - **This function will dereference the provided pointers. If any invalid pointers are pa
crates/threshold-bls-ffi/src/ffi.rs:421
↓ 1 callers
Function
deserialize_pubkey
Deserializes a public key from the provided buffer # Safety - **This function will dereference the provided pointers. If any invalid pointers are pas
crates/threshold-bls-ffi/src/ffi.rs:405
↓ 1 callers
Function
from_slice
(bytes: &[u8])
crates/threshold-bls-ffi/src/ffi.rs:672
↓ 1 callers
Function
from_slice
(bytes: &[u8])
crates/threshold-bls-ffi/src/wasm.rs:385
↓ 1 callers
Method
get
get returns the given coefficient at the requested index. It will panic if the index is out of range,i.e. `if i > self.degree()`.
crates/threshold-bls/src/poly.rs:50
↓ 1 callers
Function
get_deterministic_rng
Create a deterministic RNG for reproducible key generation
crates/threshold-bls/src/test_vectors.rs:86
↓ 1 callers
Function
get_keypair
(index: usize)
crates/threshold-bls/src/test_vectors.rs:90
↓ 1 callers
Method
get_share
(&self, index: usize)
crates/threshold-bls-ffi/src/wasm.rs:359
↓ 1 callers
Function
keygen
(seed: Vec<u8>)
crates/threshold-bls-ffi/src/wasm.rs:342
↓ 1 callers
Function
new_neg_constant
()
crates/threshold-bls/src/poly.rs:569
↓ 1 callers
Method
polynomial
(&self)
crates/threshold-bls-ffi/src/wasm.rs:369
↓ 1 callers
Method
private_key
(&self)
crates/threshold-bls-ffi/src/wasm.rs:326
↓ 1 callers
Function
serialize_privkey
Serializes a private key to the provided buffer # Safety - **This function will dereference the provided pointers. If any invalid pointers are passed
crates/threshold-bls-ffi/src/ffi.rs:466
↓ 1 callers
Function
serialize_pubkey
Serializes a public key to the provided buffer # Safety - **This function will dereference the provided pointers. If any invalid pointers are passed
crates/threshold-bls-ffi/src/ffi.rs:450
↓ 1 callers
Function
threshold_keygen
(n: usize, t: usize, seed: &[u8])
crates/threshold-bls-ffi/src/ffi.rs:593
↓ 1 callers
Function
threshold_keygen
Generates a t-of-n polynomial and private key shares # Safety WARNING: This is a helper function for local testing of the library. Do not use in pro
crates/threshold-bls-ffi/src/wasm.rs:268
Function
Java_org_celo_BlindThresholdBls_verify
( mut env: EnvUnowned<'local>, _class: JClass<'local>, pub_key: JByteArray<'local>, message: J
crates/threshold-bls-ffi/src/jni_bridge.rs:12
Function
add_zero
()
crates/threshold-bls/src/poly.rs:365
Method
aggregate
( threshold: usize, partials: &[Partial], )
crates/threshold-bls/src/sig/tbls.rs:67
Function
allows_trailing_bytes_like_bincode_top_level
()
crates/threshold-bls/src/serialization.rs:88
Function
benchy
()
crates/threshold-bls/src/poly.rs:504
Function
blake2_hash_test_vectors
()
crates/threshold-bls/src/curve/bls12377.rs:587
Function
blind_g1
()
crates/threshold-bls/src/sig/blind.rs:114
Function
blind_g2
()
crates/threshold-bls/src/sig/blind.rs:119
Method
blind_msg
(msg: &[u8], rng: &mut R)
crates/threshold-bls/src/sig/blind.rs:56
Method
blind_sign
(private: &I::Private, blinded_msg: &[u8])
crates/threshold-bls/src/sig/blind.rs:97
Function
blind_test
()
crates/threshold-bls/src/sig/blind.rs:123
Method
blind_verify
( public: &I::Public, blinded_msg: &[u8], blinded_sig: &[u8], )
crates/threshold-bls/src/sig/blind.rs:81
Function
commit
()
crates/threshold-bls/src/poly.rs:581
Function
decrypt
Decrypts the message with a secret key (curve scalar) and returns the cleartext
crates/threshold-bls/src/ecies.rs:101
Method
default
()
crates/threshold-bls/src/sig/blind.rs:35
Function
derive
Derives an ephemeral key from the provided public key
crates/threshold-bls/src/ecies.rs:114
Function
deserialize_field
(deserializer: D)
crates/threshold-bls/src/curve/bls12377.rs:407
Function
deserialize_from_also_bounded
()
crates/threshold-bls/src/serialization.rs:77
Function
deserialize_group
(deserializer: D)
crates/threshold-bls/src/curve/bls12377.rs:463
Function
deserialize_sig
Deserializes a signature from the provided buffer # Safety - **This function will dereference the provided pointers. If any invalid pointers are pass
crates/threshold-bls-ffi/src/ffi.rs:437
Function
destroy_keypair
Frees the memory allocated for the keypair helper # Safety The pointer must point to a valid instance of the data type
crates/threshold-bls-ffi/src/ffi.rs:536
Function
destroy_privkey
Frees the memory allocated for a private key # Safety The pointer must point to a valid instance of the data type
crates/threshold-bls-ffi/src/ffi.rs:546
Function
destroy_pubkey
Frees the memory allocated for a public key # Safety The pointer must point to a valid instance of the data type
crates/threshold-bls-ffi/src/ffi.rs:566
Function
destroy_sig
Frees the memory allocated for a signature # Safety The pointer must point to a valid instance of the data type
crates/threshold-bls-ffi/src/ffi.rs:576
Function
destroy_token
Frees the memory allocated for the blinding factor # Safety The pointer must point to a valid instance of the data type
crates/threshold-bls-ffi/src/ffi.rs:526
Function
encrypt
Encrypts the message with a public key (curve point) and returns a ciphertext
crates/threshold-bls/src/ecies.rs:68
Method
expecting
(&self, formatter: &mut fmt::Formatter)
crates/threshold-bls/src/curve/bls12377.rs:420
Method
final_exp
(p: &Self::Public, sig: &Self::Signature, hm: &Self::Signature)
crates/threshold-bls/src/sig/bls.rs:121
Method
fmt
(&self, f: &mut fmt::Formatter)
crates/threshold-bls/src/poly.rs:19
Method
fmt
(&self, f: &mut fmt::Formatter)
crates/threshold-bls/src/curve/bls12377.rs:182
Function
free_vector
Frees the memory allocated for a vector # Safety The pointer must point to a valid instance of the data type
crates/threshold-bls-ffi/src/ffi.rs:556
Method
from
(c: Vec<C>)
crates/threshold-bls/src/poly.rs:232
Method
from
(src: &[u8])
crates/threshold-bls-ffi/src/ffi.rs:27
Method
from_random_bytes
(bytes: &[u8])
crates/threshold-bls/src/curve/bls12377.rs:171
Method
full_recover
Given at least `t` polynomial evaluations, it will recover the entire polynomial
crates/threshold-bls/src/poly.rs:162
Function
gt_exp
()
crates/threshold-bls/src/curve/bls12377.rs:568
next →
1–100 of 178, ranked by callers