Struct exonum::crypto::SecretKey [] [src]

pub struct SecretKey(_);

Ed25519 secret key used to create digital signatures over messages.

Examples

use exonum::crypto;

let (_, secret_key) = crypto::gen_keypair();

Methods

impl SecretKey
[src]

[src]

Creates a new instance filled with zeros.

impl SecretKey
[src]

[src]

Creates a new instance from bytes array.

[src]

Creates a new instance from bytes slice.

[src]

Returns the hex representation of the binary data. Lower case letters are used (e.g. f9b4ca).

Trait Implementations

impl Clone for SecretKey
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for SecretKey
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for SecretKey
[src]

impl Debug for SecretKey
[src]

[src]

Formats the value using the given formatter. Read more

impl ToHex for SecretKey
[src]

[src]

Writes the hex string representing self into w. Lower case letters are used (e.g. f9b4ca). Read more

[src]

Writes the hex string representing self into w. Upper case letters are used (e.g. F9B4CA). Read more

impl FromHex for SecretKey
[src]

[src]

Creates an instance of type Self from the given hex string, or fails with a custom error type. Read more

impl Serialize for SecretKey
[src]

[src]

Serialize this value into the given Serde serializer. Read more

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

[src]

Deserialize this value from the given Serde deserializer. Read more

impl Index<Range<usize>> for SecretKey
[src]

The returned type after indexing.

Important traits for &'a mut [u8]
[src]

Performs the indexing (container[index]) operation.

impl Index<RangeTo<usize>> for SecretKey
[src]

The returned type after indexing.

Important traits for &'a mut [u8]
[src]

Performs the indexing (container[index]) operation.

impl Index<RangeFrom<usize>> for SecretKey
[src]

The returned type after indexing.

Important traits for &'a mut [u8]
[src]

Performs the indexing (container[index]) operation.

impl Index<RangeFull> for SecretKey
[src]

The returned type after indexing.

Important traits for &'a mut [u8]
[src]

Performs the indexing (container[index]) operation.

Auto Trait Implementations

impl Send for SecretKey

impl Sync for SecretKey