Trait PrivateKeyExtension

Source
pub trait PrivateKeyExtension
where Self: Sized,
{ // Required methods fn to_vec(&self) -> Vec<u8> ; fn from_slice(slice: &[u8]) -> Result<Self, CryptoError>; }

Required Methods§

Source

fn to_vec(&self) -> Vec<u8>

Source

fn from_slice(slice: &[u8]) -> Result<Self, CryptoError>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§