mirror of
https://github.com/logos-messaging/go-zerokit-rln-arm.git
synced 2026-01-02 13:33:12 +00:00
feat: upgrade to zerokit 0.3.4
This commit is contained in:
parent
05f4cda614
commit
d9528d416c
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -42,6 +42,8 @@ bool set_leaf(struct RLN *ctx, uintptr_t index, const struct Buffer *input_buffe
|
||||
|
||||
bool get_leaf(struct RLN *ctx, uintptr_t index, struct Buffer *output_buffer);
|
||||
|
||||
uintptr_t leaves_set(struct RLN *ctx);
|
||||
|
||||
bool set_next_leaf(struct RLN *ctx, const struct Buffer *input_buffer);
|
||||
|
||||
bool set_leaves_from(struct RLN *ctx, uintptr_t index, const struct Buffer *input_buffer);
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
package rln
|
||||
|
||||
/*
|
||||
#cgo LDFLAGS:-lrln -ldl -lm
|
||||
#cgo LDFLAGS: -lrln -ldl -lm
|
||||
#cgo linux,arm LDFLAGS:-L${SRCDIR}/../libs/armv7-linux-androideabi
|
||||
#cgo linux,arm64 LDFLAGS:-L${SRCDIR}/../libs/aarch64-unknown-linux-gnu
|
||||
|
||||
|
||||
@ -244,3 +244,7 @@ func (r *RLN) GetLeaf(index uint) ([]byte, error) {
|
||||
|
||||
return C.GoBytes(unsafe.Pointer(out.ptr), C.int(out.len)), nil
|
||||
}
|
||||
|
||||
func (r *RLN) LeavesSet() uint {
|
||||
return uint(C.leaves_set(r.ptr))
|
||||
}
|
||||
|
||||
2
zerokit
2
zerokit
@ -1 +1 @@
|
||||
Subproject commit b51896c3a710f567fc7e054681767d6547a8eb9b
|
||||
Subproject commit b903d8d740e0b8b82057bcc5377ddce05ae5676b
|
||||
Loading…
x
Reference in New Issue
Block a user