Struct secp256k1::recovery::RecoverableSignature [−][src]
pub struct RecoverableSignature(_);
An ECDSA signature with a recovery ID for pubkey recovery
Implementations
impl RecoverableSignature
[src]
impl RecoverableSignature
[src]pub fn from_compact(
data: &[u8],
recid: RecoveryId
) -> Result<RecoverableSignature, Error>
[src]
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]
Obtains a raw pointer suitable for use with FFI functions
pub fn as_mut_ptr(&mut self) -> *mut RecoverableSignature
[src]
Obtains a raw mutable pointer suitable for use with FFI functions
pub fn serialize_compact(&self) -> (RecoveryId, [u8; 64])
[src]
Serializes the recoverable signature in compact format
pub fn to_standard(&self) -> Signature
[src]
Converts a recoverable signature to a non-recoverable one (this is needed for verification
Trait Implementations
impl CPtr for RecoverableSignature
[src]
impl CPtr for RecoverableSignature
[src]type Target = RecoverableSignature
fn as_c_ptr(&self) -> *const Self::Target
[src]
fn as_mut_c_ptr(&mut self) -> *mut Self::Target
[src]
impl Clone for RecoverableSignature
[src]
impl Clone for RecoverableSignature
[src]fn clone(&self) -> RecoverableSignature
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl From<RecoverableSignature> for RecoverableSignature
[src]
impl From<RecoverableSignature> for RecoverableSignature
[src]Creates a new recoverable signature from a FFI one
fn from(sig: RecoverableSignature) -> RecoverableSignature
[src]
impl PartialEq<RecoverableSignature> for RecoverableSignature
[src]
impl PartialEq<RecoverableSignature> for RecoverableSignature
[src]