macaroons: futher abstract NewService from root key store impl

In this commit, we modify the `macaroons.NewService` consturctor to
accept the main interface rather than the raw DB. This allows us to use
other backends other than bolt or the kvdb interface to store the
macaroon root keys.

We also create a new ExtendedRootKeyStore interface that implements some
of the more advanced features we use such as macaroon encryption and
password rotation.
This commit is contained in:
Olaoluwa Osuntokun committed 2022-07-06 18:59:50 -07:00
1 parent 947639bb60
commit e073b1d343
5 files changed
+91 -24

No files matched your search

+3 -1
View File
@@ -5,7 +5,9 @@
* [Fixed error typo](https://github.com/lightningnetwork/lnd/pull/6659).
* [The macaroon key store implementation was refactored to be more generally useable](https://github.com/lightningnetwork/lnd/pull/6509).
# Contributors (Alphabetical Order)
* Carla Kirk-Cohen
* ErikEk
* Olaoluwa Osuntokun