electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 3349e941def1e5cadf686cd3ea0079cebcf23427
parent 81d340b19c461fd82c729f80355f7d8afecaf178
Author: ThomasV <thomasv@electrum.org>
Date:   Thu, 30 May 2019 16:49:25 +0200

lnsweep: minor fix

Diffstat:
Melectrum/lnsweep.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/electrum/lnsweep.py b/electrum/lnsweep.py @@ -264,11 +264,11 @@ def create_sweeptxs_for_their_ctx(chan: 'Channel', ctx: Transaction, return {} their_pcp = ecc.ECPrivkey(per_commitment_secret).get_public_key_bytes(compressed=True) is_revocation = True + other_revocation_privkey = derive_blinded_privkey(other_conf.revocation_basepoint.privkey, per_commitment_secret) else: return {} # prep other_revocation_pubkey = derive_blinded_pubkey(other_conf.revocation_basepoint.pubkey, their_pcp) - other_revocation_privkey = derive_blinded_privkey(other_conf.revocation_basepoint.privkey, per_commitment_secret) other_htlc_privkey = derive_privkey(secret=int.from_bytes(other_conf.htlc_basepoint.privkey, 'big'), per_commitment_point=their_pcp) other_htlc_privkey = ecc.ECPrivkey.from_secret_scalar(other_htlc_privkey) this_htlc_pubkey = derive_pubkey(this_conf.htlc_basepoint.pubkey, their_pcp)