mirror of
https://github.com/logos-messaging/go-rln.git
synced 2026-01-09 00:13:07 +00:00
starting to fix bindings
This commit is contained in:
parent
5d5f2e47cb
commit
8d6a11f547
@ -20,7 +20,7 @@ func (r *RLN) Hash(input []byte) []byte {
|
||||
|
||||
C.hash(r.ptr, &in, &in.len, out)
|
||||
|
||||
return []byte{}
|
||||
return C.GoBytes(unsafe.Pointer(out.ptr), C.int(out.len))
|
||||
}
|
||||
|
||||
func (r *RLN) CircuitFromParams(depth int, parameters []byte) bool {
|
||||
|
||||
8
rln/rln_test.go
Normal file
8
rln/rln_test.go
Normal file
@ -0,0 +1,8 @@
|
||||
package rln
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestHash(t *testing.T) {
|
||||
rln := &RLN{}
|
||||
rln.Hash([]byte{1, 2, 3})
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user