Skip to main content

wsts/
lib.rs

1#![deny(missing_docs)]
2#![doc = include_str!("../README.md")]
3// Included so that the examples in USAGE.md are compiled as doctests;
4// otherwise nothing keeps them in step with the API.
5#![doc = include_str!("../USAGE.md")]
6
7/// test bitcoin/taproot integration using libbitcoin_consensus
8#[cfg(any(test, feature = "testing"))]
9pub mod btc;
10/// Types which are common to both v1 and v2
11#[allow(clippy::op_ref)]
12pub mod common;
13/// Functions to perform various computations needed for v1 and v2
14pub mod compute;
15/// Errors which are returned from objects and functions
16pub mod errors;
17/// Network messages
18pub mod net;
19/// Schnorr utility types
20#[allow(clippy::op_ref)]
21pub mod schnorr;
22/// State machines
23#[allow(clippy::result_large_err)]
24pub mod state_machine;
25/// Functions for doing BIP-340 schnorr proofs and other taproot actions
26pub mod taproot;
27/// Traits which are used for v1 and v2
28pub mod traits;
29/// Utilities for hashing and encryption
30pub mod util;
31/// Version 1 of WSTS, which encapsulates a number of parties using vanilla FROST
32#[cfg(feature = "with_v1")]
33#[allow(clippy::op_ref)]
34pub mod v1;
35/// Version 2 of WSTS, in which each party holds one polynomial and one nonce but may control many keys
36#[allow(clippy::op_ref)]
37pub mod v2;
38/// Shamir secret sharing, used in distributed key generation
39pub mod vss;
40
41pub use p256k1 as curve;