mirror of
https://github.com/logos-messaging/go-zerokit-rln-x86_64.git
synced 2026-01-02 05:23:12 +00:00
feat: upgrade to zerokit 0.3.4
This commit is contained in:
parent
2b11e72ef8
commit
6057b9728a
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,amd64,musl,!android LDFLAGS:-L${SRCDIR}/../libs/x86_64-unknown-linux-musl
|
||||
#cgo linux,amd64,!musl,!android LDFLAGS:-L${SRCDIR}/../libs/x86_64-unknown-linux-gnu
|
||||
#cgo windows,amd64 LDFLAGS:-L${SRCDIR}/../libs/x86_64-pc-windows-gnu -lrln -lm -lws2_32 -luserenv
|
||||
|
||||
@ -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