Repository navigation
Conversation
samjay121566
approved these changes
Sep 26, 2024
- 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.
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.
…ore VM init (cherry picked from commit 6bb3757)
(cherry picked from commit 87a5e7d)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This will be a long-lived PR / branch containing "edge" firmware differences.