* chosen to forgo their output as dust.
*/
Result_SignatureNoneZ sign_closing_transaction(ClosingTransaction closing_tx);
+ /**
+ * Computes the signature for a commitment transaction's anchor output used as an
+ * input within `anchor_tx`, which spends the commitment transaction, at index `input`.
+ */
+ Result_SignatureNoneZ sign_holder_anchor_input(byte[] anchor_tx, long input);
/**
* Signs a channel announcement message with our funding key and our node secret key (aka
* node_id or network_key), proving it comes from one of the channel participants.
long result = ret == null ? 0 : ret.clone_ptr();
return result;
}
+ @Override public long sign_holder_anchor_input(byte[] anchor_tx, long input) {
+ Result_SignatureNoneZ ret = arg.sign_holder_anchor_input(anchor_tx, input);
+ Reference.reachabilityFence(arg);
+ long result = ret == null ? 0 : ret.clone_ptr();
+ return result;
+ }
@Override public long sign_channel_announcement(long msg) {
org.ldk.structs.UnsignedChannelAnnouncement msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.UnsignedChannelAnnouncement(null, msg); }
Result_C2Tuple_SignatureSignatureZNoneZ ret = arg.sign_channel_announcement(msg_hu_conv);
return ret_hu_conv;
}
+ /**
+ * Computes the signature for a commitment transaction's anchor output used as an
+ * input within `anchor_tx`, which spends the commitment transaction, at index `input`.
+ */
+ public Result_SignatureNoneZ sign_holder_anchor_input(byte[] anchor_tx, long input) {
+ long ret = bindings.BaseSign_sign_holder_anchor_input(this.ptr, anchor_tx, input);
+ Reference.reachabilityFence(this);
+ Reference.reachabilityFence(anchor_tx);
+ Reference.reachabilityFence(input);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ Result_SignatureNoneZ ret_hu_conv = Result_SignatureNoneZ.constr_from_ptr(ret);
+ return ret_hu_conv;
+ }
+
/**
* Signs a channel announcement message with our funding key and our node secret key (aka
* node_id or network_key), proving it comes from one of the channel participants.