This function interprets the locktime for the given transaction, and returns the block height before which this tx cannot be published.
This function interprets the locktime for the given transaction, and returns the block height before which this tx cannot be published. By convention in bitcoin, depending of the value of locktime it might be a number of blocks or a number of seconds since epoch. This function does not support the case when the locktime is a number of seconds that is not way in the past. NB: We use this property in lightning to store data in this field.
the block height before which this tx cannot be published.
the number of confirmations of the tx parent before which it can be published
minimal encoding of a number into a script element: - OP_0 to OP_16 if 0 <= n <= 16 - OP_PUSHDATA(encodeNumber(n)) otherwise
minimal encoding of a number into a script element: - OP_0 to OP_16 if 0 <= n <= 16 - OP_PUSHDATA(encodeNumber(n)) otherwise
input number
a script element that represents n
a script witness that matches the msig 2-of-2 pubkey script for pubkey1 and pubkey2
If local publishes its commit tx where there was a local->remote htlc, then remote uses this script to claim its funds using a payment preimage (consumes htlcOffered script from commit tx)
If local publishes its commit tx where there was a remote->local htlc, then remote uses this script to claim its funds after timeout (consumes htlcReceived script from commit tx)
This is the witness script of the 2nd-stage HTLC Success transaction (consumes htlcOffered script from commit tx)
This is the witness script of the 2nd-stage HTLC Timeout transaction (consumes htlcReceived script from commit tx)
This witness script spends (steals) a htlcOffered or htlcReceived output using a revocation key as a punishment for having published a revoked transaction
This witness script spends a toLocalDelayed output using a local sig after a delay
This witness script spends (steals) a toLocalDelayed output using a revocation key as a punishment for having published a revoked transaction
(Since version ) see corresponding Javadoc for more information.
Created by PM on 02/12/2016.