pub trait PrivateKey {
    fn get_algorithm_name(&self) -> &str;
fn as_hex(&self) -> String;
fn as_slice(&self) -> &[u8]
Notable traits for &'_ [u8]
impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
; }
Expand description

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

Required methods

Returns the algorithm name used for this private key.

Return the private key encoded as a hex string.

Return the private key bytes.

Implementors