import org.ldk.enums.*;
import org.ldk.util.*;
import java.util.Arrays;
+import javax.annotation.Nullable;
/**
* A cloneable signer.
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")
}, 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
*/
*/
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;