[][src]Struct eosio_client_keys::EOSSignature

pub struct EOSSignature {
    pub sig: Signature,
    // some fields omitted
}

Fields

sig: Signature

Implementations

impl EOSSignature[src]

pub fn from(buffer: &[u8]) -> Result<EOSSignature>[src]

pub fn from_string(sig_str: &str) -> Result<EOSSignature>[src]

pub fn verify(&self, data: &[u8], pubkey: &EOSPublicKey) -> Result<bool>[src]

Verify signed data.

@arg {String|Buffer} data - full data @arg {pubkey|PublicKey} pubkey - EOSKey..

@return {boolean}

pub fn verify_hash(&self, hash: &[u8], pubkey: &EOSPublicKey) -> Result<bool>[src]

Verify a buffer of exactly 32 bytes in size (sha256(text))

@arg {String|Buffer} dataSha256 - 32 byte buffer @arg {String|PublicKey} pubkey - EOSKey..

@return {boolean}

pub fn to_eos_string(&self) -> Result<String>[src]

pub fn is_canonical(&self) -> bool[src]

Auto Trait Implementations

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> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,