|
|
@ -29,7 +29,7 @@ const CHACHA_RNG_SEED_SIZE: usize = 8; |
|
|
|
const ERR_OS_RNG: &str = "could not initialize the OS random number generator"; |
|
|
|
const ERR_OS_RNG: &str = "could not initialize the OS random number generator"; |
|
|
|
|
|
|
|
|
|
|
|
/// A public key, or a public key share.
|
|
|
|
/// A public key, or a public key share.
|
|
|
|
#[derive(Deserialize, Serialize, Clone, PartialEq, Eq)] |
|
|
|
#[derive(Deserialize, Serialize, Copy, Clone, PartialEq, Eq)] |
|
|
|
pub struct PublicKey(#[serde(with = "serde_impl::projective")] G1); |
|
|
|
pub struct PublicKey(#[serde(with = "serde_impl::projective")] G1); |
|
|
|
|
|
|
|
|
|
|
|
impl Hash for PublicKey { |
|
|
|
impl Hash for PublicKey { |
|
|
|