static Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ |
UtilMethods.C2Tuple_BlockHashChannelManagerZ_read(byte[] ser,
KeysInterface arg_keys_manager,
FeeEstimator arg_fee_estimator,
Watch arg_chain_monitor,
BroadcasterInterface arg_tx_broadcaster,
Logger arg_logger,
UserConfig arg_default_config,
ChannelMonitor[] arg_channel_monitors) |
Read a C2Tuple_BlockHashChannelManagerZ from a byte array, created by C2Tuple_BlockHashChannelManagerZ_write
|
static Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ |
UtilMethods.C2Tuple_BlockHashChannelMonitorZ_read(byte[] ser,
KeysInterface arg) |
Read a C2Tuple_BlockHashChannelMonitorZ from a byte array, created by C2Tuple_BlockHashChannelMonitorZ_write
|
static Result_C2Tuple_PaymentHashPaymentSecretZNoneZ |
UtilMethods.create(ExpandedKey keys,
Option_u64Z min_value_msat,
int invoice_expiry_delta_secs,
KeysInterface keys_manager,
long current_time) |
Equivalent to [`crate::ln::channelmanager::ChannelManager::create_inbound_payment`], but no
`ChannelManager` is required.
|
static Result_InvoiceSignOrCreationErrorZ |
UtilMethods.create_invoice_from_channelmanager(ChannelManager channelmanager,
KeysInterface keys_manager,
Currency network,
Option_u64Z amt_msat,
String description,
int invoice_expiry_delta_secs) |
Utility to construct an invoice.
|
static Result_InvoiceSignOrCreationErrorZ |
UtilMethods.create_invoice_from_channelmanager_and_duration_since_epoch(ChannelManager channelmanager,
KeysInterface keys_manager,
Currency network,
Option_u64Z amt_msat,
String description,
long duration_since_epoch,
int invoice_expiry_delta_secs) |
See [`create_invoice_from_channelmanager`]
This version can be used in a `no_std` environment, where [`std::time::SystemTime`] is not
available and the current time is supplied by the caller.
|
static Result_InvoiceSignOrCreationErrorZ |
UtilMethods.create_invoice_from_channelmanager_with_description_hash(ChannelManager channelmanager,
KeysInterface keys_manager,
Currency network,
Option_u64Z amt_msat,
Sha256 description_hash,
int invoice_expiry_delta_secs) |
Utility to construct an invoice.
|
static Result_InvoiceSignOrCreationErrorZ |
UtilMethods.create_invoice_from_channelmanager_with_description_hash_and_duration_since_epoch(ChannelManager channelmanager,
KeysInterface keys_manager,
Currency network,
Option_u64Z amt_msat,
Sha256 description_hash,
long duration_since_epoch,
int invoice_expiry_delta_secs) |
See [`create_invoice_from_channelmanager_with_description_hash`]
This version can be used in a `no_std` environment, where [`std::time::SystemTime`] is not
available and the current time is supplied by the caller.
|
static Result_InvoiceSignOrCreationErrorZ |
UtilMethods.create_phantom_invoice(Option_u64Z amt_msat,
byte[] payment_hash,
String description,
int invoice_expiry_delta_secs,
PhantomRouteHints[] phantom_route_hints,
KeysInterface keys_manager,
Currency network) |
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_InvoiceSignOrCreationErrorZ |
UtilMethods.create_phantom_invoice_with_description_hash(Option_u64Z amt_msat,
byte[] payment_hash,
int invoice_expiry_delta_secs,
Sha256 description_hash,
PhantomRouteHints[] phantom_route_hints,
KeysInterface keys_manager,
Currency network) |
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 ChannelManager |
ChannelManager.of(FeeEstimator fee_est,
Watch chain_monitor,
BroadcasterInterface tx_broadcaster,
Logger logger,
KeysInterface keys_manager,
UserConfig config,
ChainParameters params) |
Constructs a new ChannelManager to hold several channels and route between them.
|
static ChannelManagerReadArgs |
ChannelManagerReadArgs.of(KeysInterface keys_manager,
FeeEstimator fee_estimator,
Watch chain_monitor,
BroadcasterInterface tx_broadcaster,
Logger logger,
UserConfig default_config,
ChannelMonitor[] channel_monitors) |
Simple utility function to create a ChannelManagerReadArgs which creates the monitor
HashMap for you.
|
static TwoTuple_BlockHashChannelManagerZ |
TwoTuple_BlockHashChannelManagerZ.of(byte[] a,
FeeEstimator b_fee_est,
Watch b_chain_monitor,
BroadcasterInterface b_tx_broadcaster,
Logger b_logger,
KeysInterface b_keys_manager,
UserConfig b_config,
ChainParameters b_params) |
Creates a new C2Tuple_BlockHashChannelManagerZ from the contained elements.
|
Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ |
FilesystemPersister.read_channelmonitors(KeysInterface keys_manager) |
Read `ChannelMonitor`s from disk.
|
void |
ChannelManagerReadArgs.set_keys_manager(KeysInterface val) |
The keys provider which will give us relevant keys.
|