Comment to fix

This commit is contained in:
alrevuelta 2024-05-22 13:02:47 +02:00
parent b3f48e7249
commit 8e3d390f8f
No known key found for this signature in database
GPG Key ID: F345C9F3CCDB886E

View File

@ -163,16 +163,18 @@ 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)
/*
inputBuffer := toCBufferPtr(input)
var output []byte
out := toBuffer(output)
var output []byte
out := toBuffer(output)
if !bool(C.generate_rln_proof_with_witness(r.ptr, inputBuffer, &out)) {
return nil, errors.New("could not generate the proof with witness")
}
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
return C.GoBytes(unsafe.Pointer(out.ptr), C.int(out.len)), nil
*/
}
func (r *RLN) VerifyWithRoots(input []byte, roots []byte) (bool, error) {