pub struct SignerWithStake {
pub party_id: PartyId,
pub verification_key: ProtocolSignerVerificationKey,
pub verification_key_signature: Option<ProtocolSignerVerificationKeySignature>,
pub operational_certificate: Option<ProtocolOpCert>,
pub kes_period: Option<KESPeriod>,
pub stake: Stake,
}
Expand description
Signer represents a signing party in the network (including its stakes)
Fields§
§party_id: PartyId
The unique identifier of the signer
verification_key: ProtocolSignerVerificationKey
The public key used to authenticate signer signature
verification_key_signature: Option<ProtocolSignerVerificationKeySignature>
The encoded signer ‘Mithril verification key’ signature (signed by the Cardano node KES secret key)
operational_certificate: Option<ProtocolOpCert>
The encoded operational certificate of stake pool operator attached to the signer node
kes_period: Option<KESPeriod>
The kes period used to compute the verification key signature
stake: Stake
The signer stake
Implementations§
source§impl SignerWithStake
impl SignerWithStake
sourcepub fn new(
party_id: PartyId,
verification_key: ProtocolSignerVerificationKey,
verification_key_signature: Option<ProtocolSignerVerificationKeySignature>,
operational_certificate: Option<ProtocolOpCert>,
kes_period: Option<KESPeriod>,
stake: Stake,
) -> SignerWithStake
pub fn new( party_id: PartyId, verification_key: ProtocolSignerVerificationKey, verification_key_signature: Option<ProtocolSignerVerificationKeySignature>, operational_certificate: Option<ProtocolOpCert>, kes_period: Option<KESPeriod>, stake: Stake, ) -> SignerWithStake
SignerWithStake factory
sourcepub fn from_signer(signer: Signer, stake: Stake) -> Self
pub fn from_signer(signer: Signer, stake: Stake) -> Self
Turn a Signer into a SignerWithStake.
sourcepub fn compute_hash(&self) -> String
pub fn compute_hash(&self) -> String
Computes the hash of SignerWithStake
Trait Implementations§
source§impl Clone for SignerWithStake
impl Clone for SignerWithStake
source§fn clone(&self) -> SignerWithStake
fn clone(&self) -> SignerWithStake
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 SignerWithStake
impl Debug for SignerWithStake
source§impl<'de> Deserialize<'de> for SignerWithStake
impl<'de> Deserialize<'de> for SignerWithStake
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<&SignerFixture> for SignerWithStake
impl From<&SignerFixture> for SignerWithStake
source§fn from(fixture: &SignerFixture) -> Self
fn from(fixture: &SignerFixture) -> Self
Converts to this type from the input type.
source§impl From<&SignerWithStake> for (ProtocolPartyId, ProtocolStake)
impl From<&SignerWithStake> for (ProtocolPartyId, ProtocolStake)
source§fn from(other: &SignerWithStake) -> Self
fn from(other: &SignerWithStake) -> Self
Converts to this type from the input type.
source§impl From<SignerFixture> for SignerWithStake
impl From<SignerFixture> for SignerWithStake
source§fn from(fixture: SignerFixture) -> Self
fn from(fixture: SignerFixture) -> Self
Converts to this type from the input type.
source§impl From<SignerWithStake> for Signer
impl From<SignerWithStake> for Signer
source§fn from(other: SignerWithStake) -> Self
fn from(other: SignerWithStake) -> Self
Converts to this type from the input type.
source§impl From<SignerWithStake> for SignerWithStakeMessagePart
impl From<SignerWithStake> for SignerWithStakeMessagePart
source§fn from(value: SignerWithStake) -> Self
fn from(value: SignerWithStake) -> Self
Converts to this type from the input type.
source§impl From<SignerWithStake> for StakeDistributionParty
impl From<SignerWithStake> for StakeDistributionParty
source§fn from(value: SignerWithStake) -> Self
fn from(value: SignerWithStake) -> Self
Converts to this type from the input type.
source§impl Ord for SignerWithStake
impl Ord for SignerWithStake
source§impl PartialEq for SignerWithStake
impl PartialEq for SignerWithStake
source§impl PartialOrd for SignerWithStake
impl PartialOrd for SignerWithStake
source§impl Serialize for SignerWithStake
impl Serialize for SignerWithStake
impl Eq for SignerWithStake
Auto Trait Implementations§
impl Freeze for SignerWithStake
impl RefUnwindSafe for SignerWithStake
impl Send for SignerWithStake
impl Sync for SignerWithStake
impl Unpin for SignerWithStake
impl UnwindSafe for SignerWithStake
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
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
source§fn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Performs the conversion.
source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
source§fn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Performs the conversion.
source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>
fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>
source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.