static byte[] |
UtilMethods.build_htlc_transaction(byte[] commitment_txid,
int feerate_per_kw,
short contest_delay,
HTLCOutputInCommitment htlc,
boolean opt_anchors,
boolean use_non_zero_fee_anchors,
byte[] broadcaster_delayed_payment_key,
byte[] revocation_key) |
Builds an unsigned HTLC-Success or HTLC-Timeout transaction from the given channel and HTLC
parameters.
|
boolean |
HTLCOutputInCommitment.eq(HTLCOutputInCommitment b) |
Checks if two HTLCOutputInCommitments contain equal inner contents.
|
static byte[] |
UtilMethods.get_htlc_redeemscript(HTLCOutputInCommitment htlc,
boolean opt_anchors,
TxCreationKeys keys) |
Gets the witness redeemscript for an HTLC output in a commitment transaction.
|
static Result_HTLCOutputInCommitmentDecodeErrorZ |
Result_HTLCOutputInCommitmentDecodeErrorZ.ok(HTLCOutputInCommitment o) |
Creates a new CResult_HTLCOutputInCommitmentDecodeErrorZ in the success state.
|
Result_SignatureNoneZ |
EcdsaChannelSigner.EcdsaChannelSignerInterface.sign_counterparty_htlc_transaction(byte[] htlc_tx,
long input,
long amount,
byte[] per_commitment_point,
HTLCOutputInCommitment htlc) |
Create a signature for a claiming transaction for a HTLC output on a counterparty's commitment
transaction, either offered or received.
|
Result_SignatureNoneZ |
EcdsaChannelSigner.sign_counterparty_htlc_transaction(byte[] htlc_tx,
long input,
long amount,
byte[] per_commitment_point,
HTLCOutputInCommitment htlc) |
Create a signature for a claiming transaction for a HTLC output on a counterparty's commitment
transaction, either offered or received.
|
Result_SignatureNoneZ |
EcdsaChannelSigner.EcdsaChannelSignerInterface.sign_justice_revoked_htlc(byte[] justice_tx,
long input,
long amount,
byte[] per_commitment_key,
HTLCOutputInCommitment htlc) |
Create a signature for the given input in a transaction spending a commitment transaction
HTLC output when our counterparty broadcasts an old state.
|
Result_SignatureNoneZ |
EcdsaChannelSigner.sign_justice_revoked_htlc(byte[] justice_tx,
long input,
long amount,
byte[] per_commitment_key,
HTLCOutputInCommitment htlc) |
Create a signature for the given input in a transaction spending a commitment transaction
HTLC output when our counterparty broadcasts an old state.
|