+
+ /**
+ * Creates a new CResult_SecretKeyErrorZ in the success state.
+ */
+ public static Result_SecretKeyErrorZ constructor_ok(byte[] o) {
+ long ret = bindings.CResult_SecretKeyErrorZ_ok(o);
+ Result_SecretKeyErrorZ ret_hu_conv = Result_SecretKeyErrorZ.constr_from_ptr(ret);
+ return ret_hu_conv;
+ }
+
+ /**
+ * Creates a new CResult_SecretKeyErrorZ in the error state.
+ */
+ public static Result_SecretKeyErrorZ constructor_err(LDKSecp256k1Error e) {
+ long ret = bindings.CResult_SecretKeyErrorZ_err(e);
+ Result_SecretKeyErrorZ ret_hu_conv = Result_SecretKeyErrorZ.constr_from_ptr(ret);
+ return ret_hu_conv;
+ }
+