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

Curious script thing to implement #14

Open
LeoNero opened this issue Aug 24, 2021 · 0 comments
Open

Curious script thing to implement #14

LeoNero opened this issue Aug 24, 2021 · 0 comments

Comments

@LeoNero
Copy link
Member

LeoNero commented Aug 24, 2021

It seems like

OP_DUP OP_HASH160 14 aaabcdefabbaabbaabbaabbaabbaabbaabbaabba OP_EQUALVERIFY OP_CHECKSIG

does not need the 14, althoug the 14 appears in the hex version of the script.

For example, see the last example in the outputs of https://www.blockchain.com/btc/tx/0719e2b0f480cf6c106fb658fdff67b640b090a44f57b9c351adb3de78a51134:

OP_DUP OP_HASH160 de37c03db757ad0b64b2d3c73b033205a9309d11 OP_EQUALVERIFY OP_CHECKSIG

is translated to

76a914de37c03db757ad0b64b2d3c73b033205a9309d1188ac

I don't think it is necessary for us to fix our Vec<Script> and script! since, in general, it seems like there is no convention in the human-readable version of Script, since the hex version is what matters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant