SomberNight
7dabbdd082
tests_lnpeer: trivial fix
5 years ago
SomberNight
1ea89af012
crypto.pw_decode: fix one case of raising incorrect exception
5 years ago
SomberNight
789b78cab5
crypto: trivial clean-up of pw_encode/pw_decode functions
5 years ago
ghost43
b31efdc3e7
Merge pull request #6076 from JeremyRand/initial-download-exception
Use specific Exception when chain isn't synced
5 years ago
ThomasV
6307e13549
do not print the entire payment log again, this is redundant
5 years ago
JeremyRand
40389a21b6
Use specific Exception when chain isn't synced
Makes it easier for calling code to know what error happened.
5 years ago
SomberNight
caefea19dd
trezor pin dialog: only show PIN "strength" when creating/changing
fixes #4832
5 years ago
SomberNight
5259fcb6fd
qt PasswordLineEdit: try to clear password from memory
If an attacker has access to the process' memory, it's probably already game over,
still we can make their life a bit harder.
I really tried but failed to encapsulate this logic inside PasswordLineEdit.
The destroyed signal arrives too late.
deleteLater is not called.
__del__ gets called too late.
5 years ago
SomberNight
c798e5d9a1
qt: introduce PasswordLineEdit(QLineEdit)
5 years ago
SomberNight
f11bf1dd4a
rerun freeze_packages
5 years ago
ghost43
4d980cd4bd
Merge pull request #6064 from matejcik/trezor-0.12-passphrase
trezor: bump lib version, implement new passphrase-on-device UI
5 years ago
SomberNight
fb5382f75f
follow-up prev (typo)
5 years ago
ThomasV
d2a58a2ec3
lnpeer: do not assume our privkey is the same as lnworker's privkey.
5 years ago
ThomasV
55d0a9587e
move maybe_save_short_chan_id to lnchannel
5 years ago
ThomasV
4512f9d6d8
Merge pull request #6070 from spesmilo/channel_save_seed2
Save channel seed in localconfig
5 years ago
ThomasV
f3995350e8
localconfig: rename seed to channel_seed
5 years ago
SomberNight
08bc8617ad
change derivation of ln channel keys: use hardened paths
5 years ago
ThomasV
0ea21c59d2
Save channel seed in localconfig
5 years ago
SomberNight
1dc3100ba3
android build: use "cryptography" instead of "pycryptodomex" fork
Electrum needs either "cryptography" or "pycrytodomex" (since #6014 ).
Previously we have been using a custom fork (of ours) of pycryptodomex,
now let's just use upstream "cryptography".
5 years ago
SomberNight
f777c9ee13
android build: update buildozer/p4a/NDK
- updated p4a pulls in newer openssl (old one is no longer available from openssl.org)
- old NDK no longer available (new one is what updated p4a recommends)
5 years ago
SomberNight
f412420892
include lnwire csv files in binaries (follow-up #6050 )
5 years ago
SomberNight
f13f46c555
qt wizard: make "GoBack" unroll the call stack to avoid stack overflow
fixes #6069
5 years ago
ThomasV
aa32e31a3d
follow-up previous commit
5 years ago
ThomasV
06dfe1699c
LNWatcher: Distinguish between blockchain-triggered channel state
transitions, and actions taken as a result.
- state transitions are performed in lnchannel.update_onchain_state()
- peer actions are in LNWorker.on_channel_update()
5 years ago
ThomasV
9ca445bd5d
save_short_chan_id: remove unneeded ćalls to lnwatcher
5 years ago
ThomasV
c8f602c9d7
pw_decode, pw_encode: separate bytes functions
5 years ago
ThomasV
764c18b3c8
follow-up prev commit
5 years ago
ThomasV
5067166e1e
move should_channel_be_closed_due_to_expiring_htlcs into Channel class
5 years ago
SomberNight
1cdff09ead
follow-up 371f55a0f9
5 years ago
ghost43
158854f94e
Merge pull request #6050 from SomberNight/202003_lnmsg_rewrite
lnmsg rewrite, implement TLV, invoice features, varonion, payment secret
5 years ago
SomberNight
eecdd056b3
lnmsg: small speed-up: read first, check length after
this saves around ~13% wall clock time in ChannelDB.load_data
5 years ago
SomberNight
71635216df
ln feature bits: validate transitive feature deps everywhere
5 years ago
SomberNight
94e3c078f8
lnaddr: small clean-up
5 years ago
SomberNight
1be0a710c3
ln: implement option payment_secret
5 years ago
SomberNight
d424487814
lnpeer: better error handling when processing onion packets
5 years ago
SomberNight
30bf32b34b
use option varonion: actually use TLV payloads, and signal support
5 years ago
SomberNight
4b78bf94d4
lnaddr: add feature bit support to invoices
see https://github.com/lightningnetwork/lightning-rfc/pull/656
5 years ago
SomberNight
a66437f399
lnonion: implement basis of varonion support
5 years ago
SomberNight
6ba08cc8d4
ln feature bits: flatten namespaces, and impl feature deps and ctxs
This implements:
- flat feature bits https://github.com/lightningnetwork/lightning-rfc/pull/666
- feature bit dependencies https://github.com/lightningnetwork/lightning-rfc/pull/719
5 years ago
SomberNight
c69937395e
lnmsg: add more tests (for encode_msg, decode_msg)
5 years ago
SomberNight
71a4302ec0
lnpeer: send and handle "networks" param in "init" msg
5 years ago
SomberNight
85d7a13360
lnmsg: implement tests from BOLT-01
5 years ago
SomberNight
f353e6d55c
lnmsg: encode/decode TLVs as part of messages
5 years ago
SomberNight
542e33fd86
lnmsg: handle "..." as field count
5 years ago
SomberNight
6949752263
lnmsg: initial TLV implementation
5 years ago
SomberNight
3a73f6ee5c
lnmsg.decode_msg: dict values for numbers are int, instead of BE bytes
Will be useful for TLVs where it makes sense to do the conversion in lnmsg,
as it might be more complicated than just int.from_bytes().
5 years ago
SomberNight
4c10a830f3
lnmsg: rewrite LN msg encoding/decoding
5 years ago
SomberNight
371f55a0f9
hww: fix some threading issues in wizard
fixes #3377
related: #6064 (passphrase dialog not rendered correctly)
5 years ago
SomberNight
81fc3fcce2
hww: rm some code duplication: add "scan_and_create_client_for_device"
5 years ago
SomberNight
18c98483ac
wizard: (trivial) add some type hints
5 years ago