Crate subcoin_script

source ·
Expand description

§Bitcoin Script Interpreter

This crate implements a Bitcoin Script interpreter in Rust. It provides functionality to interpret and evaluate Bitcoin scripts, similar to the Bitcoin Core implementation, but with a focus on readability and compatibility with Rust. Performance optimizations will be pursued in future updates.

§Key Points

  • Some functions are directly ported from Bitcoin Core and may not follow typical Rust idioms. They are intentionally written in a way that is closer to the original C++ code to preserve functionality and logic.

  • Several components, including tests prior to the Taproot upgrade, are ported from the Parity-Bitcoin project to reuse their valuable work for Bitcoin’s older features and standards.

§Caveats

This library is not widely used and lacks comprehensive tests. As a result, never use it for production use! Please use it with caution, and only in non-critical applications or for experimentation purposes.

Structs§

Enums§

  • Script error type.
  • Represents different signature verification schemes used in Bitcoin
  • Error types related to signature verification.

Traits§

Functions§

Type Aliases§