mirror of
https://github.com/logos-messaging/go-zerokit-rln-x86_64.git
synced 2026-01-04 06:23:08 +00:00
chore: bump zerokit to v0.5.0 including RLN v2 (#4)
Co-authored-by: Richard Ramos <info@richardramos.me>
This commit is contained in:
parent
f90cfc88a1
commit
6f16d12c5a
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -3,7 +3,7 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#define TEST_PARAMETERS_INDEX 2
|
#define TEST_TREE_HEIGHT 20
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The RLN object.
|
* The RLN object.
|
||||||
@ -71,10 +71,6 @@ bool generate_rln_proof(struct RLN *ctx,
|
|||||||
const struct Buffer *input_buffer,
|
const struct Buffer *input_buffer,
|
||||||
struct Buffer *output_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,
|
bool verify_rln_proof(const struct RLN *ctx,
|
||||||
const struct Buffer *proof_buffer,
|
const struct Buffer *proof_buffer,
|
||||||
bool *proof_is_valid_ptr);
|
bool *proof_is_valid_ptr);
|
||||||
|
|||||||
@ -160,6 +160,10 @@ func (r *RLN) GenerateRLNProof(input []byte) ([]byte, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (r *RLN) GenerateRLNProofWithWitness(input []byte) ([]byte, error) {
|
func (r *RLN) GenerateRLNProofWithWitness(input []byte) ([]byte, error) {
|
||||||
|
// TODO: Temporally disabled. In RLNv2 this is not enabled yet.
|
||||||
|
return nil, errors.New("not implemented")
|
||||||
|
|
||||||
|
/*
|
||||||
inputBuffer := toCBufferPtr(input)
|
inputBuffer := toCBufferPtr(input)
|
||||||
|
|
||||||
var output []byte
|
var output []byte
|
||||||
@ -170,6 +174,7 @@ func (r *RLN) GenerateRLNProofWithWitness(input []byte) ([]byte, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return C.GoBytes(unsafe.Pointer(out.ptr), C.int(out.len)), nil
|
return C.GoBytes(unsafe.Pointer(out.ptr), C.int(out.len)), nil
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *RLN) VerifyWithRoots(input []byte, roots []byte) (bool, error) {
|
func (r *RLN) VerifyWithRoots(input []byte, roots []byte) (bool, error) {
|
||||||
|
|||||||
2
zerokit
2
zerokit
@ -1 +1 @@
|
|||||||
Subproject commit 6b86244b6b8df6ba16f78f7d906fe2348e9f7bec
|
Subproject commit 7790954c4a450808e807837cec89700032b0adb8
|
||||||
Loading…
x
Reference in New Issue
Block a user