Crate bitcoinconsensus

Expand description

This project builds the libbitcoinconsensus library from Bitcoin’s C++ sources using Cargo and provides Rust bindings to its API.

Enums§

Error
Errors returned by libbitcoinconsensus (see github.com/bitcoin/bitcoin/doc/shared-libraries.md).

Constants§

VERIFY_ALL
VERIFY_CHECKLOCKTIMEVERIFY
Enable CHECKLOCKTIMEVERIFY (BIP65).
VERIFY_CHECKSEQUENCEVERIFY
Enable CHECKSEQUENCEVERIFY (BIP112).
VERIFY_DERSIG
Enforce strict DER (BIP66) compliance.
VERIFY_NONE
Do not enable any verification.
VERIFY_NULLDUMMY
Enforce NULLDUMMY (BIP147).
VERIFY_P2SH
Evaluate P2SH (BIP16) subscripts.
VERIFY_WITNESS
Enable WITNESS (BIP141).

Functions§

bitcoinconsensus_verify_script_with_amount
Verifies that the transaction input correctly spends the previous output, considering any additional constraints specified by flags.
bitcoinconsensus_version
Returns libbitcoinconsensus version.
height_to_flags
Computes flags for soft fork activation heights on the Bitcoin network.
verify
Verifies a single spend (input) of a Bitcoin transaction.
verify_with_flags
Same as verify but with flags that turn past soft fork features on or off.
version
Returns libbitcoinconsensus version.