Fixup README doc test

This commit is contained in:
Sarah Jamie Lewis 2021-02-02 16:21:14 -08:00
parent c1ce746da8
commit 1084336c09
1 changed files with 2 additions and 1 deletions

View File

@ -125,7 +125,7 @@ When enabled with the `entangled` feature the `FuzzyPublicKey::generate_entangle
allows you to generate tags that will validate against **multiple** detection keys from **distinct public keys** and
opens up applications like **multiple broadcast** and **deniable sending**.
#[cfg(feature = "entangled")]
use fuzzytags::{FuzzySecretKey, FuzzyPublicKey};
let secret_key_1 = FuzzySecretKey::generate(24);
let secret_key_2 = FuzzySecretKey::generate(24);
@ -133,6 +133,7 @@ opens up applications like **multiple broadcast** and **deniable sending**.
let public_key_2 = secret_key_2.public_key(); // give this to a sender
// Will validate for detection keys derived from both secret_key_1 and secret_key_2 up
// to n=8
#[cfg(feature = "entangled")]
let tag = FuzzyPublicKey::generate_entangled_tag(vec![public_key_1,public_key_2], 8);
## Benchmarks