#[repr(C)]pub struct RecoverableSignature(/* private fields */);
Expand description
Library-internal representation of a Secp256k1 signature + recovery ID
Implementations§
§impl RecoverableSignature
impl RecoverableSignature
pub fn cmp_fast_unstable(&self, other: &RecoverableSignature) -> Ordering
pub fn cmp_fast_unstable(&self, other: &RecoverableSignature) -> Ordering
Like cmp::Ord
but faster and with no guarantees across library versions.
The inner byte array of Self
is passed across the FFI boundry, as such there are
no guarantees on its layout and it is subject to change across library versions,
even minor versions. For this reason comparison function implementations (e.g.
Ord
, PartialEq
) take measures to ensure the data will remain constant (e.g., by
serializing it to a guaranteed format). This means they may be slow, this function
provides a faster comparison if you know that your types come from the same library
version.
pub fn eq_fast_unstable(&self, other: &RecoverableSignature) -> bool
pub fn eq_fast_unstable(&self, other: &RecoverableSignature) -> bool
Like cmp::Eq
but faster and with no guarantees across library versions.
The inner byte array of Self
is passed across the FFI boundry, as such there are
no guarantees on its layout and it is subject to change across library versions,
even minor versions. For this reason comparison function implementations (e.g.
Ord
, PartialEq
) take measures to ensure the data will remain constant (e.g., by
serializing it to a guaranteed format). This means they may be slow, this function
provides a faster equality check if you know that your types come from the same
library version.
§impl RecoverableSignature
impl RecoverableSignature
pub fn new() -> RecoverableSignature
pub fn new() -> RecoverableSignature
Create a new (zeroed) signature usable for the FFI interface
Trait Implementations§
§impl AsRef<[u8; 65]> for RecoverableSignature
impl AsRef<[u8; 65]> for RecoverableSignature
§impl CPtr for RecoverableSignature
impl CPtr for RecoverableSignature
type Target = u8
fn as_c_ptr(&self) -> *const <RecoverableSignature as CPtr>::Target
fn as_mut_c_ptr(&mut self) -> *mut <RecoverableSignature as CPtr>::Target
§impl Clone for RecoverableSignature
impl Clone for RecoverableSignature
§fn clone(&self) -> RecoverableSignature
fn clone(&self) -> RecoverableSignature
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for RecoverableSignature
impl Debug for RecoverableSignature
§impl Default for RecoverableSignature
impl Default for RecoverableSignature
§fn default() -> RecoverableSignature
fn default() -> RecoverableSignature
§impl From<RecoverableSignature> for RecoverableSignature
impl From<RecoverableSignature> for RecoverableSignature
Creates a new recoverable signature from a FFI one.
§fn from(sig: RecoverableSignature) -> RecoverableSignature
fn from(sig: RecoverableSignature) -> RecoverableSignature
§impl Hash for RecoverableSignature
impl Hash for RecoverableSignature
§impl<I> Index<I> for RecoverableSignature
impl<I> Index<I> for RecoverableSignature
§impl Ord for RecoverableSignature
impl Ord for RecoverableSignature
§fn cmp(&self, other: &RecoverableSignature) -> Ordering
fn cmp(&self, other: &RecoverableSignature) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
§impl PartialEq for RecoverableSignature
impl PartialEq for RecoverableSignature
§fn eq(&self, other: &RecoverableSignature) -> bool
fn eq(&self, other: &RecoverableSignature) -> bool
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for RecoverableSignature
impl PartialOrd for RecoverableSignature
§fn partial_cmp(&self, other: &RecoverableSignature) -> Option<Ordering>
fn partial_cmp(&self, other: &RecoverableSignature) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more