#[repr(u8)]pub enum TransactionAuthFieldID {
PublicKeyCompressed = 0,
PublicKeyUncompressed = 1,
SignatureCompressed = 2,
SignatureUncompressed = 3,
}Expand description
Transaction signatures are validated by calculating the public key from the signature, and verifying that all public keys hash to the signing account’s hash. To do so, we must preserve enough information in the auth structure to recover each public key’s bytes.
An auth field can be a public key or a signature. In both cases, the public key (either given in-the-raw or embedded in a signature) may be encoded as compressed or uncompressed.
Variants§
PublicKeyCompressed = 0
PublicKeyUncompressed = 1
SignatureCompressed = 2
SignatureUncompressed = 3
Trait Implementations§
source§impl Clone for TransactionAuthFieldID
impl Clone for TransactionAuthFieldID
source§fn clone(&self) -> TransactionAuthFieldID
fn clone(&self) -> TransactionAuthFieldID
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 TransactionAuthFieldID
impl Debug for TransactionAuthFieldID
source§impl<'de> Deserialize<'de> for TransactionAuthFieldID
impl<'de> Deserialize<'de> for TransactionAuthFieldID
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 TransactionAuthFieldID
impl PartialEq for TransactionAuthFieldID
source§fn eq(&self, other: &TransactionAuthFieldID) -> bool
fn eq(&self, other: &TransactionAuthFieldID) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for TransactionAuthFieldID
impl Serialize for TransactionAuthFieldID
impl Copy for TransactionAuthFieldID
impl StructuralPartialEq for TransactionAuthFieldID
Auto Trait Implementations§
impl RefUnwindSafe for TransactionAuthFieldID
impl Send for TransactionAuthFieldID
impl Sync for TransactionAuthFieldID
impl Unpin for TransactionAuthFieldID
impl UnwindSafe for TransactionAuthFieldID
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