pub trait Crypto { // Required methods fn pub_key(&self) -> &[u8; 32]; fn sign(&self, nonce: &[u8]) -> Result<[u8; 64]>; }
Crypto to use. Note, the pair should be fresh for each new connection.
The pubkey.
Sign the nonce.