mssmt-lmdb

An LMDB-backed Merkle-Sum Sparse Merkle Tree.
git clone git://git.jtobin.io/mssmt-lmdb.git
Log | Files | Refs | README | LICENSE | git.jtobin.io

commit 6afd1f70574d5b4fa61c0654818a260ab613fc32
parent 30a4baff7b00a7b97511b27ea14577b58bbeb7cd
Author: Jared Tobin <jared@jtobin.io>
Date:   Thu,  5 Nov 2026 07:43:26 +0400

meta: description tweaks

Diffstat:
MREADME.md | 15++++++++-------
Mflake.nix | 2+-
Mmssmt-lmdb.cabal | 4++--
3 files changed, 11 insertions(+), 10 deletions(-)

diff --git a/README.md b/README.md @@ -1,6 +1,6 @@ # mssmt-lmdb -Merkle-sum sparse merkle trees (MS-SMTs) held in [LMDB][lmdb], via +Merkle-Sum Sparse Merkle Trees (MS-SMTs) held in [LMDB][lmdb], via mssmt and [ppad-lmdb][plmdb]. A store holds any number of named trees in an LMDB environment: each @@ -13,7 +13,7 @@ for each kind of tree that mssmt provides: whose branches commit to the hash and sum of each of their children. * `Data.MSSMT.LMDB.Aggregate`: for trees whose branches commit to their - children's hashes and the sum of their sums, as in Taproot Assets. + children's hashes and the sum of their sums. ## Usage @@ -67,11 +67,11 @@ one transaction, takes roughly 1.8 ms for a split tree, and 15 ms for an aggregate one. A proof, in its own read transaction, takes roughly 5 μs in a store of 1000 leaves, and 12 μs in one of 100000. -The benchmark suite follows that of the Taproot Assets SQL-backed tree -store, against which aggregate trees here are about 3 to 15 times -faster at inserting batches, and 35 to 55 times faster at proving. -Note that on macOS, LMDB syncs commits with `fsync`, rather than the -`F_FULLFSYNC` that Taproot Assets configures SQLite to use. +The benchmark suite follows that of the [Taproot Assets][tapd] +SQL-backed tree store, against which aggregate trees here are about 3 +to 15 times faster at inserting batches, and 35 to 55 times faster at +proving. Note that on macOS, LMDB syncs commits with `fsync`, rather +than the `F_FULLFSYNC` that Taproot Assets configures SQLite to use. Use `cabal bench` to run the benchmark suite. You should compile with the 'llvm' flag for maximum performance. @@ -100,6 +100,7 @@ $ cabal repl mssmt-lmdb to get a REPL for the main library, or `cabal test` to run the test suite. +[tapd]: https://github.com/lightninglabs/taproot-assets [lmdb]: https://www.symas.com/lmdb [plmdb]: https://github.com/ppad-tech/lmdb [nixos]: https://nixos.org/ diff --git a/flake.nix b/flake.nix @@ -1,5 +1,5 @@ { - description = "An LMDB-backed merkle-sum sparse merkle tree."; + description = "An LMDB-backed Merkle-Sum Sparse Merkle Tree."; inputs = { mssmt = { diff --git a/mssmt-lmdb.cabal b/mssmt-lmdb.cabal @@ -1,7 +1,7 @@ cabal-version: 3.0 name: mssmt-lmdb version: 0.1.0 -synopsis: An LMDB-backed merkle-sum sparse merkle tree +synopsis: An LMDB-backed Merkle-Sum Sparse Merkle Tree. license: MIT license-file: LICENSE author: Jared Tobin @@ -10,7 +10,7 @@ category: Data Structures build-type: Simple tested-with: GHC == 9.10.3 description: - A merkle-sum sparse merkle tree (MS-SMT) held in an LMDB environment, + A Merkle-Sum Sparse Merkle Tree (MS-SMT) held in an LMDB environment, via mssmt and ppad-lmdb. flag llvm