Struct secp256k1::RecoverableSignature [] [src]

pub struct RecoverableSignature(_);

An ECDSA signature with a recovery ID for pubkey recovery

Methods

impl RecoverableSignature
[src]

fn from_compact(secp: &Secp256k1, data: &[u8], recid: RecoveryId) -> Result<RecoverableSignatureError>

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

fn as_ptr(&self) -> *const RecoverableSignature

Obtains a raw pointer suitable for use with FFI functions

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

Serializes the recoverable signature in compact format

fn to_standard(&self, secp: &Secp256k1) -> Signature

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

Trait Implementations

impl Debug for RecoverableSignature
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Eq for RecoverableSignature
[src]

impl PartialEq for RecoverableSignature
[src]

fn eq(&self, __arg_0: &RecoverableSignature) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &RecoverableSignature) -> bool

This method tests for !=.

impl Clone for RecoverableSignature
[src]

fn clone(&self) -> RecoverableSignature

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Copy for RecoverableSignature
[src]

impl From<RecoverableSignature> for RecoverableSignature
[src]

Creates a new recoverable signature from a FFI one

fn from(sig: RecoverableSignature) -> RecoverableSignature

Performs the conversion.