[][src]Trait sawtooth_sdk::signing::PrivateKey

pub trait PrivateKey {
    fn get_algorithm_name(&self) -> &str;
fn as_hex(&self) -> String;
fn as_slice(&self) -> &[u8]; }

A private key instance. The underlying content is dependent on implementation.

Required methods

fn get_algorithm_name(&self) -> &str

Returns the algorithm name used for this private key.

fn as_hex(&self) -> String

Return the private key encoded as a hex string.

fn as_slice(&self) -> &[u8]

Return the private key bytes.

Loading content...

Implementors

impl PrivateKey for Secp256k1PrivateKey[src]

Loading content...