[−][src]Struct mundane::public::ec::ecdsa::EcdsaSignature
A DER-encoded ECDSA signature.
Methods
impl<C: PCurve, H: Hasher + EcdsaHash<C>> EcdsaSignature<C, H>
[src]
#[must_use]
pub fn from_bytes(bytes: &[u8]) -> EcdsaSignature<C, H>
[src]
Constructs an EcdsaSignature
from raw bytes.
#[must_use]
pub fn bytes(&self) -> &[u8]
[src]
Gets the raw bytes of this EcdsaSignature
.
Trait Implementations
impl<C: PCurve, H: Hasher + EcdsaHash<C>> Signature for EcdsaSignature<C, H>
[src]
type PrivateKey = EcPrivKey<C>
The private key type used to generate this signature.
fn sign(
key: &EcPrivKey<C>,
message: &[u8]
) -> Result<EcdsaSignature<C, H>, Error>
[src]
key: &EcPrivKey<C>,
message: &[u8]
) -> Result<EcdsaSignature<C, H>, Error>
fn is_valid(&self, key: &EcPubKey<C>, message: &[u8]) -> bool
[src]
impl<C: PCurve, H: Hasher + EcdsaHash<C>> Debug for EcdsaSignature<C, H>
[src]
Auto Trait Implementations
impl<C, H> Send for EcdsaSignature<C, H> where
C: Send,
H: Send,
C: Send,
H: Send,
impl<C, H> Unpin for EcdsaSignature<C, H> where
C: Unpin,
H: Unpin,
C: Unpin,
H: Unpin,
impl<C, H> Sync for EcdsaSignature<C, H> where
C: Sync,
H: Sync,
C: Sync,
H: Sync,
impl<C, H> RefUnwindSafe for EcdsaSignature<C, H> where
C: RefUnwindSafe,
H: RefUnwindSafe,
C: RefUnwindSafe,
H: RefUnwindSafe,
impl<C, H> UnwindSafe for EcdsaSignature<C, H> where
C: UnwindSafe,
H: UnwindSafe,
C: UnwindSafe,
H: UnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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,