[][src]Struct eosio::PublicKey

pub struct PublicKey {
    pub type_: UnsignedInt,
    pub data: [u8; 34],
}

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; 34]

Bytes of the public key

Methods

impl PublicKey[src]

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

TODO docs.

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

TODO docs.

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

TODO docs.

Trait Implementations

impl Clone for PublicKey[src]

impl Debug for PublicKey[src]

impl Default for PublicKey[src]

impl From<PublicKey> for KeyWeight[src]

impl From<PublicKey> for BlockSigningAuthority[src]

impl NumBytes for PublicKey[src]

impl PartialEq<PublicKey> for PublicKey[src]

impl Read for PublicKey[src]

impl Write for PublicKey[src]

Auto Trait Implementations

impl Send for PublicKey

impl Sync for PublicKey

impl Unpin for PublicKey

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.