Commit graph

110 commits

Author SHA1 Message Date
Janus
2338d18ab8 lnbase: move channel commitment number increment to function 2019-08-20 09:03:09 +02:00
Janus
2a594e9d0e lnbase: receive repeated payments 2019-08-20 09:03:09 +02:00
Janus
d9d2989a6a lnbase: channel reestablishment working 2019-08-20 09:03:09 +02:00
SomberNight
a58a345dc3 bolt-04: implement processing of onion packets 2019-08-20 09:03:09 +02:00
SomberNight
053c571d74 minor clean-up of prev. util.xor_bytes 2019-08-20 09:03:09 +02:00
SomberNight
47b1bed539 implement bolt-04 onion packet construction 2019-08-20 09:03:09 +02:00
Janus
60b77f6a00 lnbase: save channel details in wallet, enable running online test with reestablishment_mode 2019-08-20 09:03:09 +02:00
Janus
d3f8fe923c lnbase: move waiting for funding_locked to new function, make function for signing and sig conversion 2019-08-20 09:03:09 +02:00
Janus
d96b80ad1f lnbase: make function for building htlc_tx depending on if it is for_us/we_receive 2019-08-20 09:03:09 +02:00
Janus
309aca69b8 lnbase: verify their htlc signature 2019-08-20 09:03:09 +02:00
ThomasV
6b79052bc9 lnbase: standardize to_bytes calls 2019-08-20 09:03:09 +02:00
Janus
fa80fd4bd5 lnbase: fix custom local to_self_delay, use node privkey derived from timestamp in online test 2019-08-20 09:03:09 +02:00
Janus
1363dfb522 lnbase: avoid copying variables, insert newlines 2019-08-20 09:03:09 +02:00
ThomasV
96544b8b58 lnbase: derive keys from wallet keystore 2019-08-20 09:03:09 +02:00
Janus
bdec72dd4b lnbase: avoid local variables, remote useless comments, name basepoints as such 2019-08-20 09:03:09 +02:00
Janus
e1f7eb6cb3 lnbase: set new field in Transaction instead of returning a tuple in make_commitment 2019-08-20 09:03:09 +02:00
Janus
194a2bba16 lnbase: set to_self_delay back to 144, defer cltv_expiry problem 2019-08-20 09:03:09 +02:00
Janus
19d8a13232 lnbase: use correct delay 2019-08-20 09:03:09 +02:00
Janus
20f0464009 lnbase: avoid code duplication, return htlc outpoint dict in make_commitment 2019-08-20 09:03:09 +02:00
Janus
5f38019420 lnbase: simplify commitment transaction building with open channel 2019-08-20 09:03:09 +02:00
Janus
39dcc24133 lnbase: organize channel data 2019-08-20 09:03:09 +02:00
Janus
c2bbc1ec60 lnbase: allow passing KeypairGenerator to channel_establishment_flow, fix derive_privkey 2019-08-20 09:03:09 +02:00
Janus
9f8d6625ec lnbase: receiving invoice payment works 2019-08-20 09:03:09 +02:00
Janus
6d87599964 lnbase: commitment_signed, revoke_and_ack now accepted without errors 2019-08-20 09:03:09 +02:00
SomberNight
b3da13420b bitcoin.py: SCRIPT-related clean-up. transaction.py: construct_witness 2019-08-20 09:03:09 +02:00
Janus
75e7b3af49 lnbase: fix their new commitment transaction (htlc tx construction still incorrect) 2019-08-20 09:03:09 +02:00
ThomasV
71eacb4eab lnbase: fix bug in message parsing 2019-08-20 09:03:09 +02:00
ThomasV
7176b0834c follow up b5eb7dd7683f24f03c80ab8f612658b5f3966eb1 2019-08-20 09:03:09 +02:00
Janus
e9e0d60432 lnbase: attempt at making htlc_signature to send (currently remote fails due to wrong num_htlcs in commitment_signed) 2019-08-20 09:03:09 +02:00
ThomasV
c7e3f7e4e4 simplification 2019-08-20 09:03:09 +02:00
Janus
f32149e609 lnbase: add TODO explaining how to verify htlc_signature given to us 2019-08-20 09:03:09 +02:00
Janus
e98f23c4ed lnbase: verification of new local commitment working 2019-08-20 09:03:09 +02:00
Janus
e264a21c64 lnbase: derive next keys when making updated local commitment transaction 2019-08-20 09:03:09 +02:00
Janus
3c34628ffb lnbase: try to receive payment, work on commitment tx with htlcs 2019-08-20 09:03:09 +02:00
Janus
0f552422a6 lnbase: handle commitment transaction update (receive funds, not working yet) 2019-08-20 09:03:09 +02:00
Janus
1ffaed718c simnet/testnet support in bolt11, set max-htlc-value-in-flight 2019-08-20 09:03:09 +02:00
SomberNight
fd7469745e transaction.py: sign_txin. allow override for get_preimage_script.
test_commitment_tx_with_all_five_HTLCs_untrimmed_minimum_feerate now passes
2019-08-20 09:03:09 +02:00
ThomasV
4d41299f1c redundant: you subscribed only to 'updated' 2019-08-20 09:03:09 +02:00
ThomasV
21be384603 lnbase: verify remote signature 2019-08-20 09:03:09 +02:00
SomberNight
e9bad2e862 channel_establishment_flow: use get_per_commitment_secret_from_seed 2019-08-20 09:03:09 +02:00
Janus
edf6fe7a94 lnbase: improve htlc_tx generation (only localsig wrong) 2019-08-20 09:03:09 +02:00
SomberNight
3e899caaf4 get_per_commitment_secret_from_seed: small clean-up 2019-08-20 09:03:09 +02:00
Janus
b523085fa3 fix derive_secret 2019-08-20 09:03:09 +02:00
SomberNight
576a74a48a get_per_commitment_secret_from_seed (not working yet) 2019-08-20 09:03:09 +02:00
Janus
f0e19ffdfd lnbase: avoid race while waiting for funding_locked, wait for un-reversed hash 2019-08-20 09:03:09 +02:00
SomberNight
4aa9d7ea0d channel_establishment_flow: wait for confirmations of funding txn 2019-08-20 09:03:09 +02:00
ThomasV
a4809245b3 add processing flow for funding_locked 2019-08-20 09:03:09 +02:00
SomberNight
22f6deacb8 transaction.py: shortcut witness/scriptSig serialisation 2019-08-20 09:03:09 +02:00
Janus
fc822ab927 lnbase: add some comments 2019-08-20 09:03:09 +02:00
ThomasV
5f4328fb3a lnbase: fix initial commitment transaction 2019-08-20 09:03:09 +02:00