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

Validate script input #34

Open
xhliu opened this issue Nov 8, 2020 · 1 comment
Open

Validate script input #34

xhliu opened this issue Nov 8, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@xhliu
Copy link
Collaborator

xhliu commented Nov 8, 2020

This locking script can run, but shouldn't bcoz of 2c[0] 21 2c[1]. We can validate here or at bsv.
OP_NOP 21 2c[0] 21 2c[1] OP_0 OP_0 OP_3 OP_0 OP_SUB OP_PICK OP_2 OP_ROLL OP_DROP OP_1 OP_ROLL OP_3 OP_1 OP_SUB OP_PICK OP_1 OP_ROLL OP_DROP OP_NOP OP_1 OP_0 OP_SUB OP_PICK 21 OP_NUMEQUAL OP_VERIFY OP_1 OP_1 OP_SUB OP_PICK 2c OP_NUMEQUAL OP_NIP OP_NIP OP_NIP OP_NIP OP_NIP OP_NIP

@xhliu xhliu added the bug Something isn't working label Nov 8, 2020
@xhliu
Copy link
Collaborator Author

xhliu commented Jan 6, 2021

or it contains uninstantiated vars
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant