From fcb5613755b08fcb7ae73a3826b1cdce40e2747f Mon Sep 17 00:00:00 2001 From: Marcos Magueta Date: Sun, 27 Oct 2024 01:53:18 -0300 Subject: State of the world with Merkle Tree composition of files (#2) * file state hash calculation with history on replace and insert * add state transitions with linear hashing * add test * format dune files * nix format * delete shared flake * disable fmt check on flake * add nix formatter to flake shell --- lib/interop.ml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/interop.ml') diff --git a/lib/interop.ml b/lib/interop.ml index fdfde5f..28b4fb9 100644 --- a/lib/interop.ml +++ b/lib/interop.ml @@ -16,4 +16,7 @@ module Merkle = struct let hashes = CArray.of_list string hashes in C.Functions.merkle_generate_root (CArray.start hashes) len buf; Ctypes.coerce (ptr char) Ctypes.string buf + + let register_to_merkle content = + C.Functions.register_to_merkle "/tmp/relational-engine/tree" content end -- cgit v1.2.3