Skip to content

Edge branch - #388

Open
doc-hex wants to merge 900 commits into
masterfrom
new_edge
Open

doc-hex wants to merge 900 commits into
masterfrom
new_edge

Conversation

@doc-hex

@doc-hex doc-hex commented Jul 4, 2024

Copy link
Copy Markdown
Contributor

This will be a long-lived PR / branch containing "edge" firmware differences.

@doc-hex doc-hex added new-feature New feature proposal. long-term-pr This PR / branch will have a long life and covers multiple concerns. labels Aug 5, 2026
scgbckbone and others added 27 commits August 24, 2026 09:40
- bind SHA256 of staged bytes at parse; re-verify immediately before
  signing, fail closed (wipe + "Transaction modified") on mismatch
- PSRAM write-generation counter gates the re-check: common path costs
  one integer compare
- usb: reject upld with busy while a non-transaction approval flow owns
  the staging area
- regression tests: mid-approval upld rewrite and direct PSRAM mutation
  both abort signing; unchanged buffer still signs
…ptions dice/coin/mash

Deduplicate dice and coin collection while retaining separate mash handling. Capture raw mash press edges with the DWT CPU cycle counter (~8.33ns at 120MHz) before debounce. Credit two bits per inter-press gap, requiring 65 presses for 64 credited gaps; key identity is mixed in but receives no entropy credit.
…cro NGU_STM32_EXTERNAL_RNG_GET; disable threads for unix port
Require equal decoded part sizes except for a short final part, and only finalize storage after every part was written. Treat bad geometry as a recoverable scan, clear pending PSRAM fragments on reset, and keep partial fragment flushing separate from completeness checks.

Co-authored-by: Piotr Duszynski <piotr@duszynski.eu>
add_dice_rolls() used PressRelease() with no argument, so the digits were not
in need_release and a held digit was re-delivered about every 60ms, each
delivery counted as a roll. Put the digits in need_release, the way
ux_mk4.ux_enter_number already does. A roll now registers on release, so
overlapping presses count once rather than several times.
scgbckbone and others added 30 commits November 2, 2026 10:54
BIP-141 allows 2 to 40 byte programs, and the wallet that built the PSBT shows them as bech32m.
Add BIP-350 address vectors, malformed witness-script checks, P2A signing coverage, and HSM whitelist tests. Clarify rendering comments with P2A and BIP-350 references.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

long-term-pr This PR / branch will have a long life and covers multiple concerns. new-feature New feature proposal.

Projects

None yet

Development

Successfully merging this pull request may close these issues.