Commit Graph

214 Commits

Author SHA1 Message Date
Janus 2e23ecb3ca lnbase: verify commitment tx'es again 2019-08-20 09:03:09 +02:00
Janus 6173c2d7a7 lnbase: two payments working, temporarily disable sig check 2019-08-20 09:03:09 +02:00
Janus ee87920573 lnbase: store remote revocation store, don't store all remote revocation points, verify ctn numbers in reestablish 2019-08-20 09:03:09 +02:00
Janus 3a20c8ce00 lnbase: add RevocationStore test, remove unnecessary lnd helper functions 2019-08-20 09:03:09 +02:00
Janus cf82150aab lnbase: compact commitment secret storage 2019-08-20 09:03:09 +02:00
Janus 2a594e9d0e lnbase: receive repeated payments 2019-08-20 09:03:09 +02:00
Janus 913176b4b1 tests: don't use default lightning_peers in online test 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 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 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 517e19ebab test_lnbase_online: pass password=None to channel_establishment_flow 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 39dcc24133 lnbase: organize channel data 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
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 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 21be384603 lnbase: verify remote signature 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
Janus 4d3c34e04e complete bolt11 port to ecdsa instead of secp256k1 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 2d305bd218 lnbase: fix parameters to make_commitment in htlc test 2019-08-20 09:03:09 +02:00
SomberNight 22f6deacb8 transaction.py: shortcut witness/scriptSig serialisation 2019-08-20 09:03:09 +02:00
ThomasV 5f4328fb3a lnbase: fix initial commitment transaction 2019-08-20 09:03:09 +02:00
SomberNight 815079efe0 refactor storage of channels, path finding 2019-08-20 09:03:09 +02:00
Janus f278833c40 lnbase: more work on make_htlc_tx 2019-08-20 09:03:09 +02:00
Janus d7244f6708 lnbase: make_htlc_tx 2019-08-20 09:03:09 +02:00
ThomasV ab7a854f9a fix: use remote_per_commitment_point 2019-08-20 09:03:09 +02:00
ThomasV 8f00bdb0b0 lnbase: derive blinded pubkey 2019-08-20 09:03:09 +02:00
ThomasV 6c4c2267f8 lnbase: add privkey derivation 2019-08-20 09:03:09 +02:00
ThomasV 6d703db971 add test for key derivation 2019-08-20 09:03:09 +02:00
Janus 4b8f279d50 lnbase: test signing of first htlc test case 2019-08-20 09:03:09 +02:00
Janus fa86dda983 lnbase: make_received_htlc 2019-08-20 09:03:09 +02:00
ThomasV 2c717194b2 cleanup lnbase tests 2019-08-20 09:03:09 +02:00
SomberNight f8f365f1ea naive route finding 2019-08-20 09:03:09 +02:00
Janus a23aac76d3 lnbase: offered htlc script construction 2019-08-20 09:03:09 +02:00
ThomasV 60d6080fe5 lightning: separate testing from main code 2019-08-20 09:03:09 +02:00