Fix witness not yet implemented

This commit is contained in:
alrevuelta 2024-05-22 12:57:55 +02:00
parent fa28e82f40
commit b3f48e7249
No known key found for this signature in database
GPG Key ID: F345C9F3CCDB886E
2 changed files with 4 additions and 5 deletions

View File

@ -3,7 +3,7 @@
#include <stdint.h>
#include <stdlib.h>
#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);

View File

@ -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