pub trait PrivateSignatureKey:
Send
+ Sync
+ Sized
+ Clone
+ Debug
+ Eq
+ Hash
+ for<'a> TryFrom<&'a TaggedBase64> {
// Required methods
fn to_bytes(&self) -> Vec<u8> ⓘ;
fn from_bytes(bytes: &[u8]) -> Result<Self>;
fn to_tagged_base64(&self) -> Result<TaggedBase64, Tb64Error>;
}
Expand description
Trait for abstracting private signature key
Required Methods§
Sourcefn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Sourcefn to_tagged_base64(&self) -> Result<TaggedBase64, Tb64Error>
fn to_tagged_base64(&self) -> Result<TaggedBase64, Tb64Error>
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.