Commit Graph

44 Commits

Author SHA1 Message Date
ThomasV
bc7022b439 fix channel_reestablish 2018-06-26 19:31:41 +02:00
Janus
285f7a3962 ln: restore functionality 2018-06-26 19:31:41 +02:00
SomberNight
ab14d4ab83 split lnrouter from lnbase 2018-06-26 19:31:41 +02:00
Janus
c7a0b61368 lnbase: mSAT hygiene, multiple multi-hop payments can be received 2018-06-26 19:31:41 +02:00
Janus
9569a46166 lnbase: try multi-hop onion package, type safety 2018-06-26 19:30:08 +02:00
SomberNight
230e112238 bolt-04: decryption of errors 2018-06-26 19:30:08 +02:00
Janus
ef0c840b22 lnbase: store remote revocation store, don't store all remote revocation points, verify ctn numbers in reestablish 2018-06-26 19:30:08 +02:00
Janus
dbb8ff362f lnbase: add RevocationStore test, remove unnecessary lnd helper functions 2018-06-26 19:30:08 +02:00
Janus
7a55ae19b6 lnbase: compact commitment secret storage 2018-06-26 19:30:08 +02:00
SomberNight
d5333a2a2d bolt-04: implement processing of onion packets 2018-06-26 19:30:08 +02:00
SomberNight
1d75df5509 implement bolt-04 onion packet construction 2018-06-26 19:30:08 +02:00
Janus
507ff4eea1 lnbase: fix custom local to_self_delay, use node privkey derived from timestamp in online test 2018-06-26 19:30:08 +02:00
ThomasV
cf677d1f1c simplification 2018-06-26 19:30:08 +02:00
Janus
2bcb294fb3 lnbase: verification of new local commitment working 2018-06-26 19:30:08 +02:00
Janus
ee4673c0e9 lnbase: try to receive payment, work on commitment tx with htlcs 2018-06-26 19:30:08 +02:00
SomberNight
32e35e9010 transaction.py: sign_txin. allow override for get_preimage_script.
test_commitment_tx_with_all_five_HTLCs_untrimmed_minimum_feerate now passes
2018-06-26 19:30:08 +02:00
ThomasV
93e526a952 lnbase: verify remote signature 2018-06-26 19:30:08 +02:00
Janus
e92c468e91 lnbase: improve htlc_tx generation (only localsig wrong) 2018-06-26 19:30:08 +02:00
SomberNight
3108e0bf81 get_per_commitment_secret_from_seed: small clean-up 2018-06-26 19:30:08 +02:00
Janus
8fe28bae03 fix derive_secret 2018-06-26 19:30:08 +02:00
SomberNight
2897ea9870 get_per_commitment_secret_from_seed (not working yet) 2018-06-26 19:30:08 +02:00
ThomasV
0c5a65285c lnbase: fix parameters to make_commitment in htlc test 2018-06-26 19:30:08 +02:00
SomberNight
58c5cd3e0d transaction.py: shortcut witness/scriptSig serialisation 2018-06-26 19:30:08 +02:00
ThomasV
0b8add104b lnbase: fix initial commitment transaction 2018-06-26 19:30:08 +02:00
SomberNight
2d3387b24e refactor storage of channels, path finding 2018-06-26 19:30:08 +02:00
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
7471c60f2f lnbase: add privkey derivation 2018-06-26 19:30:08 +02:00
ThomasV
5d2be9edab add test for key derivation 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
1082232136 cleanup lnbase tests 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
530d4b5e58 lnbase: verify signature in node_announcement 2018-06-26 19:30:07 +02:00
ThomasV
ff0cf94330 lnbase: fix test 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
Janus
f7742dbf3c lnbase_test: add first commitment tx with 5 htlcs test 2018-06-26 19:30:07 +02:00
ThomasV
2f9a71a7ed lnbase: fix locktime and nsequence 2018-06-26 19:30:07 +02:00
Janus
7f96a60a03 lnbase_test: insert remote_signature and compare fields independently 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