[][src]Struct secp256k1::SerializedSignature

pub struct SerializedSignature { /* fields omitted */ }

A DER serialized Signature

Implementations

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 Clone for SerializedSignature[src]

impl Copy for SerializedSignature[src]

impl Default for SerializedSignature[src]

impl Deref for SerializedSignature[src]

type Target = [u8]

The resulting type after dereferencing.

impl Eq for SerializedSignature[src]

impl PartialEq<SerializedSignature> for SerializedSignature[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.

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