#[repr(transparent)]pub struct Secp256k1RecoverableSignature(pub [u8; 65]);Expand description
Recoverable 65-byte secp256k1 signature, i.e. 64-byte signature with additional recovery byte
Tuple Fields§
§0: [u8; 65]Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for Secp256k1RecoverableSignature
impl<'arbitrary> Arbitrary<'arbitrary> for Secp256k1RecoverableSignature
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moreSource§impl AsRef<[u8]> for Secp256k1RecoverableSignature
impl AsRef<[u8]> for Secp256k1RecoverableSignature
Source§impl BorshDeserialize for Secp256k1RecoverableSignature
impl BorshDeserialize for Secp256k1RecoverableSignature
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSchema for Secp256k1RecoverableSignature
impl BorshSchema for Secp256k1RecoverableSignature
Source§fn declaration() -> Declaration
fn declaration() -> Declaration
Get the name of the type without brackets.
Source§fn add_definitions_recursively(
definitions: &mut BTreeMap<Declaration, Definition>,
)
fn add_definitions_recursively( definitions: &mut BTreeMap<Declaration, Definition>, )
Recursively, using DFS, add type definitions required for this type.
Type definition partially explains how to serialize/deserialize a type.
Source§impl BorshSerialize for Secp256k1RecoverableSignature
impl BorshSerialize for Secp256k1RecoverableSignature
Source§impl Clone for Secp256k1RecoverableSignature
impl Clone for Secp256k1RecoverableSignature
Source§fn clone(&self) -> Secp256k1RecoverableSignature
fn clone(&self) -> Secp256k1RecoverableSignature
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for Secp256k1RecoverableSignature
impl<'de> Deserialize<'de> for Secp256k1RecoverableSignature
Source§fn deserialize<__D>(deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'__derive_more_into> From<&'__derive_more_into Secp256k1RecoverableSignature> for &'__derive_more_into [u8; 65]
impl<'__derive_more_into> From<&'__derive_more_into Secp256k1RecoverableSignature> for &'__derive_more_into [u8; 65]
Source§fn from(value: &'__derive_more_into Secp256k1RecoverableSignature) -> Self
fn from(value: &'__derive_more_into Secp256k1RecoverableSignature) -> Self
Converts to this type from the input type.
Source§impl From<(&Signature<Secp256k1>, RecoveryId)> for Secp256k1RecoverableSignature
impl From<(&Signature<Secp256k1>, RecoveryId)> for Secp256k1RecoverableSignature
Source§impl From<(Signature<Secp256k1>, RecoveryId)> for Secp256k1RecoverableSignature
impl From<(Signature<Secp256k1>, RecoveryId)> for Secp256k1RecoverableSignature
Source§impl From<Secp256k1RecoverableSignature> for [u8; 65]
impl From<Secp256k1RecoverableSignature> for [u8; 65]
Source§fn from(value: Secp256k1RecoverableSignature) -> Self
fn from(value: Secp256k1RecoverableSignature) -> Self
Converts to this type from the input type.
Source§impl Hash for Secp256k1RecoverableSignature
impl Hash for Secp256k1RecoverableSignature
Source§impl JsonSchema for Secp256k1RecoverableSignature
impl JsonSchema for Secp256k1RecoverableSignature
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl Ord for Secp256k1RecoverableSignature
impl Ord for Secp256k1RecoverableSignature
Source§fn cmp(&self, other: &Secp256k1RecoverableSignature) -> Ordering
fn cmp(&self, other: &Secp256k1RecoverableSignature) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Secp256k1RecoverableSignature
impl PartialEq for Secp256k1RecoverableSignature
Source§fn eq(&self, other: &Secp256k1RecoverableSignature) -> bool
fn eq(&self, other: &Secp256k1RecoverableSignature) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for Secp256k1RecoverableSignature
impl PartialOrd for Secp256k1RecoverableSignature
Source§impl Serialize for Secp256k1RecoverableSignaturewhere
Self: Display,
impl Serialize for Secp256k1RecoverableSignaturewhere
Self: Display,
Source§impl TryFrom<&Secp256k1RecoverableSignature> for (Signature, RecoveryId)
impl TryFrom<&Secp256k1RecoverableSignature> for (Signature, RecoveryId)
Source§impl TryFrom<&Secp256k1RecoverableSignature> for Signature
impl TryFrom<&Secp256k1RecoverableSignature> for Signature
Source§impl TryFrom<Secp256k1RecoverableSignature> for (Signature, RecoveryId)
impl TryFrom<Secp256k1RecoverableSignature> for (Signature, RecoveryId)
Source§impl TryFrom<Secp256k1RecoverableSignature> for Signature
impl TryFrom<Secp256k1RecoverableSignature> for Signature
impl Copy for Secp256k1RecoverableSignature
impl Eq for Secp256k1RecoverableSignature
impl StructuralPartialEq for Secp256k1RecoverableSignature
Auto Trait Implementations§
impl Freeze for Secp256k1RecoverableSignature
impl RefUnwindSafe for Secp256k1RecoverableSignature
impl Send for Secp256k1RecoverableSignature
impl Sync for Secp256k1RecoverableSignature
impl Unpin for Secp256k1RecoverableSignature
impl UnsafeUnpin for Secp256k1RecoverableSignature
impl UnwindSafe for Secp256k1RecoverableSignature
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> ToHex for T
impl<T> ToHex for T
Source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Lower case
letters are used (e.g. f9b4ca)Source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Upper case
letters are used (e.g. F9B4CA)