lightning-docs
lightning-docs copied to clipboard
scriptSig elements order in HTLC success tx
I am trying to understand why the order of elements in the scriptSig of the HTLC success transaction is the following(remotePub|localPub|preimage):
although the HTLC output locking script expects the order remotePub|preimage|localPub:
What am I missing?
checkmultisig checks signatures in the same order as the supplied pubkeys, like so: 0 remotesig localsig 2 remotekey localkey 2 checkmultisig