Update auto-generated bindings to 0.0.103
[ldk-java] / src / main / java / org / ldk / structs / Sign.java
index a9304525a17490b3b7594adac8792c98d5e842ba..5a0221581937b7c8d92053669fecff5c017de6ed 100644 (file)
@@ -4,6 +4,7 @@ import org.ldk.impl.bindings;
 import org.ldk.enums.*;
 import org.ldk.util.*;
 import java.util.Arrays;
+import javax.annotation.Nullable;
 
 /**
  * A cloneable signer.
@@ -20,7 +21,6 @@ public class Sign extends CommonBase {
                super(bindings.LDKSign_new(arg, BaseSign, pubkeys == null ? 0 : pubkeys.ptr & ~1));
                this.ptrs_to.add(arg);
                this.ptrs_to.add(BaseSign);
-               this.ptrs_to.add(pubkeys);
                this.bindings_instance = arg;
        }
        @Override @SuppressWarnings("deprecation")
@@ -45,6 +45,16 @@ public class Sign extends CommonBase {
                }, BaseSign.new_impl(BaseSign_impl, pubkeys).bindings_instance, pubkeys);
                return impl_holder.held;
        }
+
+       /**
+        * Gets the underlying BaseSign.
+        */
+       public BaseSign get_base_sign() {
+               BaseSign res = new BaseSign(null, bindings.LDKSign_get_BaseSign(this.ptr));
+               this.ptrs_to.add(res);
+               return res;
+       }
+
        /**
         * Serialize the object into a byte array
         */
@@ -58,6 +68,7 @@ public class Sign extends CommonBase {
         */
        public Sign clone() {
                long ret = bindings.Sign_clone(this.ptr);
+               if (ret >= 0 && ret <= 4096) { return null; }
                Sign ret_hu_conv = new Sign(null, ret);
                ret_hu_conv.ptrs_to.add(this);
                return ret_hu_conv;