https://github.com/chrisschinnerl/boltdbrootkeystore
An implementation of bakery.RootKeyStore that uses boltdb as a backend
https://github.com/chrisschinnerl/boltdbrootkeystore
boltdb database go macaroons
Last synced: 22 days ago
JSON representation
An implementation of bakery.RootKeyStore that uses boltdb as a backend
- Host: GitHub
- URL: https://github.com/chrisschinnerl/boltdbrootkeystore
- Owner: ChrisSchinnerl
- License: mit
- Created: 2018-10-06T02:09:32.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-07T16:00:12.000Z (over 7 years ago)
- Last Synced: 2025-08-06T16:09:50.052Z (10 months ago)
- Topics: boltdb, database, go, macaroons
- Language: Go
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# boltdbrootkeystore
An implementation of bakery.RootKeyStore that uses boltdb as a persistent store.
This implementation uses the dbrootkeystore.RootKeys of the bakery for generating and caching chunks by implementing the dbrootkeystore.Backing interface with boltb as a backend. To improve performance, the database uses two buckets. The `keyBucket` stores root keys by id and the `seqBucket` one stores the key ids using an auto-incremented index. For that reason it is assumed that keys are always inserted in the same order as they are created.