[][src]Struct stellar_base::signature::SignatureHint

pub struct SignatureHint(pub [u8; 4]);

Last 4 bytes of a public key.

Implementations

impl SignatureHint[src]

pub fn from_public_key(pk: &PublicKey) -> SignatureHint[src]

Create a SignatureHint with the last 4 bytes of the public key pk.

pub fn from_slice(buf: &[u8]) -> Result<SignatureHint>[src]

pub fn to_vec(&self) -> Vec<u8>[src]

Convert to Vec<u8>.

pub fn to_xdr(&self) -> Result<SignatureHint>[src]

pub fn from_xdr(x: &SignatureHint) -> Result<SignatureHint>[src]

Trait Implementations

impl Clone for SignatureHint[src]

impl Debug for SignatureHint[src]

impl Eq for SignatureHint[src]

impl PartialEq<SignatureHint> for SignatureHint[src]

impl StructuralEq for SignatureHint[src]

impl StructuralPartialEq for SignatureHint[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> 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.