#![deny(
non_upper_case_globals,
non_camel_case_types,
non_snake_case,
unused_mut,
unused_imports,
dead_code,
)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#[macro_use]
extern crate amplify;
#[macro_use]
extern crate strict_encoding;
#[macro_use]
extern crate commit_verify;
#[cfg(feature = "serde")]
#[macro_use]
extern crate serde_crate as serde;
extern crate core;
pub extern crate secp256k1;
mod block;
pub mod opcodes;
mod script;
mod segwit;
mod taproot;
mod tx;
mod sigtypes;
mod util;
mod weights;
#[cfg(feature = "stl")]
pub mod stl;
mod coding;
pub use block::{BlockHash, BlockHeader};
pub use coding::{
ByteStr, ConsensusDataError, ConsensusDecode, ConsensusDecodeError, ConsensusEncode, LenVarInt,
VarInt, VarIntArray,
};
pub use script::{OpCode, RedeemScript, ScriptBytes, ScriptPubkey, SigScript};
pub use segwit::{SegwitError, Witness, WitnessProgram, WitnessScript, WitnessVer, Wtxid};
pub use sigtypes::{Bip340Sig, LegacySig, SigError, SighashFlag, SighashType};
pub use taproot::{
ControlBlock, FutureLeafVer, InternalPk, IntoTapHash, InvalidLeafVer, InvalidParityValue,
InvalidPubkey, LeafScript, LeafVer, OutputPk, Parity, TapBranchHash, TapCode, TapLeafHash,
TapMerklePath, TapNodeHash, TapScript, TaprootPk, TAPROOT_ANNEX_PREFIX, TAPROOT_LEAF_MASK,
TAPROOT_LEAF_TAPSCRIPT,
};
pub use tx::{
LockTime, Outpoint, OutpointParseError, Sats, SeqNo, Tx, TxIn, TxOut, TxParseError, TxVer,
Txid, Vout, LOCKTIME_THRESHOLD,
};
pub use util::{Chain, ChainParseError, NonStandardValue};
pub use weights::{VBytes, Weight, WeightUnits};
pub const LIB_NAME_BITCOIN: &str = "Bitcoin";