pub struct P256;Expand description
P256 (a.k.a. secp256r1) Elliptic Curve Digital Signature Algorithm
Trait Implementations§
Source§impl Curve for P256
impl Curve for P256
Source§impl Signer<P256> for SigningKey
impl Signer<P256> for SigningKey
Source§impl TypedCurve for P256
impl TypedCurve for P256
Source§const CURVE_TYPE: &str = "p256"
const CURVE_TYPE: &str = "p256"
Used as prefix:
<CURVE>:...Source§fn parse_base58<const N: usize>(
s: impl AsRef<str>,
) -> Result<[u8; N], ParseCurveError>
fn parse_base58<const N: usize>( s: impl AsRef<str>, ) -> Result<[u8; N], ParseCurveError>
Decodes bytes from string as
<CURVE>:<base58>Auto Trait Implementations§
impl Freeze for P256
impl RefUnwindSafe for P256
impl Send for P256
impl Sync for P256
impl Unpin for P256
impl UnsafeUnpin for P256
impl UnwindSafe for P256
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<S> SignerExt for S
impl<S> SignerExt for S
Source§fn public_key<C: Curve>(&self) -> C::PublicKeywhere
Self: Signer<C>,
fn public_key<C: Curve>(&self) -> C::PublicKeywhere
Self: Signer<C>,
Get the public key of the signer on a curve
C. Read moreSource§fn sign<C: Curve>(
&self,
msg: &[u8],
) -> impl Future<Output = Result<C::Signature, Self::Error>> + Sendwhere
Self: Signer<C>,
fn sign<C: Curve>(
&self,
msg: &[u8],
) -> impl Future<Output = Result<C::Signature, Self::Error>> + Sendwhere
Self: Signer<C>,
Sign a given message and return a signature. Read more
Source§fn sign_recoverable<C: RecoverableCurve>(
&self,
msg: &[u8],
) -> impl Future<Output = Result<(C::Signature, C::RecoveryId), Self::Error>> + Sendwhere
Self: RecoverableSigner<C>,
fn sign_recoverable<C: RecoverableCurve>(
&self,
msg: &[u8],
) -> impl Future<Output = Result<(C::Signature, C::RecoveryId), Self::Error>> + Sendwhere
Self: RecoverableSigner<C>,
Sign a given message and return a signature along with recovery id. Read more
Source§fn cache_public_key<C: Curve>(self) -> CachePublicKey<C, Self>
fn cache_public_key<C: Curve>(self) -> CachePublicKey<C, Self>
Calculate
.public_key() and cache its value for
further invocations. Read more