Fixup README doc test
This commit is contained in:
parent
c1ce746da8
commit
1084336c09
|
@ -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
|
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**.
|
opens up applications like **multiple broadcast** and **deniable sending**.
|
||||||
|
|
||||||
#[cfg(feature = "entangled")]
|
|
||||||
use fuzzytags::{FuzzySecretKey, FuzzyPublicKey};
|
use fuzzytags::{FuzzySecretKey, FuzzyPublicKey};
|
||||||
let secret_key_1 = FuzzySecretKey::generate(24);
|
let secret_key_1 = FuzzySecretKey::generate(24);
|
||||||
let secret_key_2 = 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
|
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
|
// Will validate for detection keys derived from both secret_key_1 and secret_key_2 up
|
||||||
// to n=8
|
// to n=8
|
||||||
|
#[cfg(feature = "entangled")]
|
||||||
let tag = FuzzyPublicKey::generate_entangled_tag(vec![public_key_1,public_key_2], 8);
|
let tag = FuzzyPublicKey::generate_entangled_tag(vec![public_key_1,public_key_2], 8);
|
||||||
|
|
||||||
## Benchmarks
|
## Benchmarks
|
||||||
|
|
Loading…
Reference in New Issue