You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
loop/swap
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
..
fees.go loop+loopout: validate hash of swap invoice 5 years ago
htlc.go swap: fix htlc address generation 5 years ago
keychain.go utils: remove utils package in favor of new swap package 5 years ago
net.go utils: remove utils package in favor of new swap package 5 years ago
tx.go utils: remove utils package in favor of new swap package 5 years ago