pub struct RegistrationEntry(/* private fields */);Expand description
Represents a signer registration entry
Implementations§
Source§impl RegistrationEntry
impl RegistrationEntry
Sourcepub fn new(
bls_verification_key_proof_of_possession: VerificationKeyProofOfPossessionForConcatenation,
stake: Stake,
) -> StmResult<Self>
pub fn new( bls_verification_key_proof_of_possession: VerificationKeyProofOfPossessionForConcatenation, stake: Stake, ) -> StmResult<Self>
Creates a new registration entry. Verifies the proof of possession of verification key for concatenation and validates the schnorr verification key before creating the entry.
Sourcepub fn get_verification_key_for_concatenation(
&self,
) -> VerificationKeyForConcatenation
pub fn get_verification_key_for_concatenation( &self, ) -> VerificationKeyForConcatenation
Gets the verification key for concatenation.
Trait Implementations§
Source§impl Clone for RegistrationEntry
impl Clone for RegistrationEntry
Source§fn clone(&self) -> RegistrationEntry
fn clone(&self) -> RegistrationEntry
Returns a duplicate 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 RegistrationEntry
impl Debug for RegistrationEntry
Source§impl<'de> Deserialize<'de> for RegistrationEntry
impl<'de> Deserialize<'de> for RegistrationEntry
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<ClosedRegistrationEntry> for RegistrationEntry
impl From<ClosedRegistrationEntry> for RegistrationEntry
Source§fn from(entry: ClosedRegistrationEntry) -> Self
fn from(entry: ClosedRegistrationEntry) -> Self
Converts to this type from the input type.
Source§impl Hash for RegistrationEntry
impl Hash for RegistrationEntry
Source§impl Ord for RegistrationEntry
impl Ord for RegistrationEntry
Source§fn cmp(&self, other: &Self) -> Ordering
fn cmp(&self, other: &Self) -> Ordering
Compares the registration entries by comparing the stake first, then the verification key.
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RegistrationEntry
impl PartialEq for RegistrationEntry
Source§impl PartialOrd for RegistrationEntry
impl PartialOrd for RegistrationEntry
Source§impl Serialize for RegistrationEntry
impl Serialize for RegistrationEntry
Source§impl TryFrom<Initializer> for RegistrationEntry
impl TryFrom<Initializer> for RegistrationEntry
impl Copy for RegistrationEntry
impl Eq for RegistrationEntry
impl StructuralPartialEq for RegistrationEntry
Auto Trait Implementations§
impl Freeze for RegistrationEntry
impl RefUnwindSafe for RegistrationEntry
impl Send for RegistrationEntry
impl Sync for RegistrationEntry
impl Unpin for RegistrationEntry
impl UnsafeUnpin for RegistrationEntry
impl UnwindSafe for RegistrationEntry
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