#![deny(unsafe_code)]
#![warn(missing_docs, rust_2018_idioms)]
#![allow(
clippy::needless_range_loop,
clippy::needless_borrow,
clippy::needless_borrows_for_generic_args
)]
mod error;
#[cfg(feature = "shamir")]
pub mod shamir;
#[cfg(feature = "frost")]
pub mod frost;
#[cfg(feature = "dkg")]
pub mod dkg;
#[cfg(feature = "proactive")]
pub mod proactive;
pub use error::{Result, ThresholdError};
#[cfg(feature = "shamir")]
pub use shamir::{ShamirScheme, Share};
#[cfg(feature = "frost")]
pub use frost::{FrostSigner, FrostVerifier, SigningShare, VerifyingShare};
#[cfg(feature = "dkg")]
pub use dkg::{DkgParticipant, DkgRound1, DkgRound2};
#[cfg(feature = "proactive")]
pub use proactive::{ProactiveRefresh, RefreshShares};
pub mod prelude {
pub use crate::error::{Result, ThresholdError};
#[cfg(feature = "shamir")]
pub use crate::shamir::{ShamirScheme, Share};
#[cfg(feature = "frost")]
pub use crate::frost::{FrostSigner, FrostVerifier};
#[cfg(feature = "dkg")]
pub use crate::dkg::{DkgParticipant, DkgRound1, DkgRound2};
#[cfg(feature = "proactive")]
pub use crate::proactive::{ProactiveRefresh, RefreshShares};
}
pub type Identifier = u16;