MCPcopy Create free account

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

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

↓ 40 callersMethodmap
(&mut self, data: &[u8])
crates/threshold-bls/src/curve/bls12377.rs:275
↓ 31 callersFunctionserialize
(in_obj: *const T, out_bytes: *mut *mut u8)
crates/threshold-bls-ffi/src/ffi.rs:504
↓ 22 callersMethodmul
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 callersFunctiondeserialize
Drop-in replacement for `bincode::deserialize` that enforces [`MAX_DESERIALIZE_BYTES`].
crates/threshold-bls/src/serialization.rs:31
↓ 14 callersFunctiondeserialize
( in_buf: *const u8, len: usize, out: *mut *mut T, )
crates/threshold-bls-ffi/src/ffi.rs:486
↓ 12 callersMethodadd
Performs polynomial addition in place
crates/threshold-bls/src/poly.rs:82
↓ 12 callersMethodeval
Evaluates the polynomial at the specified value.
crates/threshold-bls/src/poly.rs:106
↓ 10 callersFunctionverify
( public_key: *const PublicKey, message: *const Buffer, signature: *const Buffer, )
crates/threshold-bls-ffi/src/ffi.rs:146
↓ 7 callersMethodmul
(&mut self, mul: &Scalar)
crates/threshold-bls/src/curve/bls12377.rs:145
↓ 7 callersMethodserialized_size
(&self)
crates/threshold-bls/src/curve/bls12377.rs:176
↓ 6 callersMethodcommit
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 callersFunctionkeypair
()
crates/threshold-bls/src/sig/bls.rs:166
↓ 5 callersMethodpublic_key
(&self)
crates/threshold-bls-ffi/src/wasm.rs:331
↓ 4 callersMethodadd
(&mut self, s2: &Self)
crates/threshold-bls/src/curve/bls12377.rs:141
↓ 4 callersFunctiondeserialize_from
Drop-in replacement for `bincode::deserialize_from` that enforces [`MAX_DESERIALIZE_BYTES`].
crates/threshold-bls/src/serialization.rs:37
↓ 4 callersMethodpublic_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 callersFunctionsign
( private_key: *const PrivateKey, message: *const Buffer, signature: *mut Buffer, )
crates/threshold-bls-ffi/src/ffi.rs:176
↓ 4 callersFunctionverify
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 callersFunctionfixed_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 callersFunctionget_rng
(digest: &[u8])
crates/threshold-bls-ffi/src/ffi.rs:667
↓ 3 callersFunctionget_rng
(digest: &[u8])
crates/threshold-bls-ffi/src/wasm.rs:380
↓ 3 callersMethodinverse
(&self)
crates/threshold-bls/src/curve/bls12377.rs:159
↓ 3 callersMethodis_zero
(&self)
crates/threshold-bls/src/poly.rs:77
↓ 3 callersFunctionkeygen
(seed: *const Buffer, keypair: *mut *mut Keypair)
crates/threshold-bls-ffi/src/ffi.rs:621
↓ 3 callersFunctionpartial_sign
( share: *const Share<PrivateKey>, message: *const Buffer, signature: *mut Buffer, )
crates/threshold-bls-ffi/src/ffi.rs:241
↓ 3 callersMethodthreshold_public_key
(&self)
crates/threshold-bls-ffi/src/wasm.rs:374
↓ 2 callersFunctionblake2_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 callersFunctionblind
( message: *const Buffer, seed: *const Buffer, blinded_message_out: *mut Buffer, blinding_fact
crates/threshold-bls-ffi/src/ffi.rs:66
↓ 2 callersFunctionblind
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 callersMethodblinding_factor
(&self)
crates/threshold-bls-ffi/src/wasm.rs:306
↓ 2 callersMethoddegree
Returns the degree of the polynomial
crates/threshold-bls/src/poly.rs:32
↓ 2 callersFunctionkp
()
crates/threshold-bls/src/ecies.rs:134
↓ 2 callersMethodnegate
(&mut self)
crates/threshold-bls/src/curve/bls12377.rs:163
↓ 2 callersFunctionoptions
()
crates/threshold-bls/src/serialization.rs:19
↓ 2 callersFunctionprivate_key_ptr
(keypair: *const Keypair)
crates/threshold-bls-ffi/src/ffi.rs:643
↓ 2 callersFunctionpublic_key_ptr
(keypair: *const Keypair)
crates/threshold-bls-ffi/src/ffi.rs:634
↓ 2 callersMethodset_int
(&mut self, i: u64)
crates/threshold-bls/src/curve/bls12377.rs:155
↓ 2 callersMethodsub
(&mut self, other: &Self)
crates/threshold-bls/src/curve/bls12377.rs:167
↓ 2 callersFunctionthreshold_verify_ffi_should_blind
(should_blind: bool)
crates/threshold-bls-ffi/src/ffi.rs:695
↓ 2 callersFunctionthreshold_wasm_should_blind
(should_blind: bool)
crates/threshold-bls-ffi/src/wasm.rs:439
↓ 2 callersFunctionunblind
( blinded_signature: *const Buffer, blinding_factor: *const Token<PrivateKey>, unblinded_signature
crates/threshold-bls-ffi/src/ffi.rs:109
↓ 2 callersFunctionunblind
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 callersFunctionverify_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 callersFunctionverify_ffi_should_blind
(should_blind: bool)
crates/threshold-bls-ffi/src/ffi.rs:794
↓ 2 callersFunctionwasm_should_blind
(should_blind: bool)
crates/threshold-bls-ffi/src/wasm.rs:408
↓ 2 callersFunctionxof_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 callersFunctioncombine
( threshold: usize, signatures: *const Buffer, asig: *mut Buffer, )
crates/threshold-bls-ffi/src/ffi.rs:365
↓ 1 callersFunctioncombine
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 callersFunctiondeserialize_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 callersFunctiondeserialize_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 callersFunctionfrom_slice
(bytes: &[u8])
crates/threshold-bls-ffi/src/ffi.rs:672
↓ 1 callersFunctionfrom_slice
(bytes: &[u8])
crates/threshold-bls-ffi/src/wasm.rs:385
↓ 1 callersMethodget
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 callersFunctionget_deterministic_rng
Create a deterministic RNG for reproducible key generation
crates/threshold-bls/src/test_vectors.rs:86
↓ 1 callersFunctionget_keypair
(index: usize)
crates/threshold-bls/src/test_vectors.rs:90
↓ 1 callersMethodget_share
(&self, index: usize)
crates/threshold-bls-ffi/src/wasm.rs:359
↓ 1 callersFunctionkeygen
(seed: Vec<u8>)
crates/threshold-bls-ffi/src/wasm.rs:342
↓ 1 callersFunctionnew_neg_constant
()
crates/threshold-bls/src/poly.rs:569
↓ 1 callersMethodpolynomial
(&self)
crates/threshold-bls-ffi/src/wasm.rs:369
↓ 1 callersMethodprivate_key
(&self)
crates/threshold-bls-ffi/src/wasm.rs:326
↓ 1 callersFunctionserialize_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 callersFunctionserialize_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 callersFunctionthreshold_keygen
(n: usize, t: usize, seed: &[u8])
crates/threshold-bls-ffi/src/ffi.rs:593
↓ 1 callersFunctionthreshold_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
FunctionJava_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
Functionadd_zero
()
crates/threshold-bls/src/poly.rs:365
Methodaggregate
( threshold: usize, partials: &[Partial], )
crates/threshold-bls/src/sig/tbls.rs:67
Functionallows_trailing_bytes_like_bincode_top_level
()
crates/threshold-bls/src/serialization.rs:88
Functionbenchy
()
crates/threshold-bls/src/poly.rs:504
Functionblake2_hash_test_vectors
()
crates/threshold-bls/src/curve/bls12377.rs:587
Functionblind_g1
()
crates/threshold-bls/src/sig/blind.rs:114
Functionblind_g2
()
crates/threshold-bls/src/sig/blind.rs:119
Methodblind_msg
(msg: &[u8], rng: &mut R)
crates/threshold-bls/src/sig/blind.rs:56
Methodblind_sign
(private: &I::Private, blinded_msg: &[u8])
crates/threshold-bls/src/sig/blind.rs:97
Functionblind_test
()
crates/threshold-bls/src/sig/blind.rs:123
Methodblind_verify
( public: &I::Public, blinded_msg: &[u8], blinded_sig: &[u8], )
crates/threshold-bls/src/sig/blind.rs:81
Functioncommit
()
crates/threshold-bls/src/poly.rs:581
Functiondecrypt
Decrypts the message with a secret key (curve scalar) and returns the cleartext
crates/threshold-bls/src/ecies.rs:101
Methoddefault
()
crates/threshold-bls/src/sig/blind.rs:35
Functionderive
Derives an ephemeral key from the provided public key
crates/threshold-bls/src/ecies.rs:114
Functiondeserialize_field
(deserializer: D)
crates/threshold-bls/src/curve/bls12377.rs:407
Functiondeserialize_from_also_bounded
()
crates/threshold-bls/src/serialization.rs:77
Functiondeserialize_group
(deserializer: D)
crates/threshold-bls/src/curve/bls12377.rs:463
Functiondeserialize_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
Functiondestroy_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
Functiondestroy_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
Functiondestroy_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
Functiondestroy_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
Functiondestroy_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
Functionencrypt
Encrypts the message with a public key (curve point) and returns a ciphertext
crates/threshold-bls/src/ecies.rs:68
Methodexpecting
(&self, formatter: &mut fmt::Formatter)
crates/threshold-bls/src/curve/bls12377.rs:420
Methodfinal_exp
(p: &Self::Public, sig: &Self::Signature, hm: &Self::Signature)
crates/threshold-bls/src/sig/bls.rs:121
Methodfmt
(&self, f: &mut fmt::Formatter)
crates/threshold-bls/src/poly.rs:19
Methodfmt
(&self, f: &mut fmt::Formatter)
crates/threshold-bls/src/curve/bls12377.rs:182
Functionfree_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
Methodfrom
(c: Vec<C>)
crates/threshold-bls/src/poly.rs:232
Methodfrom
(src: &[u8])
crates/threshold-bls-ffi/src/ffi.rs:27
Methodfrom_random_bytes
(bytes: &[u8])
crates/threshold-bls/src/curve/bls12377.rs:171
Methodfull_recover
Given at least `t` polynomial evaluations, it will recover the entire polynomial
crates/threshold-bls/src/poly.rs:162
Functiongt_exp
()
crates/threshold-bls/src/curve/bls12377.rs:568
next →1–100 of 178, ranked by callers