mirror of
https://github.com/codex-storage/codex-storage-proofs.git
synced 2025-02-20 22:48:11 +00:00
add back missing unsafe blocks
This commit is contained in:
parent
7c9db9486c
commit
a0e7df3f38
@ -283,8 +283,8 @@ mod tests {
|
|||||||
len: wasm_path.len(),
|
len: wasm_path.len(),
|
||||||
};
|
};
|
||||||
|
|
||||||
let prover_ptr = init(&r1cs, &wasm, std::ptr::null());
|
let prover_ptr = unsafe { init(&r1cs, &wasm, std::ptr::null()) };
|
||||||
let prove_ctx = prove(
|
let prove_ctx = unsafe { prove(
|
||||||
prover_ptr,
|
prover_ptr,
|
||||||
&chunks_buff as *const Buffer,
|
&chunks_buff as *const Buffer,
|
||||||
&siblings_buff as *const Buffer,
|
&siblings_buff as *const Buffer,
|
||||||
@ -294,7 +294,7 @@ mod tests {
|
|||||||
&root_buff as *const Buffer, // root
|
&root_buff as *const Buffer, // root
|
||||||
&root_buff as *const Buffer, // pubkey
|
&root_buff as *const Buffer, // pubkey
|
||||||
&root_buff as *const Buffer, // salt/block hash
|
&root_buff as *const Buffer, // salt/block hash
|
||||||
);
|
) };
|
||||||
|
|
||||||
assert!(prove_ctx.is_null() == false);
|
assert!(prove_ctx.is_null() == false);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user