Struct chain_impl_mockchain::key::GenesisPraosLeader
source · pub struct GenesisPraosLeader {
pub kes_public_key: PublicKey<SumEd25519_12>,
pub vrf_public_key: PublicKey<RistrettoGroup2HashDh>,
}
Expand description
Praos Leader consisting of the KES public key and VRF public key
Fields§
§kes_public_key: PublicKey<SumEd25519_12>
§vrf_public_key: PublicKey<RistrettoGroup2HashDh>
Implementations§
Trait Implementations§
source§impl Arbitrary for GenesisPraosLeader
impl Arbitrary for GenesisPraosLeader
§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = BoxedStrategy<GenesisPraosLeader>
type Strategy = BoxedStrategy<GenesisPraosLeader>
The type of
Strategy
used to generate values of type Self
.source§fn arbitrary_with(args: <Self as Arbitrary>::Parameters) -> Self::Strategy
fn arbitrary_with(args: <Self as Arbitrary>::Parameters) -> Self::Strategy
source§impl Arbitrary for GenesisPraosLeader
impl Arbitrary for GenesisPraosLeader
source§impl Clone for GenesisPraosLeader
impl Clone for GenesisPraosLeader
source§fn clone(&self) -> GenesisPraosLeader
fn clone(&self) -> GenesisPraosLeader
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GenesisPraosLeader
impl Debug for GenesisPraosLeader
source§impl DeserializeFromSlice for GenesisPraosLeader
impl DeserializeFromSlice for GenesisPraosLeader
fn deserialize_from_slice(codec: &mut Codec<&[u8]>) -> Result<Self, ReadError>
fn deserialize_validate_from_slice( codec: &mut Codec<&[u8]> ) -> Result<(), ReadError>
source§impl Hash for GenesisPraosLeader
impl Hash for GenesisPraosLeader
source§impl PartialEq<GenesisPraosLeader> for GenesisPraosLeader
impl PartialEq<GenesisPraosLeader> for GenesisPraosLeader
source§fn eq(&self, other: &GenesisPraosLeader) -> bool
fn eq(&self, other: &GenesisPraosLeader) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for GenesisPraosLeader
impl StructuralEq for GenesisPraosLeader
impl StructuralPartialEq for GenesisPraosLeader
Auto Trait Implementations§
impl RefUnwindSafe for GenesisPraosLeader
impl Send for GenesisPraosLeader
impl Sync for GenesisPraosLeader
impl Unpin for GenesisPraosLeader
impl UnwindSafe for GenesisPraosLeader
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more