Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script execution via rust-bitcoin-scriptexec #46

Open
shesek opened this issue May 27, 2024 · 0 comments
Open

Script execution via rust-bitcoin-scriptexec #46

shesek opened this issue May 27, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@shesek
Copy link
Owner

shesek commented May 27, 2024

https://github.com/BitVM/rust-bitcoin-scriptexec

The API for simple scripts could look something like: script::exec(`1 1 OP_ADD`) == [2]

Or with a witness stack: script::exec(`2 OP_ADD`, [3]) == [5]

Or with tx input context for signature operations: script::exec(`$alice_pk OP_CHECKSIG`, [$alice_sig], $tx:5)

@shesek shesek added the enhancement New feature or request label May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant