[][src]Struct eosio::Signature

pub struct Signature {
    pub type_: UnsignedInt,
    pub data: [u8; 66],
}

TODO depreciate, newer signature types cannot be represented as a fixed size structure EOSIO Public Key https://github.com/EOSIO/eosio.cdt/blob/4985359a30da1f883418b7133593f835927b8046/libraries/eosiolib/core/eosio/crypto.hpp#L22-L48

Fields

type_: UnsignedInt

Type of the public key, could be either K1 or R1

data: [u8; 66]

Bytes of the public key

Methods

impl Signature[src]

#[must_use] pub const fn as_bytes(&self) -> &[u8; 66][src]

TODO docs.

#[must_use] pub const fn to_bytes(&self) -> [u8; 66][src]

TODO docs.

#[must_use] pub fn as_slice(&self) -> &[u8][src]

TODO docs.

Trait Implementations

impl Clone for Signature[src]

impl Debug for Signature[src]

impl Default for Signature[src]

impl NumBytes for Signature[src]

impl PartialEq<Signature> for Signature[src]

impl Read for Signature[src]

impl Write for Signature[src]

Auto Trait Implementations

impl Send for Signature

impl Sync for Signature

impl Unpin for Signature

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.