Struct secp256k1::RecoverableSignature [−][src]
pub struct RecoverableSignature(_);
An ECDSA signature with a recovery ID for pubkey recovery
Methods
impl RecoverableSignature
[src]
impl RecoverableSignature
pub 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 RecoverableSignature
Obtains 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) -> Signature
Converts a recoverable signature to a non-recoverable one (this is needed for verification
Trait Implementations
impl Copy for RecoverableSignature
[src]
impl Copy for RecoverableSignature
impl Clone for RecoverableSignature
[src]
impl Clone for RecoverableSignature
fn clone(&self) -> RecoverableSignature
[src]
fn clone(&self) -> RecoverableSignature
Returns 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 RecoverableSignature
fn eq(&self, other: &RecoverableSignature) -> bool
[src]
fn eq(&self, other: &RecoverableSignature) -> bool
This 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) -> bool
This method tests for !=
.
impl Eq for RecoverableSignature
[src]
impl Eq for RecoverableSignature
impl Debug for RecoverableSignature
[src]
impl Debug for RecoverableSignature
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<RecoverableSignature> for RecoverableSignature
[src]
impl From<RecoverableSignature> for RecoverableSignature
Creates a new recoverable signature from a FFI one
fn from(sig: RecoverableSignature) -> RecoverableSignature
[src]
fn from(sig: RecoverableSignature) -> RecoverableSignature
Performs the conversion.
Auto Trait Implementations
impl Send for RecoverableSignature
impl Send for RecoverableSignature
impl Sync for RecoverableSignature
impl Sync for RecoverableSignature