[−][src]Crate threshold_crypto
A pairing-based threshold cryptosystem for collaborative decryption and signatures.
Re-exports
pub use ff; |
pub use group; |
pub use pairing; |
Modules
error | Crypto errors. |
poly | Utilities for distributed key generation: uni- and bivariate polynomials and commitments. |
serde_impl | Serialization and deserialization implementations for group and field elements. |
Structs
Ciphertext | An encrypted message. |
DecryptionShare | A decryption share. A threshold of decryption shares can be used to decrypt a message. |
Fr | |
FrRepr | |
G1Affine | |
G1 | |
G2Affine | |
G2 | |
PEngine | |
PublicKey | A public key. |
PublicKeySet | A public key and an associated set of public key shares. |
PublicKeyShare | A public key share. |
SecretKey | A secret key; wraps a single prime field element. The field element is
heap allocated to avoid any stack copying that result when passing
|
SecretKeySet | A secret key and an associated set of secret key shares. |
SecretKeyShare | A secret key share. |
Signature | A signature. |
SignatureShare | A signature share. |
Constants
PK_SIZE | The size of a key's representation in bytes. |
SIG_SIZE | The size of a signature's representation in bytes. |
Traits
IntoFr | A conversion into an element of the field |
Functions
hash_g2 | Returns a hash of the given message in |