diff --git a/libs/x86_64-pc-windows-gnu/librln.a b/libs/x86_64-pc-windows-gnu/librln.a index 1415f88..5f93bf1 100644 Binary files a/libs/x86_64-pc-windows-gnu/librln.a and b/libs/x86_64-pc-windows-gnu/librln.a differ diff --git a/libs/x86_64-unknown-linux-gnu/librln.a b/libs/x86_64-unknown-linux-gnu/librln.a index ac0e1f3..dac3270 100644 Binary files a/libs/x86_64-unknown-linux-gnu/librln.a and b/libs/x86_64-unknown-linux-gnu/librln.a differ diff --git a/libs/x86_64-unknown-linux-musl/librln.a b/libs/x86_64-unknown-linux-musl/librln.a index 8759d05..e9e2f66 100644 Binary files a/libs/x86_64-unknown-linux-musl/librln.a and b/libs/x86_64-unknown-linux-musl/librln.a differ diff --git a/rln/librln.h b/rln/librln.h index eed8e44..d0a78f8 100644 --- a/rln/librln.h +++ b/rln/librln.h @@ -3,7 +3,7 @@ #include #include -#define TEST_PARAMETERS_INDEX 2 +#define TEST_TREE_HEIGHT 20 /** * The RLN object. @@ -71,10 +71,6 @@ bool generate_rln_proof(struct RLN *ctx, const struct Buffer *input_buffer, struct Buffer *output_buffer); -bool generate_rln_proof_with_witness(struct RLN *ctx, - const struct Buffer *input_buffer, - struct Buffer *output_buffer); - bool verify_rln_proof(const struct RLN *ctx, const struct Buffer *proof_buffer, bool *proof_is_valid_ptr); diff --git a/rln/wrapper.go b/rln/wrapper.go index e01efb7..8885d29 100644 --- a/rln/wrapper.go +++ b/rln/wrapper.go @@ -160,16 +160,21 @@ func (r *RLN) GenerateRLNProof(input []byte) ([]byte, error) { } func (r *RLN) GenerateRLNProofWithWitness(input []byte) ([]byte, error) { - inputBuffer := toCBufferPtr(input) + // TODO: Temporally disabled. In RLNv2 this is not enabled yet. + return nil, errors.New("not implemented") - var output []byte - out := toBuffer(output) + /* + inputBuffer := toCBufferPtr(input) - if !bool(C.generate_rln_proof_with_witness(r.ptr, inputBuffer, &out)) { - return nil, errors.New("could not generate the proof with witness") - } + var output []byte + out := toBuffer(output) - return C.GoBytes(unsafe.Pointer(out.ptr), C.int(out.len)), nil + if !bool(C.generate_rln_proof_with_witness(r.ptr, inputBuffer, &out)) { + return nil, errors.New("could not generate the proof with witness") + } + + return C.GoBytes(unsafe.Pointer(out.ptr), C.int(out.len)), nil + */ } func (r *RLN) VerifyWithRoots(input []byte, roots []byte) (bool, error) { diff --git a/zerokit b/zerokit index 6b86244..7790954 160000 --- a/zerokit +++ b/zerokit @@ -1 +1 @@ -Subproject commit 6b86244b6b8df6ba16f78f7d906fe2348e9f7bec +Subproject commit 7790954c4a450808e807837cec89700032b0adb8