Commit Graph

5 Commits (7a16e3b25d0253626df48bfd3e2fb02747b50b00)

Author SHA1 Message Date
Harsha Goli 7a16e3b25d
multi: bump btcec/v2 and btcutil to new versions 2 years ago
Andras Banki-Horvath ffd52aba2f
loopout: add low/high routing plugin 2 years ago
Andras Banki-Horvath 1943edfd78
loopout: use optional routing plugin for the main swap invoice 2 years ago
Bjorn Olav Jalborg 8d7a272fdd loop+loopout: validate hash of swap invoice
This commit fixes a possible exploit by the loop server, where
- in a loop out - the server could claim money off-chain, without
publishing an on-chain swap htlc.

The server could do this by responding with a regular invoice, whose hash
is different than the hash in the NewLoopOutSwap request. To prevent
the exploit, we validate that the hash of the swap invoice is equal to the
hash the client generated.
5 years ago
Olaoluwa Osuntokun f552bc06b1
utils: remove utils package in favor of new swap package 5 years ago