mirror of
https://github.com/logos-storage/logos-storage-proofs.git
synced 2026-01-03 22:13:11 +00:00
add example ffi test
This commit is contained in:
parent
a84d7b5241
commit
9a3259b8a7
@ -48,8 +48,11 @@ when isMainModule:
|
|||||||
echo "storage_ctx: ", storage_ctx.repr
|
echo "storage_ctx: ", storage_ctx.repr
|
||||||
assert storage_ctx != nil
|
assert storage_ctx != nil
|
||||||
|
|
||||||
let
|
var
|
||||||
mpack_arg_path = "test/proof_test.mpack"
|
mpack_arg_path = "test/proof_test.mpack"
|
||||||
proofArgs = unsafeBufferFromFile(mpack_arg_path)
|
proofBuff = unsafeBufferFromFile(mpack_arg_path)
|
||||||
echo "proofArgs:size: ", proofArgs.len
|
echo "proofArgs:size: ", proofBuff.len
|
||||||
# prove_mpack_ext()
|
let res = prove_mpack_ext(storage_ctx, addr proofBuff)
|
||||||
|
|
||||||
|
echo "result: ", res.repr
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user