Commit Graph

192 Commits

Author SHA1 Message Date
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
ThomasV 969708316c lnbase: verify signature in node_announcement 2019-08-20 09:03:09 +02:00
ThomasV 57b63cf490 lnbase: fix test 2019-08-20 09:03:09 +02:00
SomberNight aaa67adb5a fixes for make_commitment, but still incorrect destination address (csv arg?) 2019-08-20 09:03:09 +02:00
ThomasV eca8d13e37 lnbase: fix tx amounts 2019-08-20 09:03:09 +02:00
Janus 3fb6951d10 lnbase_test: add first commitment tx with 5 htlcs test 2019-08-20 09:03:09 +02:00
ThomasV 316f9a3954 lnbase: fix locktime and nsequence 2019-08-20 09:03:09 +02:00
Janus 814146f099 lnbase_test: insert remote_signature and compare fields independently 2019-08-20 09:03:09 +02:00
ThomasV 7b6f64a402 lnbase: create unit test for commitment tx 2019-08-20 09:03:09 +02:00
Janus 097ac144d9 file reorganization with top-level module 2018-07-13 14:01:37 +02:00
SomberNight 8b86f21520 wizard: extend derivation dialog to also let user select script type.
enable segwit multisig for bip39/hw wallets.
2018-06-26 19:31:05 +02:00
ThomasV 24818c14ca Merge pull request #3762 from SomberNight/txin_type_address_segwit
change partial txn serialization format for imported addresses txins
2018-06-22 13:58:15 +02:00
SomberNight 170f41f50d tests: sweeping p2pk 2018-06-18 20:06:17 +02:00
SomberNight 59c1d03f01 ecc.py: properly handle point at infinity 2018-06-16 06:34:03 +02:00
SomberNight 1a8e8bc047 bitcoin.py: make int_to_hex throw on overflow 2018-06-16 02:34:27 +02:00
SomberNight 2cc15fca57 tests: add missing txid test from #3316 2018-06-15 15:39:09 +02:00
ghost43 cc05c09d6b minikeys: import with uncompressed pubkey instead of compressed (#4384) 2018-06-15 15:32:00 +02:00
SomberNight 6297996d12 tests: (tx signing) offline hd multisig, online address 2018-06-15 15:07:56 +02:00
SomberNight 46fdbbbce5 change partial txn serialization format for imported addresses txins
offline signing with segwit WIF keys now works.
offline seed + online address signing now works.
2018-06-15 14:08:20 +02:00
SomberNight d150f0dfc0 tests: rbf and cpfp 2018-06-15 14:05:30 +02:00
SomberNight 0438bbc2c2 transaction.py: change update_signatures API. fix trezor segwit signing.
Traceback (most recent call last):
  File "...\electrum\lib\transaction.py", line 498, in parse_witness
    if txin['witness_version'] != 0:
KeyError: 'witness_version'
2018-06-14 20:13:04 +02:00
SomberNight 5d7157451f tests: TestWalletOfflineSigning 2018-06-13 19:27:07 +02:00
SomberNight e8b5bcf31e fix incorrect txid for partial segwit txns
follow-up #4405
2018-06-13 15:54:45 +02:00