[Feat] For prover 4.6.1 (#1742)

This commit is contained in:
Ho
2025-10-24 16:18:40 +09:00
committed by GitHub
parent bfc0fdd7ce
commit 1985e54ab3
16 changed files with 714 additions and 334 deletions

View File

@@ -238,6 +238,19 @@ pub unsafe extern "C" fn gen_wrapped_proof(
}
}
/// # Safety
#[no_mangle]
pub unsafe extern "C" fn univ_task_compatibility_fix(task_json: *const c_char) -> *mut c_char {
let task_json_str = c_char_to_str(task_json);
match libzkp::univ_task_compatibility_fix(task_json_str) {
Ok(result) => CString::new(result).unwrap().into_raw(),
Err(e) => {
tracing::error!("univ_task_compability_fix failed, error: {:#}", e);
std::ptr::null_mut()
}
}
}
/// # Safety
#[no_mangle]
pub unsafe extern "C" fn release_string(ptr: *mut c_char) {