feat: upgrade to zerokit 0.3.4

This commit is contained in:
Richard Ramos 2023-09-14 19:06:37 -04:00
parent 1d6d18a03e
commit 87caaeb9e6
No known key found for this signature in database
GPG Key ID: 1CE87DB518195760
6 changed files with 8 additions and 2 deletions

Binary file not shown.

Binary file not shown.

View File

@ -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);

View File

@ -1,7 +1,7 @@
package rln
/*
#cgo LDFLAGS:-lrln -ldl -lm
#cgo LDFLAGS: -lrln -ldl -lm
#cgo darwin,386,!ios LDFLAGS:-L${SRCDIR}/../libs/i686-apple-darwin
#cgo darwin,arm64,!ios LDFLAGS:-L${SRCDIR}/../libs/aarch64-apple-darwin
#cgo darwin,amd64,!ios LDFLAGS:-L${SRCDIR}/../libs/x86_64-apple-darwin

View File

@ -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))
}

@ -1 +1 @@
Subproject commit b51896c3a710f567fc7e054681767d6547a8eb9b
Subproject commit b903d8d740e0b8b82057bcc5377ddce05ae5676b