lib SOdium + haDOKEN = SODOKEN!
Thin wrapper around libsodium-sys-stable.
use sodoken::*;
let mut pub_key = [0; sign::PUBLICKEYBYTES];
let mut sec_key = LockedArray::new().unwrap();
sign::keypair(&mut pub_key, &mut sec_key.lock()).unwrap();
let mut sig = [0; sign::SIGNATUREBYTES];
sign::sign_detached(&mut sig, b"hello", &sec_key.lock()).unwrap();
assert!(sign::verify_detached(&sig, b"hello", &pub_key));
assert!(!sign::verify_detached(&sig, b"world", &pub_key));