Commit Graph
17 Commits
Author SHA1 Message Date
thePR0M3TH3ANandClaude Opus 5 3192c9f306 Offer a 24-word master seed, and put the entropy draw beyond reach of any handler
L2: generate_bip85_seed and create_profile_from_generated_seed now take
words_num, accepting 12 or 24 and rejecting anything else with a clear
message. The default stays 12 -- every existing profile uses it, 128 bits is
entirely adequate, and moving the default would change nothing about
existing vaults while surprising anyone creating a new one. 24 is offered
because the master seed protects the whole vault and was the one secret
shorter than the seeds derived beneath it, which already default to 24.

L3: fixed structurally rather than by narrowing exception types.
os.urandom(32) now sits OUTSIDE the try block, so no handler can stand
between the entropy draw and the caller -- an entropy failure is unreachable
by anything that could substitute a value. Also removes a redundant
`except Exception` whose body was identical to the `Bip85Error` branch above
it.

The structural form is stronger than an exception list, and the test says so
precisely: it asserts the OSError reaching the caller is the SAME OBJECT
os.urandom threw, which holds only if nothing caught and repackaged it.
Listing exception types would still leave a handler in the path for someone
to widen later.

Adds five tests: the identity assertion above, 12- and 24-word generation,
the default staying 12, and rejection of 0/11/18/25/-12.

Determinism gate green (89 tests, up from 84). The seed/profile regression
subset is 143 passed with one failure --
test_profile_export_import_round_trip -- confirmed against the pre-change
baseline as pre-existing.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01HtNMsKzzFTPURemX7tT19u
2026-07-31 17:43:24 -04:00
google-labs-jules[bot]andPR0M3TH3AN 9e08e5082b Refactor GUI backend config to constants.py
Extracts the hardcoded BeeWare GUI backend configuration (package names, versions, and SHA256 hashes) from `src/seedpass/cli/__init__.py` into a new `GUI_BACKEND_CONFIG` dictionary in `src/constants.py`. This improves maintainability by centralizing configuration and simplifying the CLI logic.

- Adds `GUI_BACKEND_CONFIG` to `src/constants.py`.
- Updates `src/seedpass/cli/__init__.py` to import and use `GUI_BACKEND_CONFIG`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-26 19:25:24 +00:00
thePR0M3TH3AN e528bebae3 Refine console logging 2025-08-23 13:19:27 -04:00
thePR0M3TH3AN dcb5c6e805 Extend password policy and generator 2025-07-30 18:44:41 -04:00
thePR0M3TH3AN 8e7224dfd2 Add configurable Nostr retry backoff 2025-07-24 18:53:45 -04:00
thePR0M3TH3AN ee240cbd1e Add notification tracking and tests 2025-07-14 14:58:58 -04:00
thePR0M3TH3AN 78499b267e Add configurable Nostr retry settings 2025-07-13 15:42:24 -04:00
thePR0M3TH3AN 3364824fc4 Add relay health check and tests 2025-07-03 09:44:09 -04:00
thePR0M3TH3AN 7763d9de88 Refactor constants initialization 2025-07-02 22:04:52 -04:00
thePR0M3TH3AN f6a94d06cc Use exc_info for error logging 2025-07-01 18:23:44 -04:00
thePR0M3TH3AN d7ea493663 Adjust logging for tests 2025-07-01 15:16:01 -04:00
thePR0M3TH3AN 4801e2c33c Add inactivity lock feature 2025-06-30 10:06:51 -04:00
thePR0M3TH3AN 4698384b5d Format key_manager 2025-06-29 14:51:17 -04:00
thePR0M3TH3AN 7d4eef2110 update 2024-10-26 22:56:57 -04:00
thePR0M3TH3AN d8aff057b7 update 2024-10-23 16:35:30 -04:00
Keep Creating Online 412296d545 update 2024-10-19 20:46:23 -04:00
Keep Creating Online c6a768131d update 2024-10-19 19:55:59 -04:00