pub struct EcdsaSignature {
pub(crate) expanded_sig: Vec<u8>,
}Expand description
A signature for ECDSA cryptographic operations.
This struct encapsulates the components of an ECDSA signature, which include the ‘r’ and ‘s’ values as byte arrays, a ‘v’ recovery id, and the signature in DER encoding. The ‘r’ and ‘s’ components are the main parts of the signature, ‘v’ is used to recover the public key from the signature, and the DER encoding is used for compatibility with systems that require the signature in ASN.1/DER format.
Fields§
§expanded_sig: Vec<u8>Implementations§
Source§impl EcdsaSignature
impl EcdsaSignature
Sourcepub(crate) const FIELD_SIZE: usize = 32usize
pub(crate) const FIELD_SIZE: usize = 32usize
The size of a field element in bytes (32 bytes for secp256k1).
Sourcepub(crate) const MIN_SIZE: usize = 73usize
pub(crate) const MIN_SIZE: usize = 73usize
Minimum size: 2 field elements + minimum 8 DER bytes + 1 v byte.
Trait Implementations§
Source§impl Clone for EcdsaSignature
impl Clone for EcdsaSignature
Source§fn clone(&self) -> EcdsaSignature
fn clone(&self) -> EcdsaSignature
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EcdsaSignature
impl Debug for EcdsaSignature
Source§impl FromFFI for EcdsaSignature
impl FromFFI for EcdsaSignature
Source§impl PartialEq for EcdsaSignature
impl PartialEq for EcdsaSignature
impl Eq for EcdsaSignature
impl StructuralPartialEq for EcdsaSignature
Auto Trait Implementations§
impl Freeze for EcdsaSignature
impl RefUnwindSafe for EcdsaSignature
impl Send for EcdsaSignature
impl Sync for EcdsaSignature
impl Unpin for EcdsaSignature
impl UnwindSafe for EcdsaSignature
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