This crate provides a simple interface for interacting with Bitcoin mainnet,
testnet, and signet.
builder | 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 build_legacy or build_witness .
|
enc | 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.
|
hashes | This module holds MarkedDigest types used by Bitcoin transactions. Currently we represent
only TXID s and WTXID s. In the future we may also represent sighash digests this way.
|
nets | The bitcoin::nets module cotains Bitcoin network definitions. These are the main interface
for accessing the library.
|
prelude | Common re-exports
|
types | Holds Bitcoin specific types, including scripts, witnesses, inputs, outputs, and transactions.
Extends the Transaction trait to maintain a type distinction between Legacy and Witness
transactions (and allow conversion from one to the other).
|
Encoder | The default encoder, selected by feature flag
|
Net | The default network, selected by feature flag
|