pub struct KeyRegistrationTransactionFields {
pub header: TransactionHeader,
pub vote_key: Option<[u8; 32]>,
pub selection_key: Option<[u8; 32]>,
pub state_proof_key: Option<[u8; 64]>,
pub vote_first: Option<u64>,
pub vote_last: Option<u64>,
pub vote_key_dilution: Option<u64>,
pub non_participation: Option<bool>,
}
Expand description
Represents a key registration transaction that registers an account online or offline for participation in Algorand consensus.
Fields§
§header: TransactionHeader
Common transaction header fields.
vote_key: Option<[u8; 32]>
Root participation public key (32 bytes).
selection_key: Option<[u8; 32]>
VRF public key (32 bytes).
state_proof_key: Option<[u8; 64]>
State proof key (64 bytes).
vote_first: Option<u64>
First round for which the participation key is valid.
vote_last: Option<u64>
Last round for which the participation key is valid.
vote_key_dilution: Option<u64>
Key dilution for the 2-level participation key.
non_participation: Option<bool>
Mark account as non-reward earning.
Implementations§
Source§impl KeyRegistrationTransactionFields
impl KeyRegistrationTransactionFields
pub fn validate_for_online(&self) -> Result<(), Vec<TransactionValidationError>>
Trait Implementations§
Source§impl Clone for KeyRegistrationTransactionFields
impl Clone for KeyRegistrationTransactionFields
Source§fn clone(&self) -> KeyRegistrationTransactionFields
fn clone(&self) -> KeyRegistrationTransactionFields
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<'de> Deserialize<'de> for KeyRegistrationTransactionFields
impl<'de> Deserialize<'de> for KeyRegistrationTransactionFields
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 PartialEq for KeyRegistrationTransactionFields
impl PartialEq for KeyRegistrationTransactionFields
Source§fn eq(&self, other: &KeyRegistrationTransactionFields) -> bool
fn eq(&self, other: &KeyRegistrationTransactionFields) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for KeyRegistrationTransactionFields
Auto Trait Implementations§
impl Freeze for KeyRegistrationTransactionFields
impl RefUnwindSafe for KeyRegistrationTransactionFields
impl Send for KeyRegistrationTransactionFields
impl Sync for KeyRegistrationTransactionFields
impl Unpin for KeyRegistrationTransactionFields
impl UnwindSafe for KeyRegistrationTransactionFields
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