Is there a rust crate that can be used to evaluate bitcoin script? #1313
-
I'd like to write a simple command-line utility that evaluates scripts, for learning purposes. (Also, if such a command-line utility already exists, pointers to that would be great too.) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
You may want rust-bitcoinconsensus, which wraps the Bitcoin Core script engine. |
Beta Was this translation helpful? Give feedback.
-
This is not rust-based but very good https://github.com/bitcoin-core/btcdeb |
Beta Was this translation helpful? Give feedback.
-
This is porbably not what you are looking for, but there is an interpreter in the miniscript library.
It outputs an iterator over SatisfiedConstraint. Given a script, it outputs all keys, timelocks, and hashlocks that were used in the satisfaction for the given (mini)script. |
Beta Was this translation helpful? Give feedback.
You may want rust-bitcoinconsensus, which wraps the Bitcoin Core script engine.