Struct safe_crypto::SecretSignKey [−][src]
pub struct SecretSignKey { /* fields omitted */ }
Reference counted secret signing key used to verify signatures previously signed with
PublicSignKey
.
Methods
impl SecretSignKey
[src]
impl SecretSignKey
pub fn from_bytes(secret_key: [u8; 64]) -> Self
[src]
pub fn from_bytes(secret_key: [u8; 64]) -> Self
Construct from bytes. Useful when it was serialised before.
pub fn into_bytes(self) -> [u8; 64]
[src]
pub fn into_bytes(self) -> [u8; 64]
Get the inner secret key representation.
pub fn sign_detached(&self, data: &[u8]) -> Signature
[src]
pub fn sign_detached(&self, data: &[u8]) -> Signature
Produces the detached signature from the data
.
Afterwards the returned Signature
can be used to verify the authenticity of data
.
Trait Implementations
impl Debug for SecretSignKey
[src]
impl Debug for SecretSignKey
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for SecretSignKey
[src]
impl PartialEq for SecretSignKey
fn eq(&self, other: &SecretSignKey) -> bool
[src]
fn eq(&self, other: &SecretSignKey) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &SecretSignKey) -> bool
[src]
fn ne(&self, other: &SecretSignKey) -> bool
This method tests for !=
.
impl Eq for SecretSignKey
[src]
impl Eq for SecretSignKey
impl Clone for SecretSignKey
[src]
impl Clone for SecretSignKey
fn clone(&self) -> SecretSignKey
[src]
fn clone(&self) -> SecretSignKey
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for SecretSignKey
impl Send for SecretSignKey
impl Sync for SecretSignKey
impl Sync for SecretSignKey