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

scriptSig elements order in HTLC success tx #26

Open
hieblmi opened this issue Dec 2, 2022 · 1 comment
Open

scriptSig elements order in HTLC success tx #26

hieblmi opened this issue Dec 2, 2022 · 1 comment

Comments

@hieblmi
Copy link

hieblmi commented Dec 2, 2022

I am trying to understand why the order of elements in the scriptSig of the HTLC success transaction is the following(remotePub|localPub|preimage):

image

although the HTLC output locking script expects the order remotePub|preimage|localPub:

image

What am I missing?

@hieblmi hieblmi changed the title Script sig order in HTLC success tx scriptSig order in HTLC success tx Dec 2, 2022
@hieblmi hieblmi changed the title scriptSig order in HTLC success tx scriptSig elements order in HTLC success tx Dec 2, 2022
@antonilol
Copy link
Contributor

antonilol commented Dec 2, 2022

checkmultisig checks signatures in the same order as the supplied pubkeys, like so:
0 remotesig localsig 2 remotekey localkey 2 checkmultisig

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

2 participants