Struct secp256k1::RecoverableSignature [−][src]
pub struct RecoverableSignature(_);
An ECDSA signature with a recovery ID for pubkey recovery
Methods
impl RecoverableSignature[src]
impl RecoverableSignaturepub fn from_compact(
secp: &Secp256k1,
data: &[u8],
recid: RecoveryId
) -> Result<RecoverableSignature, Error>[src]
pub fn from_compact(
secp: &Secp256k1,
data: &[u8],
recid: RecoveryId
) -> Result<RecoverableSignature, Error>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]
pub fn as_ptr(&self) -> *const RecoverableSignatureObtains a raw pointer suitable for use with FFI functions
pub fn serialize_compact(&self, secp: &Secp256k1) -> (RecoveryId, [u8; 64])[src]
pub fn serialize_compact(&self, secp: &Secp256k1) -> (RecoveryId, [u8; 64])Serializes the recoverable signature in compact format
pub fn to_standard(&self, secp: &Secp256k1) -> Signature[src]
pub fn to_standard(&self, secp: &Secp256k1) -> SignatureConverts a recoverable signature to a non-recoverable one (this is needed for verification
Trait Implementations
impl Copy for RecoverableSignature[src]
impl Copy for RecoverableSignatureimpl Clone for RecoverableSignature[src]
impl Clone for RecoverableSignaturefn clone(&self) -> RecoverableSignature[src]
fn clone(&self) -> RecoverableSignatureReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl PartialEq for RecoverableSignature[src]
impl PartialEq for RecoverableSignaturefn eq(&self, other: &RecoverableSignature) -> bool[src]
fn eq(&self, other: &RecoverableSignature) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &RecoverableSignature) -> bool[src]
fn ne(&self, other: &RecoverableSignature) -> boolThis method tests for !=.
impl Eq for RecoverableSignature[src]
impl Eq for RecoverableSignatureimpl Debug for RecoverableSignature[src]
impl Debug for RecoverableSignaturefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl From<RecoverableSignature> for RecoverableSignature[src]
impl From<RecoverableSignature> for RecoverableSignatureCreates a new recoverable signature from a FFI one
fn from(sig: RecoverableSignature) -> RecoverableSignature[src]
fn from(sig: RecoverableSignature) -> RecoverableSignaturePerforms the conversion.
Auto Trait Implementations
impl Send for RecoverableSignature
impl Send for RecoverableSignatureimpl Sync for RecoverableSignature
impl Sync for RecoverableSignature