[][src]Struct stellar_base::signature::DecoratedSignature

pub struct DecoratedSignature { /* fields omitted */ }

A Signature together with the last 4 bytes of the public key.

Implementations

impl DecoratedSignature[src]

pub fn new(hint: SignatureHint, signature: Signature) -> DecoratedSignature[src]

Creates a new DecoratedSignature with hint and signature.

pub fn new_from_preimage(preimage: &[u8]) -> Result<DecoratedSignature>[src]

Creates a new DecoratedSignature from the pre image.

pub fn hint(&self) -> &SignatureHint[src]

Returns the decorated signature hint.

pub fn hint_mut(&mut self) -> &mut SignatureHint[src]

Returns a mutable reference to the decorated signature hint.

pub fn signature(&self) -> &Signature[src]

Returns the decorated signature signature.

pub fn signature_mut(&mut self) -> &mut Signature[src]

Returns a mutable reference to the decorated signature signature.

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

Returns xdr object.

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

Creates from xdr object.

Trait Implementations

impl Clone for DecoratedSignature[src]

impl Debug for DecoratedSignature[src]

impl Eq for DecoratedSignature[src]

impl PartialEq<DecoratedSignature> for DecoratedSignature[src]

impl StructuralEq for DecoratedSignature[src]

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