pub struct SignerWithStake {
pub party_id: PartyId,
pub verification_key: ProtocolSignerVerificationKey,
pub verification_key_signature: Option<ProtocolSignerVerificationKeySignature>,
pub operational_certificate: Option<ProtocolOpCert>,
pub kes_evolutions: Option<KesEvolutions>,
pub stake: Stake,
}Expand description
Signer represents a signing party in the network (including its stakes)
Fields§
§party_id: PartyIdThe unique identifier of the signer
Used only for testing when SPO pool id is not certified
verification_key: ProtocolSignerVerificationKeyThe 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)
None is used only for testing when SPO pool id is not certified
operational_certificate: Option<ProtocolOpCert>The encoded operational certificate of stake pool operator attached to the signer node
None is used only for testing when SPO pool id is not certified
kes_evolutions: Option<KesEvolutions>The number of evolutions of the KES key since the start KES period of the operational certificate at the time of signature.
stake: StakeThe 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_evolutions: Option<KesEvolutions>,
stake: Stake,
) -> SignerWithStake
pub fn new( party_id: PartyId, verification_key: ProtocolSignerVerificationKey, verification_key_signature: Option<ProtocolSignerVerificationKeySignature>, operational_certificate: Option<ProtocolOpCert>, kes_evolutions: Option<KesEvolutions>, 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
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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>,
Source§impl From<&SignerFixture> for SignerWithStake
impl From<&SignerFixture> for SignerWithStake
Source§fn from(fixture: &SignerFixture) -> Self
fn from(fixture: &SignerFixture) -> Self
Source§impl From<&SignerWithStake> for (ProtocolPartyId, ProtocolStake)
impl From<&SignerWithStake> for (ProtocolPartyId, ProtocolStake)
Source§fn from(other: &SignerWithStake) -> Self
fn from(other: &SignerWithStake) -> Self
Source§impl From<SignerFixture> for SignerWithStake
impl From<SignerFixture> for SignerWithStake
Source§fn from(fixture: SignerFixture) -> Self
fn from(fixture: SignerFixture) -> Self
Source§impl From<SignerWithStake> for Signer
impl From<SignerWithStake> for Signer
Source§fn from(other: SignerWithStake) -> Self
fn from(other: SignerWithStake) -> Self
Source§impl From<SignerWithStake> for SignerWithStakeMessagePart
impl From<SignerWithStake> for SignerWithStakeMessagePart
Source§fn from(value: SignerWithStake) -> Self
fn from(value: SignerWithStake) -> Self
Source§impl From<SignerWithStake> for StakeDistributionParty
impl From<SignerWithStake> for StakeDistributionParty
Source§fn from(value: SignerWithStake) -> Self
fn from(value: SignerWithStake) -> Self
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
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>,
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>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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 more