[][src]Struct xaynet::crypto::SecretSigningKey

pub struct SecretSigningKey(_);

An Ed25519 secret key for signatures.

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


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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized

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

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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>, 

impl<T> WithSubscriber for T[src]