mirror of
https://github.com/logos-messaging/go-rln.git
synced 2026-01-07 15:33:11 +00:00
removes useless function, now in new
This commit is contained in:
parent
b64bfcaaa3
commit
d1a9127af3
@ -76,12 +76,6 @@ func (r *RLN) Hash(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) CircuitFromParams(depth int, parameters []byte) bool {
|
|
||||||
ptr := r.ptr
|
|
||||||
buf := toBuffer(parameters)
|
|
||||||
return bool(C.new_circuit_from_params(C.ulong(depth), &buf, &ptr))
|
|
||||||
}
|
|
||||||
|
|
||||||
func (r *RLN) GenerateProof(input, output []byte) bool {
|
func (r *RLN) GenerateProof(input, output []byte) bool {
|
||||||
inputBuf := toBuffer(input)
|
inputBuf := toBuffer(input)
|
||||||
outputBuf := toBuffer(output)
|
outputBuf := toBuffer(output)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user