[][src]Trait elliptic_curve::secret_key::SecretValue

pub trait SecretValue: Curve {
    type Secret: Into<FieldBytes<Self>> + Zeroize;
    fn from_secret_bytes(bytes: &FieldBytes<Self>) -> Option<Self::Secret>;
}
This is supported on crate feature zeroize only.

Inner value stored by a SecretKey.

Associated Types

type Secret: Into<FieldBytes<Self>> + Zeroize

This is supported on crate feature zeroize only.

Inner secret value

Loading content...

Required methods

fn from_secret_bytes(bytes: &FieldBytes<Self>) -> Option<Self::Secret>

This is supported on crate feature zeroize only.

Parse the secret value from bytes

Loading content...

Implementors

impl<C> SecretValue for C where
    C: Curve + ProjectiveArithmetic,
    FieldBytes<C>: From<Scalar<C>> + for<'a> From<&'a Scalar<C>>,
    Scalar<C>: PrimeField<Repr = FieldBytes<C>> + Zeroize
[src]

type Secret = NonZeroScalar<C>

This is supported on crate feature zeroize only.
Loading content...