[][src]Struct safe_crypto::SecretSignKey

pub struct SecretSignKey { /* fields omitted */ }

Reference counted secret signing key used to verify signatures previously signed with PublicSignKey.

Methods

impl SecretSignKey[src]

pub fn from_bytes(secret_key: [u8; 64]) -> Self[src]

Construct from bytes. Useful when it was serialised before.

pub fn into_bytes(self) -> [u8; 64][src]

Get the inner secret key representation.

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

Produces the detached signature from the data.

Afterwards the returned Signature can be used to verify the authenticity of data.

Trait Implementations

impl Eq for SecretSignKey[src]

impl Clone for SecretSignKey[src]

impl PartialEq<SecretSignKey> for SecretSignKey[src]

impl Debug for SecretSignKey[src]

impl Serialize for SecretSignKey[src]

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

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> DebugAny for T where
    T: Any + Debug

impl<T> CloneAny for T where
    T: Clone + Any

impl<T> UnsafeAny for T where
    T: Any