Struct sbp::messages::signing::ecdsa_signature::ECDSASignature
source · pub struct ECDSASignature {
pub len: u8,
pub data: [u8; 72],
}
Expand description
ECDSA signature
Fields§
§len: u8
Number of bytes to use of the signature field. The DER encoded signature has a maximum size of 72 bytes but can vary between 70 and 72 bytes in length.
data: [u8; 72]
DER encoded ECDSA signature for the messages using SHA-256 as the digest algorithm.
Trait Implementations§
source§impl Clone for ECDSASignature
impl Clone for ECDSASignature
source§fn clone(&self) -> ECDSASignature
fn clone(&self) -> ECDSASignature
Returns a copy 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<'de> Deserialize<'de> for ECDSASignature
impl<'de> Deserialize<'de> for ECDSASignature
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 PartialEq for ECDSASignature
impl PartialEq for ECDSASignature
source§fn eq(&self, other: &ECDSASignature) -> bool
fn eq(&self, other: &ECDSASignature) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ECDSASignature
impl Serialize 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