From d6bd79b6c6ddec047be9c1910862e7f388501ea0 Mon Sep 17 00:00:00 2001 From: "Dr. Capybara" Date: Tue, 17 Oct 2023 02:50:31 -0700 Subject: [PATCH] docs --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 7614460..e2778fc 100644 --- a/README.md +++ b/README.md @@ -101,6 +101,10 @@ let pw = get_random_bytes(64); let key_pair = KeyPair::new(&pw, "test key".to_string(), E448, 512); // Sign with 512 bits of security msg.sign(&key_pair, 512); +// verify signature +msg.verify(&key_pair.pub_key, 512); +// assert correctness +assert!(msg.op_result.unwrap()); ``` ## Benches