Expand description

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).

Re-exports

pub use legacy::*;
pub use script::*;
pub use tx::*;
pub use txin::*;
pub use txout::*;
pub use utxo::*;
pub use witness::*;

Modules

Legacy Transactions

Simple types for Bitcoin Script Witness stack datastructures, each of which are treated as opaque, wrapped Vec<u8> instance.

Bitcoin transaction types and associated sighash arguments.

Bitcoin Outpoint, TxIn, and Vin types.

Bitcoin TxOut and Vout types.

UTXO struct. Holds information necessary for signing future txns.

Witness Transactions