6 releases
0.2.7 | Feb 24, 2023 |
---|---|
0.2.6 | Oct 31, 2022 |
0.2.4 | Jan 14, 2022 |
0.2.3 | Dec 16, 2021 |
0.1.0 | May 29, 2021 |
#8 in #themelio
789 downloads per month
Used in 32 crates
(28 directly)
20KB
443 lines
TMelCrypt
Example Usage
use tmelcrypt::{ed25519_keygen, Ed25519PK, Ed25519SK};
let (public_key, secret_key): (Ed25519PK, Ed25519SK) = ed25519_keygen();
let message_byte_vector: Vec<u8> = vec![3];
let signature: Vec<u8> = secret_key.sign(&message_byte_vector);
let was_key_verified: bool = public_key.verify(&message_byte_vector, &signature);
assert_eq!(was_key_verified, true);
Dependencies
~6MB
~135K SLoC