static byte[] |
UtilMethods.build_htlc_input_witness(byte[] local_sig,
byte[] remote_sig,
Option_ThirtyTwoBytesZ preimage,
byte[] redeem_script,
ChannelTypeFeatures channel_type_features) |
Returns the witness required to satisfy and spend a HTLC input.
|
static byte[] |
UtilMethods.build_htlc_transaction(byte[] commitment_txid,
int feerate_per_kw,
short contest_delay,
HTLCOutputInCommitment htlc,
ChannelTypeFeatures channel_type_features,
byte[] broadcaster_delayed_payment_key,
byte[] revocation_key) |
Builds an unsigned HTLC-Success or HTLC-Timeout transaction from the given channel and HTLC
parameters.
|
static Event |
Event.channel_ready(byte[] channel_id,
UInt128 user_channel_id,
byte[] counterparty_node_id,
ChannelTypeFeatures channel_type) |
Utility method to constructs a new ChannelReady-variant Event
|
boolean |
ChannelTypeFeatures.eq(ChannelTypeFeatures b) |
Checks if two ChannelTypeFeaturess contain equal inner contents.
|
static byte[] |
UtilMethods.get_counterparty_payment_script(ChannelTypeFeatures channel_type_features,
byte[] payment_key) |
Returns the script for the counterparty's output on a holder's commitment transaction based on
the channel type.
|
static byte[] |
UtilMethods.get_htlc_redeemscript(HTLCOutputInCommitment htlc,
ChannelTypeFeatures channel_type_features,
TxCreationKeys keys) |
Gets the witness redeemscript for an HTLC output in a commitment transaction.
|
static long |
UtilMethods.htlc_success_tx_weight(ChannelTypeFeatures channel_type_features) |
Gets the weight for an HTLC-Success transaction.
|
static long |
UtilMethods.htlc_timeout_tx_weight(ChannelTypeFeatures channel_type_features) |
Gets the weight for an HTLC-Timeout transaction.
|
static AcceptChannel |
AcceptChannel.of(byte[] temporary_channel_id_arg,
long dust_limit_satoshis_arg,
long max_htlc_value_in_flight_msat_arg,
long channel_reserve_satoshis_arg,
long htlc_minimum_msat_arg,
int minimum_depth_arg,
short to_self_delay_arg,
short max_accepted_htlcs_arg,
byte[] funding_pubkey_arg,
byte[] revocation_basepoint_arg,
byte[] payment_point_arg,
byte[] delayed_payment_basepoint_arg,
byte[] htlc_basepoint_arg,
byte[] first_per_commitment_point_arg,
Option_CVec_u8ZZ shutdown_scriptpubkey_arg,
ChannelTypeFeatures channel_type_arg) |
Constructs a new AcceptChannel given each field
Note that channel_type_arg (or a relevant inner pointer) may be NULL or all-0s to represent None
|
static AcceptChannelV2 |
AcceptChannelV2.of(byte[] temporary_channel_id_arg,
long funding_satoshis_arg,
long dust_limit_satoshis_arg,
long max_htlc_value_in_flight_msat_arg,
long htlc_minimum_msat_arg,
int minimum_depth_arg,
short to_self_delay_arg,
short max_accepted_htlcs_arg,
byte[] funding_pubkey_arg,
byte[] revocation_basepoint_arg,
byte[] payment_basepoint_arg,
byte[] delayed_payment_basepoint_arg,
byte[] htlc_basepoint_arg,
byte[] first_per_commitment_point_arg,
byte[] second_per_commitment_point_arg,
Option_CVec_u8ZZ shutdown_scriptpubkey_arg,
ChannelTypeFeatures channel_type_arg,
COption_NoneZ require_confirmed_inputs_arg) |
Constructs a new AcceptChannelV2 given each field
Note that channel_type_arg (or a relevant inner pointer) may be NULL or all-0s to represent None
|
static ChannelDetails |
ChannelDetails.of(byte[] channel_id_arg,
ChannelCounterparty counterparty_arg,
OutPoint funding_txo_arg,
ChannelTypeFeatures channel_type_arg,
Option_u64Z short_channel_id_arg,
Option_u64Z outbound_scid_alias_arg,
Option_u64Z inbound_scid_alias_arg,
long channel_value_satoshis_arg,
Option_u64Z unspendable_punishment_reserve_arg,
UInt128 user_channel_id_arg,
Option_u32Z feerate_sat_per_1000_weight_arg,
long balance_msat_arg,
long outbound_capacity_msat_arg,
long next_outbound_htlc_limit_msat_arg,
long next_outbound_htlc_minimum_msat_arg,
long inbound_capacity_msat_arg,
Option_u32Z confirmations_required_arg,
Option_u32Z confirmations_arg,
Option_u16Z force_close_spend_delay_arg,
boolean is_outbound_arg,
boolean is_channel_ready_arg,
Option_ChannelShutdownStateZ channel_shutdown_state_arg,
boolean is_usable_arg,
boolean is_public_arg,
Option_u64Z inbound_htlc_minimum_msat_arg,
Option_u64Z inbound_htlc_maximum_msat_arg,
ChannelConfig config_arg) |
Constructs a new ChannelDetails given each field
Note that funding_txo_arg (or a relevant inner pointer) may be NULL or all-0s to represent None
Note that channel_type_arg (or a relevant inner pointer) may be NULL or all-0s to represent None
Note that config_arg (or a relevant inner pointer) may be NULL or all-0s to represent None
|
static ChannelTransactionParameters |
ChannelTransactionParameters.of(ChannelPublicKeys holder_pubkeys_arg,
short holder_selected_contest_delay_arg,
boolean is_outbound_from_holder_arg,
CounterpartyChannelTransactionParameters counterparty_parameters_arg,
OutPoint funding_outpoint_arg,
ChannelTypeFeatures channel_type_features_arg) |
Constructs a new ChannelTransactionParameters given each field
Note that counterparty_parameters_arg (or a relevant inner pointer) may be NULL or all-0s to represent None
Note that funding_outpoint_arg (or a relevant inner pointer) may be NULL or all-0s to represent None
|
static OpenChannel |
OpenChannel.of(byte[] chain_hash_arg,
byte[] temporary_channel_id_arg,
long funding_satoshis_arg,
long push_msat_arg,
long dust_limit_satoshis_arg,
long max_htlc_value_in_flight_msat_arg,
long channel_reserve_satoshis_arg,
long htlc_minimum_msat_arg,
int feerate_per_kw_arg,
short to_self_delay_arg,
short max_accepted_htlcs_arg,
byte[] funding_pubkey_arg,
byte[] revocation_basepoint_arg,
byte[] payment_point_arg,
byte[] delayed_payment_basepoint_arg,
byte[] htlc_basepoint_arg,
byte[] first_per_commitment_point_arg,
byte channel_flags_arg,
Option_CVec_u8ZZ shutdown_scriptpubkey_arg,
ChannelTypeFeatures channel_type_arg) |
Constructs a new OpenChannel given each field
Note that channel_type_arg (or a relevant inner pointer) may be NULL or all-0s to represent None
|
static OpenChannelV2 |
OpenChannelV2.of(byte[] chain_hash_arg,
byte[] temporary_channel_id_arg,
int funding_feerate_sat_per_1000_weight_arg,
int commitment_feerate_sat_per_1000_weight_arg,
long funding_satoshis_arg,
long dust_limit_satoshis_arg,
long max_htlc_value_in_flight_msat_arg,
long htlc_minimum_msat_arg,
short to_self_delay_arg,
short max_accepted_htlcs_arg,
int locktime_arg,
byte[] funding_pubkey_arg,
byte[] revocation_basepoint_arg,
byte[] payment_basepoint_arg,
byte[] delayed_payment_basepoint_arg,
byte[] htlc_basepoint_arg,
byte[] first_per_commitment_point_arg,
byte[] second_per_commitment_point_arg,
byte channel_flags_arg,
Option_CVec_u8ZZ shutdown_scriptpubkey_arg,
ChannelTypeFeatures channel_type_arg,
COption_NoneZ require_confirmed_inputs_arg) |
Constructs a new OpenChannelV2 given each field
Note that channel_type_arg (or a relevant inner pointer) may be NULL or all-0s to represent None
|
static Result_ChannelTypeFeaturesDecodeErrorZ |
Result_ChannelTypeFeaturesDecodeErrorZ.ok(ChannelTypeFeatures o) |
Creates a new CResult_ChannelTypeFeaturesDecodeErrorZ in the success state.
|
static Event |
Event.open_channel_request(byte[] temporary_channel_id,
byte[] counterparty_node_id,
long funding_satoshis,
long push_msat,
ChannelTypeFeatures channel_type) |
Utility method to constructs a new OpenChannelRequest-variant Event
|
boolean |
ChannelTypeFeatures.requires_unknown_bits_from(ChannelTypeFeatures other) |
Returns true if this `Features` object contains required features unknown by `other`.
|
void |
AcceptChannel.set_channel_type(ChannelTypeFeatures val) |
The channel type that this channel will represent.
|
void |
AcceptChannelV2.set_channel_type(ChannelTypeFeatures val) |
The channel type that this channel will represent.
|
void |
ChannelDetails.set_channel_type(ChannelTypeFeatures val) |
The features which this channel operates with.
|
void |
OpenChannel.set_channel_type(ChannelTypeFeatures val) |
The channel type that this channel will represent
If this is `None`, we derive the channel type from the intersection of our
feature bits with our counterparty's feature bits from the [`Init`] message.
|
void |
OpenChannelV2.set_channel_type(ChannelTypeFeatures val) |
The channel type that this channel will represent.
|
void |
ChannelTransactionParameters.set_channel_type_features(ChannelTypeFeatures val) |
This channel's type, as negotiated during channel open.
|