upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs/storage.md
diff options
context:
space:
mode:
authorNsable-sh <nsable-sh@noreply.git.bitflash.network>2026-08-14 15:03:21 -0300
committerNsable-sh <nsable-sh@noreply.git.bitflash.network>2026-08-14 15:20:54 -0300
commitc49b92a9a79a398b51200e69f7dde8a467b9c925 (patch)
tree25c86213839210a08ff69983e7219e924d5dbb85 /docs/storage.md
parent9b281d890168c7c912857530d787fbc82203d848 (diff)
wallet: add experimental SQLite record store
Diffstat (limited to 'docs/storage.md')
-rw-r--r--docs/storage.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/docs/storage.md b/docs/storage.md
index c1cda45..f75f9b9 100644
--- a/docs/storage.md
+++ b/docs/storage.md
@@ -85,6 +85,25 @@ A future wallet backend must keep these properties:
85 - recovery phrase encrypted and locked, requiring unlock before coverage can 85 - recovery phrase encrypted and locked, requiring unlock before coverage can
86 be audited. 86 be audited.
87 87
88## Experimental SQLite Wallet Store
89
90The SQLite wallet path starts as a byte-preserving record store, not as a new
91wallet format:
92
93```sql
94CREATE TABLE wallet_records (
95 key BLOB PRIMARY KEY NOT NULL,
96 value BLOB NOT NULL
97);
98PRAGMA user_version=1;
99```
100
101Keys and values are the same serialized `CDataStream` bytes used by `wallet.dat`.
102The first implementation is exercised only by `-selftest=wallet-sqlite`; the
103runtime wallet still opens Berkeley DB. The purpose is to prove schema creation,
104raw record write/read, close/reopen behavior, and value preservation before any
105BDB-to-SQLite migration or runtime backend flag exists.
106
88## `blkindex.dat` 107## `blkindex.dat`
89 108
90`blkindex.dat` is accessed through `CTxDB`. 109`blkindex.dat` is accessed through `CTxDB`.