feat: upgrade to zerokit 0.3.2
This commit is contained in:
parent
ea636e5b40
commit
2b11e72ef8
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -53,6 +53,10 @@ bool atomic_operation(struct RLN *ctx,
|
|||
const struct Buffer *leaves_buffer,
|
||||
const struct Buffer *indices_buffer);
|
||||
|
||||
bool seq_atomic_operation(struct RLN *ctx,
|
||||
const struct Buffer *leaves_buffer,
|
||||
const struct Buffer *indices_buffer);
|
||||
|
||||
bool get_root(const struct RLN *ctx, struct Buffer *output_buffer);
|
||||
|
||||
bool get_proof(const struct RLN *ctx, uintptr_t index, struct Buffer *output_buffer);
|
||||
|
|
|
@ -213,6 +213,12 @@ func (r *RLN) AtomicOperation(index uint, leaves []byte, indices []byte) bool {
|
|||
return bool(C.atomic_operation(r.ptr, C.uintptr_t(index), leavesBuffer, indicesBuffer))
|
||||
}
|
||||
|
||||
func (r *RLN) SeqAtomicOperation(leaves []byte, indices []byte) bool {
|
||||
leavesBuffer := toCBufferPtr(leaves)
|
||||
indicesBuffer := toCBufferPtr(indices)
|
||||
return bool(C.seq_atomic_operation(r.ptr, leavesBuffer, indicesBuffer))
|
||||
}
|
||||
|
||||
func (r *RLN) DeleteLeaf(index uint) bool {
|
||||
return bool(C.delete_leaf(r.ptr, C.uintptr_t(index)))
|
||||
}
|
||||
|
|
2
zerokit
2
zerokit
|
@ -1 +1 @@
|
|||
Subproject commit d015c4ab591cb7b260a92a077d3cd1d76609667f
|
||||
Subproject commit b51896c3a710f567fc7e054681767d6547a8eb9b
|
Loading…
Reference in New Issue