Struct ring_compat::signature::ed25519::SigningKey[][src]

pub struct SigningKey(_);
This is supported on crate feature signature only.

Ed25519 signing key.

Implementations

impl SigningKey[src]

pub const SIZE: usize[src]

Size of a raw SigningKey (a.k.a. seed) in bytes.

pub fn from_seed(seed: &[u8]) -> Result<Self, Error>[src]

Create a new SigningKey from an unexpanded seed value (32-bytes).

pub fn from_pkcs8(pkcs8_key: &[u8]) -> Result<Self, Error>[src]

Create a new SigningKey from a PKCS#8 encoded key.

pub fn verify_key(&self) -> VerifyingKey[src]

Get the VerifyingKey for this SigningKey.

Trait Implementations

impl From<&'_ SigningKey> for VerifyingKey[src]

impl Signer<Signature> for SigningKey[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.