static Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ |
UtilMethods.BlindedPath_one_hop_for_payment(byte[] payee_node_id,
ReceiveTlvs payee_tlvs,
EntropySource entropy_source) |
Create a one-hop blinded path for a payment.
|
static Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ |
UtilMethods.C2Tuple_ThirtyTwoBytesChannelManagerZ_read(byte[] ser,
EntropySource arg_entropy_source,
NodeSigner arg_node_signer,
SignerProvider arg_signer_provider,
FeeEstimator arg_fee_estimator,
Watch arg_chain_monitor,
BroadcasterInterface arg_tx_broadcaster,
Router arg_router,
Logger arg_logger,
UserConfig arg_default_config,
ChannelMonitor[] arg_channel_monitors) |
Read a C2Tuple_ThirtyTwoBytesChannelManagerZ from a byte array, created by C2Tuple_ThirtyTwoBytesChannelManagerZ_write
|
static Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ |
UtilMethods.C2Tuple_ThirtyTwoBytesChannelMonitorZ_read(byte[] ser,
EntropySource arg_a,
SignerProvider arg_b) |
Read a C2Tuple_ThirtyTwoBytesChannelMonitorZ from a byte array, created by C2Tuple_ThirtyTwoBytesChannelMonitorZ_write
|
static Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ |
UtilMethods.create(ExpandedKey keys,
Option_u64Z min_value_msat,
int invoice_expiry_delta_secs,
EntropySource entropy_source,
long current_time,
Option_u16Z min_final_cltv_expiry_delta) |
Equivalent to [`crate::ln::channelmanager::ChannelManager::create_inbound_payment`], but no
`ChannelManager` is required.
|
static Result_C2Tuple_PublicKeyOnionMessageZSendErrorZ |
UtilMethods.create_onion_message(EntropySource entropy_source,
NodeSigner node_signer,
OnionMessagePath path,
OnionMessageContents message,
BlindedPath reply_path) |
Create an onion message with contents `message` to the destination of `path`.
|
static Result_Bolt11InvoiceSignOrCreationErrorZ |
UtilMethods.create_phantom_invoice(Option_u64Z amt_msat,
Option_ThirtyTwoBytesZ payment_hash,
String description,
int invoice_expiry_delta_secs,
PhantomRouteHints[] phantom_route_hints,
EntropySource entropy_source,
NodeSigner node_signer,
Logger logger,
Currency network,
Option_u16Z min_final_cltv_expiry_delta,
long duration_since_epoch) |
Utility to create an invoice that can be paid to one of multiple nodes, or a \"phantom invoice.\"
See [`PhantomKeysManager`] for more information on phantom node payments.
|
static Result_Bolt11InvoiceSignOrCreationErrorZ |
UtilMethods.create_phantom_invoice_with_description_hash(Option_u64Z amt_msat,
Option_ThirtyTwoBytesZ payment_hash,
int invoice_expiry_delta_secs,
Sha256 description_hash,
PhantomRouteHints[] phantom_route_hints,
EntropySource entropy_source,
NodeSigner node_signer,
Logger logger,
Currency network,
Option_u16Z min_final_cltv_expiry_delta,
long duration_since_epoch) |
Utility to create an invoice that can be paid to one of multiple nodes, or a \"phantom invoice.\"
See [`PhantomKeysManager`] for more information on phantom node payments.
|
Result_CVec_ECDSASignatureZNoneZ |
TrustedCommitmentTransaction.get_htlc_sigs(byte[] htlc_base_key,
DirectedChannelTransactionParameters channel_parameters,
EntropySource entropy_source) |
Get a signature for each HTLC which was included in the commitment transaction (ie for
which HTLCOutputInCommitment::transaction_output_index.is_some()).
|
static Result_BlindedPathNoneZ |
BlindedPath.new_for_message(byte[][] node_pks,
EntropySource entropy_source) |
Create a blinded path for an onion message, to be forwarded along `node_pks`.
|
static ChannelManager |
ChannelManager.of(FeeEstimator fee_est,
Watch chain_monitor,
BroadcasterInterface tx_broadcaster,
Router router,
Logger logger,
EntropySource entropy_source,
NodeSigner node_signer,
SignerProvider signer_provider,
UserConfig config,
ChainParameters params,
int current_timestamp) |
Constructs a new `ChannelManager` to hold several channels and route between them.
|
static ChannelManagerReadArgs |
ChannelManagerReadArgs.of(EntropySource entropy_source,
NodeSigner node_signer,
SignerProvider signer_provider,
FeeEstimator fee_estimator,
Watch chain_monitor,
BroadcasterInterface tx_broadcaster,
Router router,
Logger logger,
UserConfig default_config,
ChannelMonitor[] channel_monitors) |
Simple utility function to create a ChannelManagerReadArgs which creates the monitor
HashMap for you.
|
static MonitorUpdatingPersister |
MonitorUpdatingPersister.of(KVStore kv_store,
Logger logger,
long maximum_pending_updates,
EntropySource entropy_source,
SignerProvider signer_provider) |
Constructs a new [`MonitorUpdatingPersister`].
|
static OnionMessenger |
OnionMessenger.of(EntropySource entropy_source,
NodeSigner node_signer,
Logger logger,
MessageRouter message_router,
OffersMessageHandler offers_handler,
CustomOnionMessageHandler custom_handler) |
Constructs a new `OnionMessenger` to send, forward, and delegate received onion messages to
their respective handlers.
|
static TwoTuple_ThirtyTwoBytesChannelManagerZ |
TwoTuple_ThirtyTwoBytesChannelManagerZ.of(byte[] a,
FeeEstimator b_fee_est,
Watch b_chain_monitor,
BroadcasterInterface b_tx_broadcaster,
Router b_router,
Logger b_logger,
EntropySource b_entropy_source,
NodeSigner b_node_signer,
SignerProvider b_signer_provider,
UserConfig b_config,
ChainParameters b_params,
int b_current_timestamp) |
Creates a new C2Tuple_ThirtyTwoBytesChannelManagerZ from the contained elements.
|
static Result_InMemorySignerDecodeErrorZ |
InMemorySigner.read(byte[] ser,
EntropySource arg) |
Read a InMemorySigner from a byte array, created by InMemorySigner_write
|
static Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ |
UtilMethods.read_channel_monitors(KVStore kv_store,
EntropySource entropy_source,
SignerProvider signer_provider) |
Read previously persisted [`ChannelMonitor`]s from the store.
|
void |
ChannelManagerReadArgs.set_entropy_source(EntropySource val) |
A cryptographically secure source of entropy.
|
byte[] |
BuiltCommitmentTransaction.sign_holder_commitment(byte[] funding_key,
byte[] funding_redeemscript,
long channel_value_satoshis,
EntropySource entropy_source) |
Signs the holder commitment transaction because we are about to broadcast it.
|