Trait sbd_client::Crypto
source · 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.