Commit Graph

256 Commits

Author SHA1 Message Date
Jesse de Wit
18af318798 use ecies for registerpayment in itest 2022-12-15 15:25:45 +01:00
Jesse de Wit
5cee5f3ec9 also encrypt using ecies 2022-12-15 15:15:10 +01:00
Jesse de Wit
8048dae0c5 attempt ecies for decryption 2022-12-15 15:04:41 +01:00
Jesse de Wit
ec3b4d2f0c update docs with cln and integration tests 2022-12-12 10:05:11 +01:00
Jesse de Wit
7c803d12bf add a test for zero reserve 2022-12-10 11:41:52 +01:00
Jesse de Wit
9040351c8c use zero reserve for all channel opens with cln 2022-12-08 15:00:16 +01:00
Jesse de Wit
0e98769d89 pass forward_to to htlc accepted response 2022-12-08 13:38:22 +01:00
Jesse de Wit
e31a4c43f3 reusable open channel logic and share macaroon 2022-12-03 10:47:47 +01:00
Jesse de Wit
b3c5b94531 run combined tests for LND and CLN 2022-12-03 10:43:12 +01:00
Jesse de Wit
d186e06323 add itests 2022-11-24 09:15:20 +01:00
Jesse de Wit
4cc9fcbc1c return 0 shortchannelid by default 2022-11-21 14:24:53 +01:00
Jesse de Wit
ceb3ddb1ee lock on payment hash 2022-11-21 14:24:29 +01:00
Jesse de Wit
daa70c5f0e hex encode instead of channelpoint string 2022-11-21 14:24:07 +01:00
Jesse de Wit
68d7741d3a create client in interceptor startup 2022-11-21 14:23:33 +01:00
Jesse de Wit
c57795643b add cln to main 2022-11-18 16:51:36 +01:00
Jesse de Wit
5b864f9cce implement cln client and interceptor 2022-11-18 16:51:36 +01:00
Jesse de Wit
2de54bf2dd properly implement stop and client lnd intercept 2022-11-18 16:50:17 +01:00
Jesse de Wit
6ad2f71edc add intercept with code 2022-11-18 16:50:17 +01:00
Jesse de Wit
9531c713c1 cancel on all code paths 2022-11-18 09:55:38 +01:00
Jesse de Wit
c1a17bc296 A little prettier start and stop 2022-11-17 17:13:09 +01:00
Jesse de Wit
5cfcd41f32 bytes.Equal instead of compare 2022-11-17 17:13:09 +01:00
Jesse de Wit
3d6d5bfb9d Pull out generic interception logic 2022-11-17 17:13:09 +01:00
Jesse de Wit
c738f817ac Move main method to seperate file 2022-11-17 15:38:33 +01:00
Jesse de Wit
d6b30f1397 Move getChannel to LightningClient 2022-11-17 15:36:18 +01:00
Jesse de Wit
ecfb878860 Move isConnected to LightningClient 2022-11-17 15:36:17 +01:00
Jesse de Wit
8b5f5f80b7 Make openChannel use LightningClient 2022-11-17 15:36:17 +01:00
Jesse de Wit
126754281e Start and stop methods for the server 2022-11-17 15:36:17 +01:00
Jesse de Wit
465faf8f2c use LndClient 2022-11-17 15:36:17 +01:00
Jesse de Wit
b254f4d985 add LndClient implementation 2022-11-17 15:36:17 +01:00
Jesse de Wit
6f292003f9 add LightningClient interface 2022-11-17 15:36:07 +01:00
Yaacov Akiba Slama
02ceb92286 Fix insertChannel in the ON CONFLICT arm 2022-10-03 11:10:38 +03:00
Yaacov Akiba Slama
80032bed08 Fix logging in insertChannel 2022-10-03 11:09:49 +03:00
Yaacov Akiba Slama
4e7c6d9aff Use Anchors commitment transaction when opening a channel 2022-10-03 11:08:57 +03:00
Yaacov Akiba Slama
ce08436d24 Use new zeroconf mechanism from lnd 15.1 2022-09-22 21:17:06 +03:00
Yaacov Akiba Slama
7ceb5bf988 Add some logging in insertChannel 2022-09-21 12:18:37 +03:00
Yaacov Akiba Slama
3a4892ce8a Add data migrations 2022-09-19 22:32:19 +03:00
Yaacov Akiba Slama
6594e3de27 Convert between int64 (in postgresql) and uint64 (short channel id) 2022-09-19 20:47:21 +03:00
Yaacov Akiba Slama
e16541c77d Use initial_chanid and confirmed_chanid to handle zerconf channels 2022-09-19 17:39:09 +03:00
Yaacov Akiba Slama
1d6e5ca99f Update lnd to 15.1 2022-09-18 21:34:59 +03:00
Yaacov Akiba Slama
89212aa5ae Update lnd (and corresponding btcd) 2022-07-17 18:05:58 +03:00
Yaacov Akiba Slama
aaeeac3008 Merge pull request #6 from nayuta-ueno/err-handle
Error handle
2022-06-27 18:38:48 +03:00
ueno
5457b04a1c interceptor fail 2022-06-26 00:12:50 +09:00
ueno
bed7551652 go.mod: tidy 2022-06-26 00:10:36 +09:00
Yaacov Akiba Slama
5941d9b0ef Recover from lnd failure 2022-05-16 12:48:14 +03:00
Yaacov Akiba Slama
ad0595f3f9 Log the amount and the privacy flag of the channel 2022-04-29 08:04:49 +03:00
Yaacov Akiba Slama
91d8730097 Add MIT License 2022-03-04 07:57:53 +02:00
Yaacov Akiba Slama
ad0da518ed Retrieve the channel amount and the channel privacy from the environment 2022-02-28 22:21:49 +02:00
Yaacov Akiba Slama
7291d535ee Add the ability to handle client with zero channel reserve 2021-07-12 11:13:47 +03:00
Yaacov Akiba Slama
fda001f80a Increase the fees to 0.4% and set min fees to 2000 sats 2021-07-11 13:56:19 +03:00
Yaacov Akiba Slama
b86a77ab69 Add channel creation minimum fees 2021-06-16 18:33:01 +03:00