diff --git a/libs/aarch64-apple-darwin/librln.a b/libs/aarch64-apple-darwin/librln.a index fc1c7c3..410c542 100644 Binary files a/libs/aarch64-apple-darwin/librln.a and b/libs/aarch64-apple-darwin/librln.a differ diff --git a/libs/x86_64-apple-darwin/librln.a b/libs/x86_64-apple-darwin/librln.a index 851b94b..d70defb 100644 Binary files a/libs/x86_64-apple-darwin/librln.a and b/libs/x86_64-apple-darwin/librln.a differ diff --git a/rln/librln.h b/rln/librln.h index 60e4545..65432b1 100644 --- a/rln/librln.h +++ b/rln/librln.h @@ -39,6 +39,8 @@ bool delete_leaf(struct RLN *ctx, uintptr_t index); bool set_leaf(struct RLN *ctx, uintptr_t index, const struct Buffer *input_buffer); +bool get_leaf(struct RLN *ctx, uintptr_t index, struct Buffer *output_buffer); + 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); @@ -88,6 +90,12 @@ bool recover_id_secret(const struct RLN *ctx, const struct Buffer *input_proof_buffer_2, struct Buffer *output_buffer); +bool set_metadata(struct RLN *ctx, const struct Buffer *input_buffer); + +bool get_metadata(const struct RLN *ctx, struct Buffer *output_buffer); + +bool flush(struct RLN *ctx); + bool hash(const struct Buffer *input_buffer, struct Buffer *output_buffer); bool poseidon_hash(const struct Buffer *input_buffer, struct Buffer *output_buffer);