pub struct ES256KR;
Expand description
ECDSA using secp256k1 (K-256) and SHA-256 with a recovery bit.
ES256K-R
is similar to ES256K
with the recovery bit appended, making
the signature 65 bytes instead of 64. The recovery bit is used to
extract the public key from the signature.
See: https://github.com/decentralized-identity/EcdsaSecp256k1RecoverySignature2020#es256k-r
Trait Implementations§
Source§impl From<ES256KR> for AlgorithmInstance
impl From<ES256KR> for AlgorithmInstance
Source§impl SignatureAlgorithmInstance for ES256KR
impl SignatureAlgorithmInstance for ES256KR
Source§impl TryFrom<AlgorithmInstance> for ES256KR
impl TryFrom<AlgorithmInstance> for ES256KR
Source§type Error = UnsupportedAlgorithm
type Error = UnsupportedAlgorithm
The type returned in the event of a conversion error.
impl Copy for ES256KR
impl Eq for ES256KR
impl StructuralPartialEq for ES256KR
Auto Trait Implementations§
impl Freeze for ES256KR
impl RefUnwindSafe for ES256KR
impl Send for ES256KR
impl Sync for ES256KR
impl Unpin for ES256KR
impl UnwindSafe for ES256KR
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more