[][src]Struct secp256k1::SerializedSignature

pub struct SerializedSignature { /* fields omitted */ }

A DER serialized Signature


impl SerializedSignature[src]

pub fn capacity(&self) -> usize[src]

Get the capacity of the underlying data buffer.

pub fn len(&self) -> usize[src]

Get the len of the used data.

pub fn to_signature(&self) -> Result<Signature, Error>[src]

Convert the serialized signature into the Signature struct. (This DER deserializes it)

pub fn from_signature(sig: &Signature) -> SerializedSignature[src]

Create a SerializedSignature from a Signature. (this DER serializes it)

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

Check if the space is zero.

Trait Implementations

impl AsRef<[u8]> for SerializedSignature[src]

impl Default for SerializedSignature[src]

impl Clone for SerializedSignature[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialEq<SerializedSignature> for SerializedSignature[src]

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

impl Eq for SerializedSignature[src]

impl Copy for SerializedSignature[src]

impl Deref for SerializedSignature[src]

type Target = [u8]

The resulting type after dereferencing.

Auto Trait Implementations

impl Unpin for SerializedSignature

impl Sync for SerializedSignature

impl Send for SerializedSignature

impl UnwindSafe for SerializedSignature

impl RefUnwindSafe for SerializedSignature

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> Any for T where
    T: 'static + ?Sized