+ static Result_SecretKeySecpErrorZ constr_from_ptr(long ptr) {
+ if (bindings.LDKCResult_SecretKeySecpErrorZ_result_ok(ptr)) {
+ return new Result_SecretKeySecpErrorZ_OK(null, ptr);
+ } else {
+ return new Result_SecretKeySecpErrorZ_Err(null, ptr);
+ }
+ }