qtum/consensus/mod.rs
1// SPDX-License-Identifier: CC0-1.0
2
3//! Bitcoin consensus.
4//!
5//! This module defines structures, functions, and traits that are needed to
6//! conform to Bitcoin consensus.
7//!
8
9pub mod encode;
10pub mod params;
11
12pub use self::encode::{Encodable, Decodable, WriteExt, ReadExt};
13pub use self::encode::{serialize, deserialize, deserialize_partial};
14pub use self::params::Params;
15
16#[cfg(feature = "serde")]
17#[cfg_attr(docsrs, doc(cfg(feature = "serde")))]
18pub mod serde;