Skip to main content

Crate bitcoin_rs_script

Crate bitcoin_rs_script 

Source
Expand description

Script verification, sigop counting, sighash caching, and taproot helpers.

§V1 implementation note

Per-script execution delegates to bitcoin::Script::verify_with_flags (Core’s canonical Rust port, audited). The hand-rolled per-opcode dispatcher from PLAN.md Task 3 Step 2 is a follow-up: when introduced, it lives behind a hand-rolled cargo feature and is gated by a parity-vs-bitcoin-crate test. Public surface is stable across the swap.

Re-exports§

pub use interpreter::Interpreter;
pub use interpreter::ScriptError;
pub use interpreter::VerifyFlags;
pub use stack::ScriptItem;
pub use stack::Stack;
pub use stack::StackError;

Modules§

batch
Rayon-backed Schnorr verification helpers.
interpreter
Script verification wrapper.
opcodes
Opcode re-exports and local opcode newtype.
sighash_cache
Signature hash cache wrapper.
sigops
Signature operation counters.
stack
Bounded stack infrastructure for the future hand-rolled interpreter.
taproot
Taproot verification helpers.

Type Aliases§

Script
Borrowed script type from the bitcoin crate.
ScriptBuf
Owned script buffer from the bitcoin crate.
Tx
Project transaction wrapper.
TxOut
Canonical transaction output type.