You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: extract wsdb into native-packages, decoupled from barretenberg
Moves the world-state DB server (+ persistent merkle), the lmdb C++ wrapper
(lmdblib), and the kv-store NAPI (kvdb) out of barretenberg into
native-packages siblings, leaving barretenberg free of DB code — and in the
same step decouples wsdb from barretenberg's C++ headers.
The extraction splits barretenberg's merkle_tree headers: barretenberg keeps
only the response/types the AVM's LowLevelMerkleDBInterface returns and its
hints serialize, while the full async tree engine (content-addressed trees +
world_state) and its response/tree_meta/types move into wsdb. wsdb then
compiles with zero barretenberg headers — its own FieldElement (32-byte
canonical) + a poseidon2 c_bind are the only barretenberg link. Forks the
bb-free common utils, moves merkle_tree Signal into wsdb, keeps lmdb keys
backward-compatible (little-endian uint256), switches lmdblib to upstream
msgpack + FetchContent (bb-free), and wires the lmdblib/wsdb C++ tests into the
CI test engine.
The standalone aztec-wsdb binary and the kvdb .node build against prebuilt
barretenberg; lmdblib/kvdb are fully barretenberg-free.
0 commit comments