Commit graph

147 commits

Author SHA1 Message Date
ThomasV
d921aa50dd
lnbase: derive keys from wallet keystore 2018-11-05 19:58:33 +01:00
Janus
ca10bc6cb0
lnbase: avoid local variables, remote useless comments, name basepoints as such 2018-11-05 19:58:32 +01:00
Janus
022b985de8
lnbase: set new field in Transaction instead of returning a tuple in make_commitment 2018-11-05 19:58:32 +01:00
Janus
88f270a170
lnbase: set to_self_delay back to 144, defer cltv_expiry problem 2018-11-05 19:58:32 +01:00
Janus
aa3723797c
lnbase: use correct delay 2018-11-05 19:58:31 +01:00
Janus
e3a33bdb5e
lnbase: avoid code duplication, return htlc outpoint dict in make_commitment 2018-11-05 19:58:31 +01:00
Janus
a458bf76ba
lnbase: simplify commitment transaction building with open channel 2018-11-05 19:58:30 +01:00
Janus
ca74023d7e
lnbase: organize channel data 2018-11-05 19:58:30 +01:00
Janus
b63c079c53
lnbase: allow passing KeypairGenerator to channel_establishment_flow, fix derive_privkey 2018-11-05 19:58:29 +01:00
Janus
148b063ca0
lnbase: receiving invoice payment works 2018-11-05 19:58:29 +01:00
Janus
86154028fd
lnbase: commitment_signed, revoke_and_ack now accepted without errors 2018-11-05 19:58:28 +01:00
SomberNight
f2ba49bd56
bitcoin.py: SCRIPT-related clean-up. transaction.py: construct_witness 2018-11-05 19:58:28 +01:00
Janus
6c5cac5c4f
lnbase: fix their new commitment transaction (htlc tx construction still incorrect) 2018-11-05 19:58:27 +01:00
ThomasV
209a3dfabc
lnbase: fix bug in message parsing 2018-11-05 19:58:27 +01:00
ThomasV
df60d4eb05
follow up b5eb7dd7683f24f03c80ab8f612658b5f3966eb1 2018-11-05 19:58:26 +01:00
Janus
8b4bdf6fc0
lnbase: attempt at making htlc_signature to send (currently remote fails due to wrong num_htlcs in commitment_signed) 2018-11-05 19:58:26 +01:00
ThomasV
7dabdad7a7
simplification 2018-11-05 19:58:25 +01:00
Janus
a84b2c146b
lnbase: add TODO explaining how to verify htlc_signature given to us 2018-11-05 19:58:25 +01:00
Janus
a96b88738f
lnbase: verification of new local commitment working 2018-11-05 19:58:24 +01:00
Janus
e69d5a5d6d
lnbase: derive next keys when making updated local commitment transaction 2018-11-05 19:58:24 +01:00
Janus
f489fc38ad
lnbase: try to receive payment, work on commitment tx with htlcs 2018-11-05 19:58:24 +01:00
Janus
4a13146439
lnbase: handle commitment transaction update (receive funds, not working yet) 2018-11-05 19:58:23 +01:00
Janus
85358b6bd1
simnet/testnet support in bolt11, set max-htlc-value-in-flight 2018-11-05 19:58:23 +01:00
SomberNight
d844b20d41
transaction.py: sign_txin. allow override for get_preimage_script.
test_commitment_tx_with_all_five_HTLCs_untrimmed_minimum_feerate now passes
2018-11-05 19:58:22 +01:00
ThomasV
ea41d6f0f3
redundant: you subscribed only to 'updated' 2018-11-05 19:58:22 +01:00
ThomasV
8ee71b623f
lnbase: verify remote signature 2018-11-05 19:58:21 +01:00
SomberNight
38edf1ee64
channel_establishment_flow: use get_per_commitment_secret_from_seed 2018-11-05 19:58:21 +01:00
Janus
e76f7a2ca8
lnbase: improve htlc_tx generation (only localsig wrong) 2018-11-05 19:58:20 +01:00
SomberNight
244fe2f4c5
get_per_commitment_secret_from_seed: small clean-up 2018-11-05 19:58:20 +01:00
Janus
43e2f4ae35
fix derive_secret 2018-11-05 19:58:19 +01:00
SomberNight
b15a74c95a
get_per_commitment_secret_from_seed (not working yet) 2018-11-05 19:58:19 +01:00
Janus
729dde2bb4
lnbase: avoid race while waiting for funding_locked, wait for un-reversed hash 2018-11-05 19:58:18 +01:00
SomberNight
42b222a8b8
channel_establishment_flow: wait for confirmations of funding txn 2018-11-05 19:58:17 +01:00
ThomasV
9a4650dac7
add processing flow for funding_locked 2018-11-05 19:58:17 +01:00
SomberNight
8b7b3382b0
transaction.py: shortcut witness/scriptSig serialisation 2018-11-05 19:58:16 +01:00
Janus
8c1f34cdcb
lnbase: add some comments 2018-11-05 19:58:15 +01:00
ThomasV
af67aff4fc
lnbase: fix initial commitment transaction 2018-11-05 19:58:13 +01:00
SomberNight
0ac170e0ae
refactor storage of channels, path finding 2018-11-05 19:58:13 +01:00
Janus
122ad8a50c
lnbase: more work on make_htlc_tx 2018-11-05 19:58:12 +01:00
Janus
9246b2a187
lnbase: make_htlc_tx 2018-11-05 19:58:11 +01:00
ThomasV
6d5e240b1c
fix: use remote_per_commitment_point 2018-11-05 19:58:11 +01:00
ThomasV
ad5b1e4268
lnbase: derive blinded pubkey 2018-11-05 19:58:10 +01:00
ThomasV
a677a39bc0
lnbase: fix variable name 2018-11-05 19:58:10 +01:00
ThomasV
56901f709c
lnbase: add privkey derivation 2018-11-05 19:58:09 +01:00
ThomasV
2f657b467a
lnbase: key derivation (WIP) 2018-11-05 19:58:09 +01:00
Janus
30581b32f1
lnbase: test signing of first htlc test case 2018-11-05 19:58:08 +01:00
Janus
3160ea30fd
lnbase: make_received_htlc 2018-11-05 19:58:08 +01:00
ThomasV
b726d77bdc
fix hash in make_offered_htlc 2018-11-05 19:58:07 +01:00
SomberNight
6115c0a15e
naive route finding 2018-11-05 19:58:06 +01:00
Janus
07a9ab8fae
lnbase: offered htlc script construction 2018-11-05 19:58:05 +01:00