From b3f48e7249a0c95c028241b9a8c4b98573114484 Mon Sep 17 00:00:00 2001 From: alrevuelta Date: Wed, 22 May 2024 12:57:55 +0200 Subject: [PATCH] Fix witness not yet implemented --- rln/librln.h | 6 +----- rln/wrapper.go | 3 +++ 2 files changed, 4 insertions(+), 5 deletions(-) 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..aae0d7a 100644 --- a/rln/wrapper.go +++ b/rln/wrapper.go @@ -160,6 +160,9 @@ func (r *RLN) GenerateRLNProof(input []byte) ([]byte, error) { } func (r *RLN) GenerateRLNProofWithWitness(input []byte) ([]byte, error) { + // TODO: Temporally disabled. In RLNv2 this is not enabled yet. + return errors.New("not implemented") + inputBuffer := toCBufferPtr(input) var output []byte