pub struct Secp256k1;
Trait Implementations§
Source§impl Curve for Secp256k1
impl Curve for Secp256k1
Source§type Signature = [u8; 65]
type Signature = [u8; 65]
Concatenated r
, s
and v
(recovery byte).
Note: Ethereum clients shift the recovery byte and this logic might depend on chain id, so clients must rollback these changes to v ∈ {0, 1}. References:
Source§type VerifyingKey = ()
type VerifyingKey = ()
ECDSA signatures are recoverable, so you don’t need a verifying key
type PublicKey = [u8; 64]
fn verify( [..signature, v]: &Self::Signature, hash: &Self::Message, _verifying_key: &(), ) -> Option<Self::PublicKey>
Auto Trait Implementations§
impl Freeze for Secp256k1
impl RefUnwindSafe for Secp256k1
impl Send for Secp256k1
impl Sync for Secp256k1
impl Unpin for Secp256k1
impl UnwindSafe for Secp256k1
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