Crate libzcash_script

Crate libzcash_script 

Source
Expand description

Zcash transparent script implementations.

Modules§

cxx
Rust bindings for Zcash transparent scripts.

Structs§

ComparisonInterpreter
A tag to indicate that both the C++ and Rust implementations of zcash_script should be used, with their results compared.
CxxInterpreter
An interpreter that calls the original C++ implementation via FFI.
RustInterpreter
This is the pure Rust interpreter, which doesn’t use the FFI.

Enums§

Error
This extends ScriptError with cases that can only occur when using the C++ implementation.

Traits§

ZcashScript
The external API of zcash_script. This is defined to make it possible to compare the C++ and Rust implementations.

Functions§

cxx_rust_comparison_interpreter
An interpreter that compares the results of the C++ and Rust implementations. In the case where they differ, a warning will be logged, and the C++ interpreter will be treated as the correct result.

Type Aliases§

AnnError
A verification error annotated with the script component it occurred in.