-
Notifications
You must be signed in to change notification settings - Fork 504
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
fix wrong display of other sighash types + p2sh redeemScript when <=4 bytes + consistency with esplora backend + tapscript fixes #1502
Conversation
it now gives identical output to esplora, tested with the following TXs (testnet): 88710a9a6751827490f260e307757543f533c0f18bcd6865794713d263d5f5a4 446b2aad074de94efa28a1e82d2e6016dcb8a8ca38aca1a5a8eac6ef54e56a2e 4cfc410092e9514c14f48b61e20d2d3baf540ae7e981a821dd8c05dd4b7cd591 4b55dde38173174ab09e5571ebffffca798ba11143d28b9770600ff376dc778a
215dcca
to
dfb5ba5
Compare
a small change was needed to get this working: |
there were also some inconsistencies between output script and redeemScript/witnessScript because the output script came in ASM from bitcoin core, and the redeemScript/witnessScript was converted to ASM with bitcoinjs-lib, which output different things for the same input. Now every script is passed in as hex and converted to ASM with bitcoinjs-lib |
f8fb61d
to
53d68a3
Compare
frontend/src/app/components/transactions-list/transactions-list.component.html
Show resolved
Hide resolved
53d68a3 adds |
ab0f6a0
to
27d6ffc
Compare
27d6ffc
to
b912753
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested ACK
tx: f06e7c91f741c0320a6aed477aa4b702c4b592b3ffa6089f51f90d9cab9e99e1
more info on sighash types: https://en.bitcoin.it/wiki/OP_CHECKSIG#How_it_works
before:
after:
other bug:
tx: 7d5e417287b32a166127042cd8fc2e2bf6205cc718c333e6f37778c358fb5307
before:
after:
just found out this fixes #1260