Expand description
A pairing-based threshold cryptosystem for collaborative decryption and signatures.
Re-exports§
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.
- Decryption
Share - A decryption share. A threshold of decryption shares can be used to decrypt a message.
- Fr
- FrRepr
- G1
- G2
- G1Affine
- G2Affine
- PEngine
- Public
Key - A public key.
- Public
KeySet - A public key and an associated set of public key shares.
- Public
KeyShare - A public key share.
- Secret
Key - A secret key; wraps a single prime field element. The field element is
heap allocated to avoid any stack copying that result when passing
SecretKey
s between stack frames. - Secret
KeySet - A secret key and an associated set of secret key shares.
- Secret
KeyShare - A secret key share.
- Signature
- A signature.
- Signature
Share - 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
Fr
.
Functions§
- hash_g2
- Returns a hash of the given message in
G2
.