Crate bitcoinconsensus
source ·Expand description
This project builds the libbitcoinconsensus
library from Bitcoin’s C++
sources using Cargo and provides Rust bindings to its API.
Enums
- Errors returned by
libbitcoinconsensus
(see github.com/bitcoin/bitcoin/doc/shared-libraries.md).
Constants
- Enable CHECKLOCKTIMEVERIFY (BIP65).
- Enable CHECKSEQUENCEVERIFY (BIP112).
- Enforce strict DER (BIP66) compliance.
- Do not enable any verification.
- Enforce NULLDUMMY (BIP147).
- Evaluate P2SH (BIP16) subscripts.
- Enable WITNESS (BIP141).
Functions
- Verifies that the transaction input correctly spends the previous output, considering any additional constraints specified by flags.
- Returns
libbitcoinconsensus
version. - Computes flags for soft fork activation heights on the Bitcoin network.
- Verifies a single spend (input) of a Bitcoin transaction.
- Same as verify but with flags that turn past soft fork features on or off.
- Returns
libbitcoinconsensus
version.