pub trait Crypto {
// Required methods
fn pub_key(&self) -> &[u8; 32];
fn sign(&self, nonce: &[u8]) -> Result<[u8; 64]>;
}Expand description
Crypto to use. Note, the pair should be fresh for each new connection.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".