- * Will panic if [`ChannelSigner::provide_channel_parameters`] has not been called before.
+ * Will return `None` if [`ChannelSigner::provide_channel_parameters`] has not been called.
+ * In general, this is safe to `unwrap` only in [`ChannelSigner`] implementation.
+ *
+ * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None
public ChannelPublicKeys counterparty_pubkeys() {
long ret = bindings.InMemorySigner_counterparty_pubkeys(this.ptr);
Reference.reachabilityFence(this);
public ChannelPublicKeys counterparty_pubkeys() {
long ret = bindings.InMemorySigner_counterparty_pubkeys(this.ptr);
Reference.reachabilityFence(this);
* transactions, i.e., the amount of time that we have to wait to recover our funds if we
* broadcast a transaction.
*
* transactions, i.e., the amount of time that we have to wait to recover our funds if we
* broadcast a transaction.
*
- public short counterparty_selected_contest_delay() {
- short ret = bindings.InMemorySigner_counterparty_selected_contest_delay(this.ptr);
+ public Option_u16Z counterparty_selected_contest_delay() {
+ long ret = bindings.InMemorySigner_counterparty_selected_contest_delay(this.ptr);
* by our counterparty, i.e., the amount of time that they have to wait to recover their funds
* if they broadcast a transaction.
*
* by our counterparty, i.e., the amount of time that they have to wait to recover their funds
* if they broadcast a transaction.
*
- public short holder_selected_contest_delay() {
- short ret = bindings.InMemorySigner_holder_selected_contest_delay(this.ptr);
+ public Option_u16Z holder_selected_contest_delay() {
+ long ret = bindings.InMemorySigner_holder_selected_contest_delay(this.ptr);
- * Will panic if [`ChannelSigner::provide_channel_parameters`] has not been called before.
+ * Will return `None` if [`ChannelSigner::provide_channel_parameters`] has not been called.
+ * In general, this is safe to `unwrap` only in [`ChannelSigner`] implementation.
+ *
+ * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None
public OutPoint funding_outpoint() {
long ret = bindings.InMemorySigner_funding_outpoint(this.ptr);
Reference.reachabilityFence(this);
public OutPoint funding_outpoint() {
long ret = bindings.InMemorySigner_funding_outpoint(this.ptr);
Reference.reachabilityFence(this);
- * Will panic if [`ChannelSigner::provide_channel_parameters`] has not been called before.
+ * Will return `None` if [`ChannelSigner::provide_channel_parameters`] has not been called.
+ * In general, this is safe to `unwrap` only in [`ChannelSigner`] implementation.
+ *
+ * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None
public ChannelTransactionParameters get_channel_parameters() {
long ret = bindings.InMemorySigner_get_channel_parameters(this.ptr);
Reference.reachabilityFence(this);
public ChannelTransactionParameters get_channel_parameters() {
long ret = bindings.InMemorySigner_get_channel_parameters(this.ptr);
Reference.reachabilityFence(this);
- * Will panic if [`ChannelSigner::provide_channel_parameters`] has not been called before.
+ * Will return `None` if [`ChannelSigner::provide_channel_parameters`] has not been called.
+ * In general, this is safe to `unwrap` only in [`ChannelSigner`] implementation.
+ *
+ * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None
- public boolean opt_anchors() {
- boolean ret = bindings.InMemorySigner_opt_anchors(this.ptr);
+ @Nullable
+ public ChannelTypeFeatures channel_type_features() {
+ long ret = bindings.InMemorySigner_channel_type_features(this.ptr);
- public Result_CVec_CVec_u8ZZNoneZ sign_counterparty_payment_input(byte[] spend_tx, long input_idx, org.ldk.structs.StaticPaymentOutputDescriptor descriptor) {
+ public Result_WitnessNoneZ sign_counterparty_payment_input(byte[] spend_tx, long input_idx, org.ldk.structs.StaticPaymentOutputDescriptor descriptor) {
long ret = bindings.InMemorySigner_sign_counterparty_payment_input(this.ptr, spend_tx, input_idx, descriptor == null ? 0 : descriptor.ptr);
Reference.reachabilityFence(this);
Reference.reachabilityFence(spend_tx);
Reference.reachabilityFence(input_idx);
Reference.reachabilityFence(descriptor);
if (ret >= 0 && ret <= 4096) { return null; }
long ret = bindings.InMemorySigner_sign_counterparty_payment_input(this.ptr, spend_tx, input_idx, descriptor == null ? 0 : descriptor.ptr);
Reference.reachabilityFence(this);
Reference.reachabilityFence(spend_tx);
Reference.reachabilityFence(input_idx);
Reference.reachabilityFence(descriptor);
if (ret >= 0 && ret <= 4096) { return null; }
* [`descriptor.outpoint`]: DelayedPaymentOutputDescriptor::outpoint
* [`descriptor.to_self_delay`]: DelayedPaymentOutputDescriptor::to_self_delay
*/
* [`descriptor.outpoint`]: DelayedPaymentOutputDescriptor::outpoint
* [`descriptor.to_self_delay`]: DelayedPaymentOutputDescriptor::to_self_delay
*/
- public Result_CVec_CVec_u8ZZNoneZ sign_dynamic_p2wsh_input(byte[] spend_tx, long input_idx, org.ldk.structs.DelayedPaymentOutputDescriptor descriptor) {
+ public Result_WitnessNoneZ sign_dynamic_p2wsh_input(byte[] spend_tx, long input_idx, org.ldk.structs.DelayedPaymentOutputDescriptor descriptor) {
long ret = bindings.InMemorySigner_sign_dynamic_p2wsh_input(this.ptr, spend_tx, input_idx, descriptor == null ? 0 : descriptor.ptr);
Reference.reachabilityFence(this);
Reference.reachabilityFence(spend_tx);
Reference.reachabilityFence(input_idx);
Reference.reachabilityFence(descriptor);
if (ret >= 0 && ret <= 4096) { return null; }
long ret = bindings.InMemorySigner_sign_dynamic_p2wsh_input(this.ptr, spend_tx, input_idx, descriptor == null ? 0 : descriptor.ptr);
Reference.reachabilityFence(this);
Reference.reachabilityFence(spend_tx);
Reference.reachabilityFence(input_idx);
Reference.reachabilityFence(descriptor);
if (ret >= 0 && ret <= 4096) { return null; }
* Read a InMemorySigner from a byte array, created by InMemorySigner_write
*/
public static Result_InMemorySignerDecodeErrorZ read(byte[] ser, org.ldk.structs.EntropySource arg) {
* Read a InMemorySigner from a byte array, created by InMemorySigner_write
*/
public static Result_InMemorySignerDecodeErrorZ read(byte[] ser, org.ldk.structs.EntropySource arg) {
Reference.reachabilityFence(ser);
Reference.reachabilityFence(arg);
if (ret >= 0 && ret <= 4096) { return null; }
Reference.reachabilityFence(ser);
Reference.reachabilityFence(arg);
if (ret >= 0 && ret <= 4096) { return null; }