Trait sawtooth_sdk::signing::PrivateKey
source · [−]pub trait PrivateKey {
fn get_algorithm_name(&self) -> &str;
fn as_hex(&self) -> String;
fn as_slice(&self) -> &[u8]ⓘ;
}
Expand description
A private key instance. The underlying content is dependent on implementation.
Required methods
fn get_algorithm_name(&self) -> &str
fn get_algorithm_name(&self) -> &str
Returns the algorithm name used for this private key.