pub trait SigningKey {
type Hasher: HashImpl;
// Required methods
fn sign(&self, input: impl Writable) -> Result<Vec<u8>>;
fn algorithm(&self) -> Algorithm;
// Provided method
fn hash(&self, data: impl Writable) -> HashOutput { ... }
}
Required Associated Types§
Required Methods§
Provided Methods§
fn hash(&self, data: impl Writable) -> HashOutput
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.