mirror of
https://github.com/logos-storage/logos-storage-proofs.git
synced 2026-01-02 13:33:10 +00:00
add nim ffi and genffi build task
This commit is contained in:
parent
446066718b
commit
fb32a7217e
@ -25,4 +25,4 @@ import codex_proofs_ffi
|
|||||||
export codex_proofs_ffi
|
export codex_proofs_ffi
|
||||||
|
|
||||||
when isMainModule:
|
when isMainModule:
|
||||||
|
init()
|
||||||
|
|||||||
@ -37,9 +37,9 @@ impl ProofCtx {
|
|||||||
/// Construct a StorageProofs object
|
/// Construct a StorageProofs object
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub unsafe extern "C" fn init(
|
pub unsafe extern "C" fn init(
|
||||||
r1cs: *const &Buffer,
|
r1cs: const Buffer,
|
||||||
wasm: *const &Buffer,
|
wasm: const Buffer,
|
||||||
zkey: *const &Buffer,
|
zkey: const Buffer,
|
||||||
) -> *mut StorageProofs {
|
) -> *mut StorageProofs {
|
||||||
let r1cs = {
|
let r1cs = {
|
||||||
if r1cs.is_null() {
|
if r1cs.is_null() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user