- /// void HTLCOutputInCommitment_set_payment_hash(LDKHTLCOutputInCommitment *this_ptr, LDKThirtyTwoBytes val);
- public static native void HTLCOutputInCommitment_set_payment_hash(long this_ptr, long val);
- /// LDKCVec_u8Z HTLCOutputInCommitment_write(const LDKHTLCOutputInCommitment *obj);
- public static native long HTLCOutputInCommitment_write(long obj);
- /// LDKHTLCOutputInCommitment HTLCOutputInCommitment_read(LDKu8slice ser);
- public static native long HTLCOutputInCommitment_read(long ser);
- /// LDKCVec_u8Z get_htlc_redeemscript(const LDKHTLCOutputInCommitment *htlc, const LDKTxCreationKeys *keys);
- public static native long get_htlc_redeemscript(long htlc, long keys);
- /// LDKCVec_u8Z make_funding_redeemscript(LDKPublicKey a, LDKPublicKey b);
- public static native long make_funding_redeemscript(long a, long b);
- /// LDKCVec_u8Z build_htlc_transaction(const uint8_t (*prev_hash)[32], uint32_t feerate_per_kw, uint16_t to_self_delay, const LDKHTLCOutputInCommitment *htlc, LDKPublicKey a_delayed_payment_key, LDKPublicKey revocation_key);
- public static native long build_htlc_transaction(byte[] prev_hash, int feerate_per_kw, short to_self_delay, long htlc, long a_delayed_payment_key, long revocation_key);
- /// void LocalCommitmentTransaction_free(LDKLocalCommitmentTransaction this_ptr);
- public static native void LocalCommitmentTransaction_free(long this_ptr);
- /// LDKCVec_u8Z LocalCommitmentTransaction_get_unsigned_tx(const LDKLocalCommitmentTransaction *this_ptr);
- public static native long LocalCommitmentTransaction_get_unsigned_tx(long this_ptr);
- /// void LocalCommitmentTransaction_set_unsigned_tx(LDKLocalCommitmentTransaction *this_ptr, LDKCVec_u8Z val);
- public static native void LocalCommitmentTransaction_set_unsigned_tx(long this_ptr, long val);
- /// LDKSignature LocalCommitmentTransaction_get_their_sig(const LDKLocalCommitmentTransaction *this_ptr);
- public static native long LocalCommitmentTransaction_get_their_sig(long this_ptr);
- /// void LocalCommitmentTransaction_set_their_sig(LDKLocalCommitmentTransaction *this_ptr, LDKSignature val);
- public static native void LocalCommitmentTransaction_set_their_sig(long this_ptr, long val);
- /// uint32_t LocalCommitmentTransaction_get_feerate_per_kw(const LDKLocalCommitmentTransaction *this_ptr);
- public static native int LocalCommitmentTransaction_get_feerate_per_kw(long this_ptr);
- /// void LocalCommitmentTransaction_set_feerate_per_kw(LDKLocalCommitmentTransaction *this_ptr, uint32_t val);
- public static native void LocalCommitmentTransaction_set_feerate_per_kw(long this_ptr, int val);
- /// void LocalCommitmentTransaction_set_per_htlc(LDKLocalCommitmentTransaction *this_ptr, LDKCVec_C2Tuple_HTLCOutputInCommitmentSignatureZZ val);
- public static native void LocalCommitmentTransaction_set_per_htlc(long this_ptr, long val);
- /// MUST_USE_RES LDKLocalCommitmentTransaction LocalCommitmentTransaction_new_missing_local_sig(LDKCVec_u8Z unsigned_tx, LDKSignature their_sig, LDKPublicKey our_funding_key, LDKPublicKey their_funding_key, LDKTxCreationKeys local_keys, uint32_t feerate_per_kw, LDKCVec_C2Tuple_HTLCOutputInCommitmentSignatureZZ htlc_data);
- public static native long LocalCommitmentTransaction_new_missing_local_sig(long unsigned_tx, long their_sig, long our_funding_key, long their_funding_key, long local_keys, int feerate_per_kw, long htlc_data);
- /// MUST_USE_RES LDKTxCreationKeys LocalCommitmentTransaction_trust_key_derivation(const LDKLocalCommitmentTransaction *this_arg);
- public static native long LocalCommitmentTransaction_trust_key_derivation(long this_arg);
- /// MUST_USE_RES LDKThirtyTwoBytes LocalCommitmentTransaction_txid(const LDKLocalCommitmentTransaction *this_arg);
- public static native long LocalCommitmentTransaction_txid(long this_arg);
- /// MUST_USE_RES LDKSignature LocalCommitmentTransaction_get_local_sig(const LDKLocalCommitmentTransaction *this_arg, const uint8_t (*funding_key)[32], LDKu8slice funding_redeemscript, uint64_t channel_value_satoshis);
- public static native long LocalCommitmentTransaction_get_local_sig(long this_arg, byte[] funding_key, long funding_redeemscript, long channel_value_satoshis);
- /// MUST_USE_RES LDKCResult_CVec_SignatureZNoneZ LocalCommitmentTransaction_get_htlc_sigs(const LDKLocalCommitmentTransaction *this_arg, const uint8_t (*htlc_base_key)[32], uint16_t local_csv);
- public static native long LocalCommitmentTransaction_get_htlc_sigs(long this_arg, byte[] htlc_base_key, short local_csv);
- /// LDKCVec_u8Z LocalCommitmentTransaction_write(const LDKLocalCommitmentTransaction *obj);
- public static native long LocalCommitmentTransaction_write(long obj);
- /// LDKLocalCommitmentTransaction LocalCommitmentTransaction_read(LDKu8slice ser);
- public static native long LocalCommitmentTransaction_read(long ser);
- /// void InitFeatures_free(LDKInitFeatures this_ptr);
+ // void HTLCOutputInCommitment_set_payment_hash(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
+ public static native void HTLCOutputInCommitment_set_payment_hash(long this_ptr, byte[] val);
+ // struct LDKCVec_u8Z HTLCOutputInCommitment_write(const struct LDKHTLCOutputInCommitment *NONNULL_PTR obj);
+ public static native byte[] HTLCOutputInCommitment_write(long obj);
+ // struct LDKHTLCOutputInCommitment HTLCOutputInCommitment_read(struct LDKu8slice ser);
+ public static native long HTLCOutputInCommitment_read(byte[] ser);
+ // struct LDKCVec_u8Z get_htlc_redeemscript(const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc, const struct LDKTxCreationKeys *NONNULL_PTR keys);
+ public static native byte[] get_htlc_redeemscript(long htlc, long keys);
+ // struct LDKCVec_u8Z make_funding_redeemscript(struct LDKPublicKey broadcaster, struct LDKPublicKey countersignatory);
+ public static native byte[] make_funding_redeemscript(byte[] broadcaster, byte[] countersignatory);
+ // struct LDKTransaction build_htlc_transaction(const uint8_t (*prev_hash)[32], uint32_t feerate_per_kw, uint16_t contest_delay, const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc, struct LDKPublicKey broadcaster_delayed_payment_key, struct LDKPublicKey revocation_key);
+ public static native byte[] build_htlc_transaction(byte[] prev_hash, int feerate_per_kw, short contest_delay, long htlc, byte[] broadcaster_delayed_payment_key, byte[] revocation_key);
+ // void ChannelTransactionParameters_free(struct LDKChannelTransactionParameters this_ptr);
+ public static native void ChannelTransactionParameters_free(long this_ptr);
+ // struct LDKChannelTransactionParameters ChannelTransactionParameters_clone(const struct LDKChannelTransactionParameters *NONNULL_PTR orig);
+ public static native long ChannelTransactionParameters_clone(long orig);
+ // struct LDKChannelPublicKeys ChannelTransactionParameters_get_holder_pubkeys(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
+ public static native long ChannelTransactionParameters_get_holder_pubkeys(long this_ptr);
+ // void ChannelTransactionParameters_set_holder_pubkeys(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKChannelPublicKeys val);
+ public static native void ChannelTransactionParameters_set_holder_pubkeys(long this_ptr, long val);
+ // uint16_t ChannelTransactionParameters_get_holder_selected_contest_delay(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
+ public static native short ChannelTransactionParameters_get_holder_selected_contest_delay(long this_ptr);
+ // void ChannelTransactionParameters_set_holder_selected_contest_delay(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, uint16_t val);
+ public static native void ChannelTransactionParameters_set_holder_selected_contest_delay(long this_ptr, short val);
+ // bool ChannelTransactionParameters_get_is_outbound_from_holder(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
+ public static native boolean ChannelTransactionParameters_get_is_outbound_from_holder(long this_ptr);
+ // void ChannelTransactionParameters_set_is_outbound_from_holder(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, bool val);
+ public static native void ChannelTransactionParameters_set_is_outbound_from_holder(long this_ptr, boolean val);
+ // struct LDKCounterpartyChannelTransactionParameters ChannelTransactionParameters_get_counterparty_parameters(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
+ public static native long ChannelTransactionParameters_get_counterparty_parameters(long this_ptr);
+ // void ChannelTransactionParameters_set_counterparty_parameters(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKCounterpartyChannelTransactionParameters val);
+ public static native void ChannelTransactionParameters_set_counterparty_parameters(long this_ptr, long val);
+ // struct LDKOutPoint ChannelTransactionParameters_get_funding_outpoint(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
+ public static native long ChannelTransactionParameters_get_funding_outpoint(long this_ptr);
+ // void ChannelTransactionParameters_set_funding_outpoint(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKOutPoint val);
+ public static native void ChannelTransactionParameters_set_funding_outpoint(long this_ptr, long val);
+ // MUST_USE_RES struct LDKChannelTransactionParameters ChannelTransactionParameters_new(struct LDKChannelPublicKeys holder_pubkeys_arg, uint16_t holder_selected_contest_delay_arg, bool is_outbound_from_holder_arg, struct LDKCounterpartyChannelTransactionParameters counterparty_parameters_arg, struct LDKOutPoint funding_outpoint_arg);
+ public static native long ChannelTransactionParameters_new(long holder_pubkeys_arg, short holder_selected_contest_delay_arg, boolean is_outbound_from_holder_arg, long counterparty_parameters_arg, long funding_outpoint_arg);
+ // void CounterpartyChannelTransactionParameters_free(struct LDKCounterpartyChannelTransactionParameters this_ptr);
+ public static native void CounterpartyChannelTransactionParameters_free(long this_ptr);
+ // struct LDKCounterpartyChannelTransactionParameters CounterpartyChannelTransactionParameters_clone(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR orig);
+ public static native long CounterpartyChannelTransactionParameters_clone(long orig);
+ // struct LDKChannelPublicKeys CounterpartyChannelTransactionParameters_get_pubkeys(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr);
+ public static native long CounterpartyChannelTransactionParameters_get_pubkeys(long this_ptr);
+ // void CounterpartyChannelTransactionParameters_set_pubkeys(struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKChannelPublicKeys val);
+ public static native void CounterpartyChannelTransactionParameters_set_pubkeys(long this_ptr, long val);
+ // uint16_t CounterpartyChannelTransactionParameters_get_selected_contest_delay(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr);
+ public static native short CounterpartyChannelTransactionParameters_get_selected_contest_delay(long this_ptr);
+ // void CounterpartyChannelTransactionParameters_set_selected_contest_delay(struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr, uint16_t val);
+ public static native void CounterpartyChannelTransactionParameters_set_selected_contest_delay(long this_ptr, short val);
+ // MUST_USE_RES struct LDKCounterpartyChannelTransactionParameters CounterpartyChannelTransactionParameters_new(struct LDKChannelPublicKeys pubkeys_arg, uint16_t selected_contest_delay_arg);
+ public static native long CounterpartyChannelTransactionParameters_new(long pubkeys_arg, short selected_contest_delay_arg);
+ // MUST_USE_RES bool ChannelTransactionParameters_is_populated(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
+ public static native boolean ChannelTransactionParameters_is_populated(long this_arg);
+ // MUST_USE_RES struct LDKDirectedChannelTransactionParameters ChannelTransactionParameters_as_holder_broadcastable(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
+ public static native long ChannelTransactionParameters_as_holder_broadcastable(long this_arg);
+ // MUST_USE_RES struct LDKDirectedChannelTransactionParameters ChannelTransactionParameters_as_counterparty_broadcastable(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
+ public static native long ChannelTransactionParameters_as_counterparty_broadcastable(long this_arg);
+ // struct LDKCVec_u8Z CounterpartyChannelTransactionParameters_write(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR obj);
+ public static native byte[] CounterpartyChannelTransactionParameters_write(long obj);
+ // struct LDKCounterpartyChannelTransactionParameters CounterpartyChannelTransactionParameters_read(struct LDKu8slice ser);
+ public static native long CounterpartyChannelTransactionParameters_read(byte[] ser);
+ // struct LDKCVec_u8Z ChannelTransactionParameters_write(const struct LDKChannelTransactionParameters *NONNULL_PTR obj);
+ public static native byte[] ChannelTransactionParameters_write(long obj);
+ // struct LDKChannelTransactionParameters ChannelTransactionParameters_read(struct LDKu8slice ser);
+ public static native long ChannelTransactionParameters_read(byte[] ser);
+ // void DirectedChannelTransactionParameters_free(struct LDKDirectedChannelTransactionParameters this_ptr);
+ public static native void DirectedChannelTransactionParameters_free(long this_ptr);
+ // MUST_USE_RES struct LDKChannelPublicKeys DirectedChannelTransactionParameters_broadcaster_pubkeys(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
+ public static native long DirectedChannelTransactionParameters_broadcaster_pubkeys(long this_arg);
+ // MUST_USE_RES struct LDKChannelPublicKeys DirectedChannelTransactionParameters_countersignatory_pubkeys(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
+ public static native long DirectedChannelTransactionParameters_countersignatory_pubkeys(long this_arg);
+ // MUST_USE_RES uint16_t DirectedChannelTransactionParameters_contest_delay(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
+ public static native short DirectedChannelTransactionParameters_contest_delay(long this_arg);
+ // MUST_USE_RES bool DirectedChannelTransactionParameters_is_outbound(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
+ public static native boolean DirectedChannelTransactionParameters_is_outbound(long this_arg);
+ // MUST_USE_RES struct LDKOutPoint DirectedChannelTransactionParameters_funding_outpoint(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
+ public static native long DirectedChannelTransactionParameters_funding_outpoint(long this_arg);
+ // void HolderCommitmentTransaction_free(struct LDKHolderCommitmentTransaction this_ptr);
+ public static native void HolderCommitmentTransaction_free(long this_ptr);
+ // struct LDKHolderCommitmentTransaction HolderCommitmentTransaction_clone(const struct LDKHolderCommitmentTransaction *NONNULL_PTR orig);
+ public static native long HolderCommitmentTransaction_clone(long orig);
+ // struct LDKSignature HolderCommitmentTransaction_get_counterparty_sig(const struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr);
+ public static native byte[] HolderCommitmentTransaction_get_counterparty_sig(long this_ptr);
+ // void HolderCommitmentTransaction_set_counterparty_sig(struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKSignature val);
+ public static native void HolderCommitmentTransaction_set_counterparty_sig(long this_ptr, byte[] val);
+ // void HolderCommitmentTransaction_set_counterparty_htlc_sigs(struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKCVec_SignatureZ val);
+ public static native void HolderCommitmentTransaction_set_counterparty_htlc_sigs(long this_ptr, byte[][] val);
+ // struct LDKCVec_u8Z HolderCommitmentTransaction_write(const struct LDKHolderCommitmentTransaction *NONNULL_PTR obj);
+ public static native byte[] HolderCommitmentTransaction_write(long obj);
+ // struct LDKHolderCommitmentTransaction HolderCommitmentTransaction_read(struct LDKu8slice ser);
+ public static native long HolderCommitmentTransaction_read(byte[] ser);
+ // MUST_USE_RES struct LDKHolderCommitmentTransaction HolderCommitmentTransaction_new(struct LDKCommitmentTransaction commitment_tx, struct LDKSignature counterparty_sig, struct LDKCVec_SignatureZ counterparty_htlc_sigs, struct LDKPublicKey holder_funding_key, struct LDKPublicKey counterparty_funding_key);
+ public static native long HolderCommitmentTransaction_new(long commitment_tx, byte[] counterparty_sig, byte[][] counterparty_htlc_sigs, byte[] holder_funding_key, byte[] counterparty_funding_key);
+ // void BuiltCommitmentTransaction_free(struct LDKBuiltCommitmentTransaction this_ptr);
+ public static native void BuiltCommitmentTransaction_free(long this_ptr);
+ // struct LDKBuiltCommitmentTransaction BuiltCommitmentTransaction_clone(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR orig);
+ public static native long BuiltCommitmentTransaction_clone(long orig);
+ // struct LDKTransaction BuiltCommitmentTransaction_get_transaction(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr);
+ public static native byte[] BuiltCommitmentTransaction_get_transaction(long this_ptr);
+ // void BuiltCommitmentTransaction_set_transaction(struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKTransaction val);
+ public static native void BuiltCommitmentTransaction_set_transaction(long this_ptr, byte[] val);
+ // const uint8_t (*BuiltCommitmentTransaction_get_txid(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr))[32];
+ public static native byte[] BuiltCommitmentTransaction_get_txid(long this_ptr);
+ // void BuiltCommitmentTransaction_set_txid(struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
+ public static native void BuiltCommitmentTransaction_set_txid(long this_ptr, byte[] val);
+ // MUST_USE_RES struct LDKBuiltCommitmentTransaction BuiltCommitmentTransaction_new(struct LDKTransaction transaction_arg, struct LDKThirtyTwoBytes txid_arg);
+ public static native long BuiltCommitmentTransaction_new(byte[] transaction_arg, byte[] txid_arg);
+ // struct LDKCVec_u8Z BuiltCommitmentTransaction_write(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR obj);
+ public static native byte[] BuiltCommitmentTransaction_write(long obj);
+ // struct LDKBuiltCommitmentTransaction BuiltCommitmentTransaction_read(struct LDKu8slice ser);
+ public static native long BuiltCommitmentTransaction_read(byte[] ser);
+ // MUST_USE_RES struct LDKThirtyTwoBytes BuiltCommitmentTransaction_get_sighash_all(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_arg, struct LDKu8slice funding_redeemscript, uint64_t channel_value_satoshis);
+ public static native byte[] BuiltCommitmentTransaction_get_sighash_all(long this_arg, byte[] funding_redeemscript, long channel_value_satoshis);
+ // MUST_USE_RES struct LDKSignature BuiltCommitmentTransaction_sign(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_arg, const uint8_t (*funding_key)[32], struct LDKu8slice funding_redeemscript, uint64_t channel_value_satoshis);
+ public static native byte[] BuiltCommitmentTransaction_sign(long this_arg, byte[] funding_key, byte[] funding_redeemscript, long channel_value_satoshis);
+ // void CommitmentTransaction_free(struct LDKCommitmentTransaction this_ptr);
+ public static native void CommitmentTransaction_free(long this_ptr);
+ // struct LDKCommitmentTransaction CommitmentTransaction_clone(const struct LDKCommitmentTransaction *NONNULL_PTR orig);
+ public static native long CommitmentTransaction_clone(long orig);
+ // struct LDKCVec_u8Z CommitmentTransaction_write(const struct LDKCommitmentTransaction *NONNULL_PTR obj);
+ public static native byte[] CommitmentTransaction_write(long obj);
+ // struct LDKCommitmentTransaction CommitmentTransaction_read(struct LDKu8slice ser);
+ public static native long CommitmentTransaction_read(byte[] ser);
+ // MUST_USE_RES uint64_t CommitmentTransaction_commitment_number(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
+ public static native long CommitmentTransaction_commitment_number(long this_arg);
+ // MUST_USE_RES uint64_t CommitmentTransaction_to_broadcaster_value_sat(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
+ public static native long CommitmentTransaction_to_broadcaster_value_sat(long this_arg);
+ // MUST_USE_RES uint64_t CommitmentTransaction_to_countersignatory_value_sat(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
+ public static native long CommitmentTransaction_to_countersignatory_value_sat(long this_arg);
+ // MUST_USE_RES uint32_t CommitmentTransaction_feerate_per_kw(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
+ public static native int CommitmentTransaction_feerate_per_kw(long this_arg);
+ // MUST_USE_RES struct LDKTrustedCommitmentTransaction CommitmentTransaction_trust(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
+ public static native long CommitmentTransaction_trust(long this_arg);
+ // MUST_USE_RES struct LDKCResult_TrustedCommitmentTransactionNoneZ CommitmentTransaction_verify(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg, const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR channel_parameters, const struct LDKChannelPublicKeys *NONNULL_PTR broadcaster_keys, const struct LDKChannelPublicKeys *NONNULL_PTR countersignatory_keys);
+ public static native long CommitmentTransaction_verify(long this_arg, long channel_parameters, long broadcaster_keys, long countersignatory_keys);
+ // void TrustedCommitmentTransaction_free(struct LDKTrustedCommitmentTransaction this_ptr);
+ public static native void TrustedCommitmentTransaction_free(long this_ptr);
+ // MUST_USE_RES struct LDKThirtyTwoBytes TrustedCommitmentTransaction_txid(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
+ public static native byte[] TrustedCommitmentTransaction_txid(long this_arg);
+ // MUST_USE_RES struct LDKBuiltCommitmentTransaction TrustedCommitmentTransaction_built_transaction(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
+ public static native long TrustedCommitmentTransaction_built_transaction(long this_arg);
+ // MUST_USE_RES struct LDKTxCreationKeys TrustedCommitmentTransaction_keys(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
+ public static native long TrustedCommitmentTransaction_keys(long this_arg);
+ // MUST_USE_RES struct LDKCResult_CVec_SignatureZNoneZ TrustedCommitmentTransaction_get_htlc_sigs(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg, const uint8_t (*htlc_base_key)[32], const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR channel_parameters);
+ public static native long TrustedCommitmentTransaction_get_htlc_sigs(long this_arg, byte[] htlc_base_key, long channel_parameters);
+ // uint64_t get_commitment_transaction_number_obscure_factor(struct LDKPublicKey broadcaster_payment_basepoint, struct LDKPublicKey countersignatory_payment_basepoint, bool outbound_from_broadcaster);
+ public static native long get_commitment_transaction_number_obscure_factor(byte[] broadcaster_payment_basepoint, byte[] countersignatory_payment_basepoint, boolean outbound_from_broadcaster);
+ // void InitFeatures_free(struct LDKInitFeatures this_ptr);