[][src]Struct secp256k1::RecoverableSignature

pub struct RecoverableSignature(_);

An ECDSA signature with a recovery ID for pubkey recovery

Methods

impl RecoverableSignature[src]

pub fn from_compact(
    secp: &Secp256k1,
    data: &[u8],
    recid: RecoveryId
) -> Result<RecoverableSignature, Error>
[src]

Converts a compact-encoded byte slice to a signature. This representation is nonstandard and defined by the libsecp256k1 library.

pub fn as_ptr(&self) -> *const RecoverableSignature[src]

Obtains a raw pointer suitable for use with FFI functions

pub fn serialize_compact(&self, secp: &Secp256k1) -> (RecoveryId, [u8; 64])[src]

Serializes the recoverable signature in compact format

pub fn to_standard(&self, secp: &Secp256k1) -> Signature[src]

Converts a recoverable signature to a non-recoverable one (this is needed for verification

Trait Implementations

impl Clone for RecoverableSignature[src]

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

Performs copy-assignment from source. Read more

impl From<RecoverableSignature> for RecoverableSignature[src]

Creates a new recoverable signature from a FFI one

impl Eq for RecoverableSignature[src]

impl Copy for RecoverableSignature[src]

impl PartialEq<RecoverableSignature> for RecoverableSignature[src]

impl Debug for RecoverableSignature[src]

Auto Trait Implementations

Blanket Implementations

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

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