[][src]Struct ed25519_zebra::SigningKey

pub struct SigningKey { /* fields omitted */ }

An Ed25519 signing key.

This is also called a secret key by other implementations.

Implementations

impl SigningKey[src]

pub fn new<R: RngCore + CryptoRng>(rng: R) -> SigningKey[src]

Generate a new signing key.

pub fn sign(&self, msg: &[u8]) -> Signature[src]

Create a signature on msg using this key.

Trait Implementations

impl AsRef<[u8]> for SigningKey[src]

impl Clone for SigningKey[src]

impl Copy for SigningKey[src]

impl Debug for SigningKey[src]

impl<'de> Deserialize<'de> for SigningKey[src]

impl<'a> From<&'a SigningKey> for VerificationKey[src]

impl<'a> From<&'a SigningKey> for VerificationKeyBytes[src]

impl From<[u8; 32]> for SigningKey[src]

impl From<SigningKey> for [u8; 32][src]

impl Serialize for SigningKey[src]

impl<'_> TryFrom<&'_ [u8]> for SigningKey[src]

type Error = Error

The type returned in the event of a conversion error.

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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> ToHex for T where
    T: AsRef<[u8]>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.