[][src]Struct xaynet_core::crypto::SecretSigningKey

pub struct SecretSigningKey(_);

An Ed25519 secret key for signatures.

When this goes out of scope, its contents will be zeroed out.

Implementations

impl SecretSigningKey[src]

pub fn sign_detached(&self, m: &[u8]) -> Signature[src]

Signs a message m with this secret key.

pub fn public_key(&self) -> PublicSigningKey[src]

Computes the corresponding public key for this secret key.

Trait Implementations

impl AsMut<SecretKey> for SecretSigningKey[src]

impl AsRef<SecretKey> for SecretSigningKey[src]

impl ByteObject for SecretSigningKey[src]

impl Clone for SecretSigningKey[src]

impl Debug for SecretSigningKey[src]

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

impl Eq for SecretSigningKey[src]

impl From<SecretKey> for SecretSigningKey[src]

impl PartialEq<SecretSigningKey> for SecretSigningKey[src]

impl Serialize for SecretSigningKey[src]

impl StructuralEq for SecretSigningKey[src]

impl StructuralPartialEq for SecretSigningKey[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> 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> 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,