loop/loopdb
Andras Banki-Horvath da4bcbea10
loopdb: refactor the SwapContract to hold all HTLC keys
This commit adds a new struct to hold all HTLC keys and refactors the
SwapContract which is used by both loopin and loopout swaps to use this
new struct. The newly added internal keys will for now hold the script
keys to keep everything equivalent but are already stored and read back
if the protocol version is set to MuSig2.
2023-03-20 20:08:43 +01:00
..
codec.go loopdb: add the local pubkey's keylocator to the persisted contract 2022-06-30 16:59:57 +02:00
codec_test.go loopdb: add the local pubkey's keylocator to the persisted contract 2022-06-30 16:59:57 +02:00
interface.go loopdb: extend store methods for fetching single swap 2023-03-09 00:43:06 +02:00
log.go multi: add persistent logger 2019-10-28 17:09:23 +01:00
loop.go loopdb: refactor the SwapContract to hold all HTLC keys 2023-03-20 20:08:43 +01:00
loopin.go loopdb: refactor the SwapContract to hold all HTLC keys 2023-03-20 20:08:43 +01:00
loopout.go loopdb: refactor the SwapContract to hold all HTLC keys 2023-03-20 20:08:43 +01:00
meta.go multi: fix linter issues 2022-12-15 18:08:38 +01:00
migration_01_costs.go loopdb/loopout: add field SwapPublicationDeadline to LoopOutContract 2019-11-21 18:47:00 +01:00
migration_02_swap_publication_deadline.go loopdb/loopout: add field SwapPublicationDeadline to LoopOutContract 2019-11-21 18:47:00 +01:00
migration_03_last_hop.go loopdb: migrate loop in channel to last hop 2020-02-17 19:59:05 +01:00
migration_04_updates.go loopdb: migrate to nested updates structure 2020-06-24 15:28:07 +02:00
migration_04_updates_test.go loopdb: migrate to nested updates structure 2020-06-24 15:28:07 +02:00
protocol_version.go loopdb: refactor the SwapContract to hold all HTLC keys 2023-03-20 20:08:43 +01:00
protocol_version_test.go multi: make the next protocol version optional 2022-06-30 16:59:54 +02:00
raw_db_test.go multi: fix linter issues 2022-05-20 10:16:46 +02:00
store.go loopdb: refactor the SwapContract to hold all HTLC keys 2023-03-20 20:08:43 +01:00
store_test.go loopdb: refactor the SwapContract to hold all HTLC keys 2023-03-20 20:08:43 +01:00
swapstate.go multi: bump btcec/v2 and btcutil to new versions 2022-03-25 11:00:16 +01:00