#[repr(u8)]
pub enum TransactionAuthFieldID {
PublicKeyCompressed,
PublicKeyUncompressed,
SignatureCompressed,
SignatureUncompressed,
}
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
PublicKeyUncompressed
SignatureCompressed
SignatureUncompressed
Trait Implementations
sourceimpl Clone for TransactionAuthFieldID
impl Clone for TransactionAuthFieldID
sourcefn clone(&self) -> TransactionAuthFieldID
fn clone(&self) -> TransactionAuthFieldID
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TransactionAuthFieldID
impl Debug for TransactionAuthFieldID
sourceimpl<'de> Deserialize<'de> for TransactionAuthFieldID
impl<'de> Deserialize<'de> for TransactionAuthFieldID
sourcefn 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
sourceimpl PartialEq<TransactionAuthFieldID> for TransactionAuthFieldID
impl PartialEq<TransactionAuthFieldID> for TransactionAuthFieldID
sourcefn eq(&self, other: &TransactionAuthFieldID) -> bool
fn eq(&self, other: &TransactionAuthFieldID) -> bool
sourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more