mirror of
https://github.com/logos-messaging/go-zerokit-rln-apple.git
synced 2026-01-02 13:23:13 +00:00
feat: upgrade to zerokit 0.3.2
This commit is contained in:
parent
70f1ff564b
commit
1d6d18a03e
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 *leaves_buffer,
|
||||||
const struct Buffer *indices_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_root(const struct RLN *ctx, struct Buffer *output_buffer);
|
||||||
|
|
||||||
bool get_proof(const struct RLN *ctx, uintptr_t index, 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))
|
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 {
|
func (r *RLN) DeleteLeaf(index uint) bool {
|
||||||
return bool(C.delete_leaf(r.ptr, C.uintptr_t(index)))
|
return bool(C.delete_leaf(r.ptr, C.uintptr_t(index)))
|
||||||
}
|
}
|
||||||
|
|||||||
2
zerokit
2
zerokit
@ -1 +1 @@
|
|||||||
Subproject commit d015c4ab591cb7b260a92a077d3cd1d76609667f
|
Subproject commit b51896c3a710f567fc7e054681767d6547a8eb9b
|
||||||
Loading…
x
Reference in New Issue
Block a user