add no mangle tag

This commit is contained in:
kilic 2020-12-15 20:27:04 +03:00
parent 4ce704b6d8
commit 30e5121823
1 changed files with 3 additions and 2 deletions

View File

@ -63,7 +63,7 @@ pub unsafe extern "C" fn generate_proof(
}
#[no_mangle]
pub unsafe fn verify(
pub unsafe extern "C" fn verify(
ctx: *const RLN<Bn256>,
proof_buffer: *const Buffer,
public_inputs_buffer: *const Buffer,
@ -83,7 +83,8 @@ pub unsafe fn verify(
true
}
pub unsafe fn hash(
#[no_mangle]
pub unsafe extern "C" fn hash(
ctx: *const RLN<Bn256>,
inputs_buffer: *const Buffer,
input_len: *const usize,