]> git.bitcoin.ninja Git - rust-lightning/commit
Add `KVStore` interface trait
authorElias Rohrer <dev@tnull.de>
Tue, 1 Aug 2023 08:24:53 +0000 (10:24 +0200)
committerElias Rohrer <dev@tnull.de>
Tue, 22 Aug 2023 15:41:46 +0000 (17:41 +0200)
commitef7448c3bb8c455cf81a3c36277fed8efeb23da8
treecfb29d3eeccc538c9ed4b3335a737072407f52e3
parent131560e08fa4f66b8ce9302cde637f87602c86b0
Add `KVStore` interface trait

We upstream the `KVStore` interface trait from LDK Node, which will
replace `KVStorePersister` in the coming commits.

Besides persistence, `KVStore` implementations will also offer to `list`
keys present in a given `namespace` and `read` the stored values.
lightning/src/util/persist.rs