[−][src]Struct secp256k1::recovery::RecoverableSignature
An ECDSA signature with a recovery ID for pubkey recovery
Methods
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 From<RecoverableSignature> for RecoverableSignature
[src]
Creates a new recoverable signature from a FFI one
fn from(sig: RecoverableSignature) -> RecoverableSignature
[src]
impl Clone for RecoverableSignature
[src]
fn clone(&self) -> RecoverableSignature
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<RecoverableSignature> for RecoverableSignature
[src]
fn eq(&self, other: &RecoverableSignature) -> bool
[src]
fn ne(&self, other: &RecoverableSignature) -> bool
[src]
impl Eq for RecoverableSignature
[src]
impl Copy for RecoverableSignature
[src]
impl Debug 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]
Auto Trait Implementations
impl Unpin for RecoverableSignature
impl Sync for RecoverableSignature
impl Send for RecoverableSignature
impl UnwindSafe for RecoverableSignature
impl RefUnwindSafe for RecoverableSignature
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,