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

LMDB.hs (749B)


      1 {-# OPTIONS_HADDOCK prune #-}
      2 
      3 -- |
      4 -- Module: Data.MSSMT.LMDB
      5 -- Copyright: (c) 2026 Jared Tobin
      6 -- License: MIT
      7 -- Maintainer: Jared Tobin <jared@jtobin.io>
      8 --
      9 -- Merkle-sum sparse merkle trees (MS-SMTs) held in LMDB, via
     10 -- "Data.MSSMT" and "Database.LMDB". There's a store for each kind of
     11 -- tree:
     12 --
     13 -- * "Data.MSSMT.LMDB.Split": for trees whose branches commit to the
     14 --   hash and sum of each of their children. This is the default,
     15 --   re-exported here.
     16 --
     17 -- * "Data.MSSMT.LMDB.Aggregate": for trees whose branches commit to
     18 --   their children's hashes and the sum of their sums, as in Taproot
     19 --   Assets.
     20 
     21 module Data.MSSMT.LMDB (
     22     module Data.MSSMT.LMDB.Split
     23   ) where
     24 
     25 import Data.MSSMT.LMDB.Split
     26 import Prelude hiding (lookup)