Package org.ldk.structs
Class AcceptChannel
- java.lang.Object
-
- org.ldk.structs.AcceptChannel
-
public class AcceptChannel extends Object
An accept_channel message to be sent or received from a peer
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AcceptChannelclone()Creates a copy of the AcceptChannelprotected voidfinalize()longget_channel_reserve_satoshis()The minimum value unencumbered by HTLCs for the counterparty to keep in the channelbyte[]get_delayed_payment_basepoint()Used to derive a payment key to sender for transactions broadcast by senderlongget_dust_limit_satoshis()The threshold below which outputs on transactions broadcast by sender will be omittedbyte[]get_first_per_commitment_point()The first to-be-broadcast-by-sender transaction's per commitment pointbyte[]get_funding_pubkey()The sender's key controlling the funding transactionbyte[]get_htlc_basepoint()Used to derive an HTLC payment key to sender for transactions broadcast by counterpartylongget_htlc_minimum_msat()The minimum HTLC size incoming to sender, in milli-satoshishortget_max_accepted_htlcs()The maximum number of inbound HTLCs towards senderlongget_max_htlc_value_in_flight_msat()The maximum inbound HTLC value in flight towards sender, in milli-satoshiintget_minimum_depth()Minimum depth of the funding transaction before the channel is considered openbyte[]get_payment_point()A payment key to sender for transactions broadcast by counterpartybyte[]get_revocation_basepoint()Used to derive a revocation key for transactions broadcast by counterpartybyte[]get_temporary_channel_id()A temporary channel ID, until the funding outpoint is announcedshortget_to_self_delay()The number of blocks which the counterparty will have to wait to claim on-chain funds if they broadcast a commitment transactionstatic Result_AcceptChannelDecodeErrorZread(byte[] ser)Read a AcceptChannel from a byte array, created by AcceptChannel_writevoidset_channel_reserve_satoshis(long val)The minimum value unencumbered by HTLCs for the counterparty to keep in the channelvoidset_delayed_payment_basepoint(byte[] val)Used to derive a payment key to sender for transactions broadcast by sendervoidset_dust_limit_satoshis(long val)The threshold below which outputs on transactions broadcast by sender will be omittedvoidset_first_per_commitment_point(byte[] val)The first to-be-broadcast-by-sender transaction's per commitment pointvoidset_funding_pubkey(byte[] val)The sender's key controlling the funding transactionvoidset_htlc_basepoint(byte[] val)Used to derive an HTLC payment key to sender for transactions broadcast by counterpartyvoidset_htlc_minimum_msat(long val)The minimum HTLC size incoming to sender, in milli-satoshivoidset_max_accepted_htlcs(short val)The maximum number of inbound HTLCs towards sendervoidset_max_htlc_value_in_flight_msat(long val)The maximum inbound HTLC value in flight towards sender, in milli-satoshivoidset_minimum_depth(int val)Minimum depth of the funding transaction before the channel is considered openvoidset_payment_point(byte[] val)A payment key to sender for transactions broadcast by counterpartyvoidset_revocation_basepoint(byte[] val)Used to derive a revocation key for transactions broadcast by counterpartyvoidset_temporary_channel_id(byte[] val)A temporary channel ID, until the funding outpoint is announcedvoidset_to_self_delay(short val)The number of blocks which the counterparty will have to wait to claim on-chain funds if they broadcast a commitment transactionbyte[]write()Serialize the AcceptChannel object into a byte array which can be read by AcceptChannel_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
get_temporary_channel_id
public byte[] get_temporary_channel_id()
A temporary channel ID, until the funding outpoint is announced
-
set_temporary_channel_id
public void set_temporary_channel_id(byte[] val)
A temporary channel ID, until the funding outpoint is announced
-
get_dust_limit_satoshis
public long get_dust_limit_satoshis()
The threshold below which outputs on transactions broadcast by sender will be omitted
-
set_dust_limit_satoshis
public void set_dust_limit_satoshis(long val)
The threshold below which outputs on transactions broadcast by sender will be omitted
-
get_max_htlc_value_in_flight_msat
public long get_max_htlc_value_in_flight_msat()
The maximum inbound HTLC value in flight towards sender, in milli-satoshi
-
set_max_htlc_value_in_flight_msat
public void set_max_htlc_value_in_flight_msat(long val)
The maximum inbound HTLC value in flight towards sender, in milli-satoshi
-
get_channel_reserve_satoshis
public long get_channel_reserve_satoshis()
The minimum value unencumbered by HTLCs for the counterparty to keep in the channel
-
set_channel_reserve_satoshis
public void set_channel_reserve_satoshis(long val)
The minimum value unencumbered by HTLCs for the counterparty to keep in the channel
-
get_htlc_minimum_msat
public long get_htlc_minimum_msat()
The minimum HTLC size incoming to sender, in milli-satoshi
-
set_htlc_minimum_msat
public void set_htlc_minimum_msat(long val)
The minimum HTLC size incoming to sender, in milli-satoshi
-
get_minimum_depth
public int get_minimum_depth()
Minimum depth of the funding transaction before the channel is considered open
-
set_minimum_depth
public void set_minimum_depth(int val)
Minimum depth of the funding transaction before the channel is considered open
-
get_to_self_delay
public short get_to_self_delay()
The number of blocks which the counterparty will have to wait to claim on-chain funds if they broadcast a commitment transaction
-
set_to_self_delay
public void set_to_self_delay(short val)
The number of blocks which the counterparty will have to wait to claim on-chain funds if they broadcast a commitment transaction
-
get_max_accepted_htlcs
public short get_max_accepted_htlcs()
The maximum number of inbound HTLCs towards sender
-
set_max_accepted_htlcs
public void set_max_accepted_htlcs(short val)
The maximum number of inbound HTLCs towards sender
-
get_funding_pubkey
public byte[] get_funding_pubkey()
The sender's key controlling the funding transaction
-
set_funding_pubkey
public void set_funding_pubkey(byte[] val)
The sender's key controlling the funding transaction
-
get_revocation_basepoint
public byte[] get_revocation_basepoint()
Used to derive a revocation key for transactions broadcast by counterparty
-
set_revocation_basepoint
public void set_revocation_basepoint(byte[] val)
Used to derive a revocation key for transactions broadcast by counterparty
-
get_payment_point
public byte[] get_payment_point()
A payment key to sender for transactions broadcast by counterparty
-
set_payment_point
public void set_payment_point(byte[] val)
A payment key to sender for transactions broadcast by counterparty
-
get_delayed_payment_basepoint
public byte[] get_delayed_payment_basepoint()
Used to derive a payment key to sender for transactions broadcast by sender
-
set_delayed_payment_basepoint
public void set_delayed_payment_basepoint(byte[] val)
Used to derive a payment key to sender for transactions broadcast by sender
-
get_htlc_basepoint
public byte[] get_htlc_basepoint()
Used to derive an HTLC payment key to sender for transactions broadcast by counterparty
-
set_htlc_basepoint
public void set_htlc_basepoint(byte[] val)
Used to derive an HTLC payment key to sender for transactions broadcast by counterparty
-
get_first_per_commitment_point
public byte[] get_first_per_commitment_point()
The first to-be-broadcast-by-sender transaction's per commitment point
-
set_first_per_commitment_point
public void set_first_per_commitment_point(byte[] val)
The first to-be-broadcast-by-sender transaction's per commitment point
-
clone
public AcceptChannel clone()
Creates a copy of the AcceptChannel
-
write
public byte[] write()
Serialize the AcceptChannel object into a byte array which can be read by AcceptChannel_read
-
read
public static Result_AcceptChannelDecodeErrorZ read(byte[] ser)
Read a AcceptChannel from a byte array, created by AcceptChannel_write
-
-