lnd.xprv/watchtower/wtmock
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_db.go wtdb+wtclient: segregate session-key-index reservations by blob-type 2020-12-01 16:24:16 -08:00
keyring.go watchtower: use ECDH interface for watchtower session 2020-05-20 09:06:57 +02:00
peer.go watchtower/wtmock/peer: set local pubkey 2019-03-15 02:34:00 -07:00
signer.go multi: return input.Signature from SignOutputRaw 2020-04-10 14:27:35 -07:00
tower_db.go watchtower/wtdb: apply sanity checks to session policy before accepting 2019-06-13 19:54:22 -07:00