This crate provides a simple interface for interacting with Bitcoin mainnet, testnet, and signet.
Implementations of the
TxBuilder for Bitcoin transactions. This builder automatically
selects between Legacy and Witness transactions based on its inputs. The user may also specify
the desired type using
Holds Bitcoin-specific encoding tools. This includes an
AddressEncoder that handles bech32
and base58check addresses, as well as newtypes that hold the Bitcoin network prefix
information for addresses.
This module holds
MarkedDigest types used by Bitcoin transactions. Currently we represent
WTXIDs. In the future we may also represent sighash digests this way.
bitcoin::nets module cotains Bitcoin network definitions. These are the main interface
for accessing the library.
Holds Bitcoin specific types, including scripts, witnesses, inputs, outputs, and transactions.
Transaction trait to maintain a type distinction between Legacy and Witness
transactions (and allow conversion from one to the other).