From 2eab114a120c7818861c0640ecdc300cf7366e53 Mon Sep 17 00:00:00 2001 From: Marcos Magueta Date: Sat, 26 Oct 2024 14:26:10 -0300 Subject: Basic storage with C interop (#1) * writer command design * dune build with shared core lib * port c lib project inside ocaml * os specific dynamic link * fix project name on flake * fix: cmake cxx version breaking merklecpp * finish write to disk and update maps func * add non atomic commit to transaction graph * merkle tree binding for generating root hash * disk module refactor --------- Co-authored-by: Renan Lopes --- shared/librelational_engine/library.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 shared/librelational_engine/library.h (limited to 'shared/librelational_engine/library.h') diff --git a/shared/librelational_engine/library.h b/shared/librelational_engine/library.h new file mode 100644 index 0000000..ebf8497 --- /dev/null +++ b/shared/librelational_engine/library.h @@ -0,0 +1,9 @@ +#ifndef MERKLECPP_STUB_LIBRARY_H +#define MERKLECPP_STUB_LIBRARY_H + +#define HASH_SIZE 64 + +extern void merkle_generate_root(char**, const int, char*); +extern void compute_hash(char*, const char*); + +#endif //MERKLECPP_STUB_LIBRARY_H -- cgit v1.2.3