mirror of
https://github.com/logos-messaging/go-zerokit-rln-apple.git
synced 2026-05-02 15:53:14 +00:00
Comment to fix
This commit is contained in:
parent
b3f48e7249
commit
8e3d390f8f
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user