2
0
mirror of https://github.com/lightninglabs/loop synced 2024-11-13 13:10:30 +00:00
Commit Graph

10 Commits

Author SHA1 Message Date
Andras Banki-Horvath
64991813ed
test: spend tests for the new v2 htlc 2020-08-27 16:21:52 +02:00
Andras Banki-Horvath
cd0a5f9f06
swap: extend swap to be able to create the V2 htlc 2020-08-27 16:21:51 +02:00
Andras Banki-Horvath
9fdd531130
swap: add HTLC script version 2020-08-27 16:21:47 +02:00
Joost Jager
0c9fcd790e
lndclient: move to github.com/lightninglabs/lndclient 2020-06-18 14:27:52 +02:00
Andras Banki-Horvath
60661504a5 htlc: add string representation for HtlcOutputType enum 2020-05-04 23:18:15 +02:00
Oliver Gugger
69f2af9fdc
loop+cmd: extract types into swap module 2019-10-09 16:14:06 +02:00
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.
2019-07-31 11:01:42 +02:00
Joost Jager
753429547d
swap: fix htlc address generation
This commit fixes the generation of the htlc address. This bug didn't
affect the swap execution, because the htlc address is only used for
display to the user/caller.
2019-05-03 10:52:23 +02:00
Joost Jager
30c7d71c57
use np2wsh for loop in htlc 2019-04-04 15:49:02 +02:00
Olaoluwa Osuntokun
f552bc06b1
utils: remove utils package in favor of new swap package 2019-03-06 20:34:00 -08:00