spesmilo / spesmilo/electrum

Exception: invalid EC private key scalar: zero

Open
#6,906 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
8.6k
Forks
3.5k
Avg merge
2d 8h
Merged PRs (30d)
61

Description

Crash Report

This crash report was reported through the automatic crash reporting system 🤖

Traceback

  File "electrum\util.py", line 1002, in run_with_except_hook
  File "threading.py", line 870, in run
  File "electrum\gui\qt\main_window.py", line 2797, in privkeys_thread
  File "electrum\wallet.py", line 546, in export_private_key
  File "electrum\keystore.py", line 258, in get_private_key
  File "electrum\bitcoin.py", line 701, in deserialize_privkey
  File "electrum\ecc.py", line 428, in normalize_secret_bytes

Exception: invalid EC private key scalar: zero

Reporter

This issue was reported by 4 user(s):

Electrum Version Python Version Operating System Wallet Type Locale Stack
4.0.9 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.18362-SP0 imported en_US
4.0.9 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.19041-SP0 imported en_US
4.1.0 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:08:11) [MSC v.1928 32 bit (Intel)] Windows-10-10.0.19041-SP0 imported tr_TR
4.5.4 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:20:04) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.22631-SP0 standard,imported es_EC

Additional Information

Cant seem to find my Private key to wallet


Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with electrum/gui/qt/main_window.py at privkeys_thread and follow the traceback through wallet.py, keystore.py, bitcoin.py, and ecc.py to normalize_secret_bytes. Reproduce the imported-wallet private-key export path and determine how the zero scalar is reached; done means the crash path is handled appropriately and covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cryptography
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.