pub struct DecoratedSignature { /* private fields */ }Expand description
A Signature together with the last 4 bytes of the public key.
Implementations§
Source§impl DecoratedSignature
impl DecoratedSignature
Sourcepub fn new(hint: SignatureHint, signature: Signature) -> DecoratedSignature
pub fn new(hint: SignatureHint, signature: Signature) -> DecoratedSignature
Creates a new DecoratedSignature with hint and signature.
Sourcepub fn new_from_preimage(preimage: &[u8]) -> Result<DecoratedSignature>
pub fn new_from_preimage(preimage: &[u8]) -> Result<DecoratedSignature>
Creates a new DecoratedSignature from the pre image.
Sourcepub fn hint(&self) -> &SignatureHint
pub fn hint(&self) -> &SignatureHint
Returns the decorated signature hint.
Sourcepub fn hint_mut(&mut self) -> &mut SignatureHint
pub fn hint_mut(&mut self) -> &mut SignatureHint
Returns a mutable reference to the decorated signature hint.
Sourcepub fn signature_mut(&mut self) -> &mut Signature
pub fn signature_mut(&mut self) -> &mut Signature
Returns a mutable reference to the decorated signature signature.
Sourcepub fn to_xdr(&self) -> Result<DecoratedSignature>
pub fn to_xdr(&self) -> Result<DecoratedSignature>
Returns xdr object.
Sourcepub fn from_xdr(x: &DecoratedSignature) -> Result<DecoratedSignature>
pub fn from_xdr(x: &DecoratedSignature) -> Result<DecoratedSignature>
Creates from xdr object.
Trait Implementations§
Source§impl Clone for DecoratedSignature
impl Clone for DecoratedSignature
Source§fn clone(&self) -> DecoratedSignature
fn clone(&self) -> DecoratedSignature
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DecoratedSignature
impl Debug for DecoratedSignature
Source§impl PartialEq for DecoratedSignature
impl PartialEq for DecoratedSignature
impl Eq for DecoratedSignature
impl StructuralPartialEq for DecoratedSignature
Auto Trait Implementations§
impl Freeze for DecoratedSignature
impl RefUnwindSafe for DecoratedSignature
impl Send for DecoratedSignature
impl Sync for DecoratedSignature
impl Unpin for DecoratedSignature
impl UnwindSafe for DecoratedSignature
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more