1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//! An implementation of [Fuzzy Message Detection][fmd].
//!
//! [fmd]: https://protocol.penumbra.zone/main/crypto/fmd.html
#![deny(clippy::unwrap_used)]
// Requires nightly.
#![cfg_attr(docsrs, feature(doc_auto_cfg))]

mod clue;
mod clue_key;
mod detection;
mod error;
mod hash;
mod hkd;

pub use clue::Clue;
pub use clue_key::{ClueKey, ExpandedClueKey};
pub use detection::DetectionKey;
pub use error::Error;

/// The maximum detection precision, chosen so that the message bits fit in 3 bytes.
pub const MAX_PRECISION: usize = 24;