Commit Graph

59 Commits

Author SHA1 Message Date
Janus
355b526db9 lnbase: more work on make_htlc_tx 2018-06-26 19:30:08 +02:00
Janus
0da15f6dff lnbase: make_htlc_tx 2018-06-26 19:30:08 +02:00
ThomasV
bd90f8b77e fix: use remote_per_commitment_point 2018-06-26 19:30:08 +02:00
ThomasV
f5d9f79e65 lnbase: derive blinded pubkey 2018-06-26 19:30:08 +02:00
ThomasV
c0b624e73a lnbase: fix variable name 2018-06-26 19:30:08 +02:00
ThomasV
7471c60f2f lnbase: add privkey derivation 2018-06-26 19:30:08 +02:00
ThomasV
06e52b0b63 lnbase: key derivation (WIP) 2018-06-26 19:30:08 +02:00
Janus
14ee54fb51 lnbase: test signing of first htlc test case 2018-06-26 19:30:08 +02:00
Janus
87c0ff4654 lnbase: make_received_htlc 2018-06-26 19:30:08 +02:00
ThomasV
65c0ee5f4b fix hash in make_offered_htlc 2018-06-26 19:30:07 +02:00
SomberNight
620e8d60aa naive route finding 2018-06-26 19:30:07 +02:00
Janus
6f63672550 lnbase: offered htlc script construction 2018-06-26 19:30:07 +02:00
ThomasV
d94115ab80 use acceptable variable names 2018-06-26 19:30:07 +02:00
ThomasV
d34c902776 lightning: separate testing from main code 2018-06-26 19:30:07 +02:00
ThomasV
945877a5e1 lightning: store network view 2018-06-26 19:30:07 +02:00
ThomasV
354f75592e lnbase: parse ipv6, fix transport bug 2018-06-26 19:30:07 +02:00
ThomasV
bf4adbde88 lnbase: fix read_message, reduce verbosity 2018-06-26 19:30:07 +02:00
ThomasV
c95a20c701 lnbase: implement key rotation, request initial sync in localfeatures 2018-06-26 19:30:07 +02:00
ThomasV
530d4b5e58 lnbase: verify signature in node_announcement 2018-06-26 19:30:07 +02:00
SomberNight
a3eb4f8e17 bitcoin.py: implement add_number_to_script. fix CSV arg in make_commitment. 2018-06-26 19:30:07 +02:00
ThomasV
ff0cf94330 lnbase: fix test 2018-06-26 19:30:07 +02:00
SomberNight
b04cabe0ef implement script_num_to_hex. fix encoding of argument for CSV in make_commitment 2018-06-26 19:30:07 +02:00
SomberNight
d4b4d1113d fixes for make_commitment, but still incorrect destination address (csv arg?) 2018-06-26 19:30:07 +02:00
ThomasV
64726fbb26 lnbase: fix tx amounts 2018-06-26 19:30:07 +02:00
ThomasV
2f9a71a7ed lnbase: fix locktime and nsequence 2018-06-26 19:30:07 +02:00
ThomasV
690c92a54a lnbase: create unit test for commitment tx 2018-06-26 19:30:07 +02:00
ThomasV
24b619edee lnbase: fix signature index 2018-06-26 19:29:39 +02:00
ThomasV
efe6450444 lnbase: initial commitment transaction 2018-06-26 19:29:39 +02:00
ThomasV
f8d868e89a lnbase: fix funding address, funding_output_index 2018-06-26 19:28:29 +02:00
ThomasV
812e9fcca6 follow up 1aac9e59ed957898fceef99b29b9cc17d7843569 2018-06-26 19:28:29 +02:00
ThomasV
17a9c8e417 lnbase: communication privkey belongs to peer 2018-06-26 19:28:29 +02:00
Janus
ed7961c0ce lnbase: more parts of channel establishment 2018-06-26 19:28:29 +02:00
Janus
ce5ae70d20 lnbase: remove unnecessary try/except 2018-06-26 19:28:29 +02:00
Janus
dc934ce9e5 lnbase: lnbase_test must use threadsafe task submission 2018-06-26 19:28:29 +02:00
ThomasV
9a2fba81e7 lnbase: decorator that handles exceptions 2018-06-26 19:28:29 +02:00
Janus
d45a6a5069 lnbase: fix shutdown when lnbase has exception in main_loop 2018-06-26 19:28:29 +02:00
Janus
89850de99b lnbase: print exceptions from main_loop 2018-06-26 19:28:29 +02:00
Janus
470d6071ea lnbase: initialize loop variable in main 2018-06-26 19:28:29 +02:00
Janus
5e0def63c6 lnbase: add lnbase_test 2018-06-26 19:28:29 +02:00
ThomasV
37d73c3165 lnbase: expose wallet object in LNWorker 2018-06-26 19:28:29 +02:00
Janus
51a31051bd lnbase: merge initialize and main_loop 2018-06-26 19:28:29 +02:00
Janus
7fb777828a lnbase: handle error during channel establishment 2018-06-26 19:28:29 +02:00
Janus
abe436fa9a lnbase: channel establishment flow, avoid using Wallet instance 2018-06-26 19:28:29 +02:00
ThomasV
3869463f62 lnbase: use relative imports 2018-06-26 19:28:29 +02:00
Janus
2b6c550aee lnbase: support simnet/testnet, create accepted open_channel message 2018-06-26 19:28:29 +02:00
Janus
09141f6767 lnbase: use valid pubkeys in open_channel 2018-06-26 19:28:29 +02:00
Janus
29b8ba95c9 lnbase: try sending open_channel 2018-06-26 19:28:29 +02:00
ThomasV
4836aefbe8 lnbase: add draft handlers 2018-06-26 19:28:29 +02:00
Janus
d2493457ac lnbase: avoid reimplementing int.to_bytes 2018-06-26 19:28:29 +02:00
Janus
27132ec4dd lnbase: avoid reimplementing int.from_bytes 2018-06-26 19:28:29 +02:00