lnd.xprv/watchtower/wtdb
Conner Fromknecht 9bd73c0a85
wtdb+wtclient: segregate session-key-index reservations by blob-type
This commit introduces a change in the key format used to reserve/lookup
session-key-indexes. Currently the reservations are stored under the
tower id, however this creates issues when multiple clients are using
the same database since only one reservation is permitted per tower.

We fix this by appending the blob type to the session-key-index locator.
This allows multiple clients to reserve keys for the same tower, but
still limits each client to one outstanding reservation. The changes are
made in a way such that we fall back to the legacy format if the a
reservation under the new format is not found, but only if the blob type
matches blob.TypeAltruistCommit, which is so far the only actively
deployed blob type.
2020-12-01 16:24:16 -08:00
..
client_chan_summary.go watchtower/wtdb: add ClientDB 2019-05-24 18:24:41 -07:00
client_db_test.go wtdb+wtclient: segregate session-key-index reservations by blob-type 2020-12-01 16:24:16 -08:00
client_db.go wtdb+wtclient: segregate session-key-index reservations by blob-type 2020-12-01 16:24:16 -08:00
client_session.go watchtower: use ECDH interface for watchtower session 2020-05-20 09:06:57 +02:00
codec_test.go watchtower/wtdb/client_chan_summary: add ClientChanSummary 2019-05-23 20:48:36 -07:00
codec.go chainfee: create new chainfee package extracting fees from lnwallet 2019-10-31 16:41:57 -07:00
db_common.go multi: add reset closure to kvdb.View 2020-11-05 17:57:12 +01:00
log.go multi: remove dead code 2019-09-10 17:21:59 +02:00
session_id.go watchtower/wtdb/session_id: adds SessoinID, client pubkey 2018-10-24 20:18:21 -07:00
session_info.go watchtower/multi: move BreachHint to blob pkg 2019-06-13 17:40:04 -07:00
session_state_update.go watchtower/multi: move BreachHint to blob pkg 2019-06-13 17:40:04 -07:00
tower_db_test.go watchtower/wtdb: apply sanity checks to session policy before accepting 2019-06-13 19:54:22 -07:00
tower_db.go multi: add reset closure to kvdb.Update 2020-11-05 17:57:12 +01:00
tower.go watchtower: load persisted towers upon TowerClient creation 2019-07-30 15:18:17 -07:00
version.go multi: add reset closure to kvdb.Update 2020-11-05 17:57:12 +01:00