diff --git a/libs/x86_64-pc-windows-gnu/librln.a b/libs/x86_64-pc-windows-gnu/librln.a
index b42ded2..883f88c 100644
Binary files a/libs/x86_64-pc-windows-gnu/librln.a and b/libs/x86_64-pc-windows-gnu/librln.a differ
diff --git a/libs/x86_64-unknown-linux-gnu/librln.a b/libs/x86_64-unknown-linux-gnu/librln.a
index 119853b..15f4dc4 100644
Binary files a/libs/x86_64-unknown-linux-gnu/librln.a and b/libs/x86_64-unknown-linux-gnu/librln.a differ
diff --git a/libs/x86_64-unknown-linux-musl/librln.a b/libs/x86_64-unknown-linux-musl/librln.a
index d2dbdf2..eab9adf 100644
Binary files a/libs/x86_64-unknown-linux-musl/librln.a and b/libs/x86_64-unknown-linux-musl/librln.a differ
diff --git a/rln/librln.h b/rln/librln.h
index d4061f2..b88d169 100644
--- a/rln/librln.h
+++ b/rln/librln.h
@@ -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);
diff --git a/rln/link.go b/rln/link.go
index 4359afd..af23301 100644
--- a/rln/link.go
+++ b/rln/link.go
@@ -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
diff --git a/rln/wrapper.go b/rln/wrapper.go
index c7f8332..c2d320c 100644
--- a/rln/wrapper.go
+++ b/rln/wrapper.go
@@ -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))
+}
diff --git a/zerokit b/zerokit
index b51896c..b903d8d 160000
--- a/zerokit
+++ b/zerokit
@@ -1 +1 @@
-Subproject commit b51896c3a710f567fc7e054681767d6547a8eb9b
+Subproject commit b903d8d740e0b8b82057bcc5377ddce05ae5676b