mirror of
https://github.com/luxfi/mpc.git
synced 2026-09-24 00:26:24 +00:00
- Replace direct github.com/luxfi/zapdb/v4 imports with github.com/luxfi/database abstraction in pkg/kvstore/ (zapdb.New + encdb.New for encryption) - BadgerKVStore now uses database.Database interface internally — backend is pluggable (zapdb/leveldb/memdb) without changing MPC code - Remove custom badger_logger.go (database module handles its own logging) - Update BadgerBackupExecutor to use database.Database instead of *badger.DB; RestoreAllBackupsEncrypted loads into raw zapdb (values are already individually encrypted by encdb) - Rewrite backup_test.go to use KVStore interface instead of raw badger API - Update migration script to use KVStore Put/Get/Delete/Keys instead of txn API - Rename all user-visible "BadgerDB"/"Badger" strings to "ZapDB" in logs, prompts, and comments across cmd/mpcd/main.go, pkg/kvstore/, pkg/transport/ - Fix backup_test.go type reference: badgerBackupExecutor→BadgerBackupExecutor (resolves CI test and lint failures)