[C#] Update auto-generated C# bindings
[ldk-java] / c_sharp / src / org / ldk / structs / CoinSelectionSource.cs
index 192231e49935ab77bddfb7dd08eb86a91de10243..0e7a74b0ec338ea3c9044b7fc913ac89e5a9e48d 100644 (file)
@@ -40,8 +40,11 @@ public interface CoinSelectionSourceInterface {
        Result_CoinSelectionNoneZ select_confirmed_utxos(byte[] claim_id, Input[] must_spend, TxOut[] must_pay_to, int target_feerate_sat_per_1000_weight);
        /**Signs and provides the full witness for all inputs within the transaction known to the
         * trait (i.e., any provided via [`CoinSelectionSource::select_confirmed_utxos`]).
+        * 
+        * If your wallet does not support signing PSBTs you can call `psbt.extract_tx()` to get the
+        * unsigned transaction and then sign it with your wallet.
         */
-       Result_TransactionNoneZ sign_tx(byte[] tx);
+       Result_TransactionNoneZ sign_psbt(byte[] psbt);
 }
 
 /**
@@ -88,9 +91,9 @@ public class CoinSelectionSource : CommonBase {
                        long result = ret == null ? 0 : ret.clone_ptr();
                        return result;
                }
-               public long sign_tx(long _tx) {
-                       byte[] _tx_conv = InternalUtils.decodeUint8Array(_tx);
-                       Result_TransactionNoneZ ret = arg.sign_tx(_tx_conv);
+               public long sign_psbt(long _psbt) {
+                       byte[] _psbt_conv = InternalUtils.decodeUint8Array(_psbt);
+                       Result_TransactionNoneZ ret = arg.sign_psbt(_psbt_conv);
                                GC.KeepAlive(arg);
                        long result = ret == null ? 0 : ret.clone_ptr();
                        return result;
@@ -153,11 +156,14 @@ public class CoinSelectionSource : CommonBase {
        /**
         * Signs and provides the full witness for all inputs within the transaction known to the
         * trait (i.e., any provided via [`CoinSelectionSource::select_confirmed_utxos`]).
+        * 
+        * If your wallet does not support signing PSBTs you can call `psbt.extract_tx()` to get the
+        * unsigned transaction and then sign it with your wallet.
         */
-       public Result_TransactionNoneZ sign_tx(byte[] tx) {
-               long ret = bindings.CoinSelectionSource_sign_tx(this.ptr, InternalUtils.encodeUint8Array(tx));
+       public Result_TransactionNoneZ sign_psbt(byte[] psbt) {
+               long ret = bindings.CoinSelectionSource_sign_psbt(this.ptr, InternalUtils.encodeUint8Array(psbt));
                GC.KeepAlive(this);
-               GC.KeepAlive(tx);
+               GC.KeepAlive(psbt);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_TransactionNoneZ ret_hu_conv = Result_TransactionNoneZ.constr_from_ptr(ret);
                return ret_hu_conv;