Commit 58d4e02
committed
feat(reset): drive and verify on-device dice-entropy collection
Regenerated bindings for device-protocol feat/dice-entropy
(ResetDevice.dice_entropy, DebugLinkDecision.input,
DebugLinkState.dice_digest, ButtonRequest_DiceRoll). debuglink gains
press_input() (chunked synthetic roll injection; each chunk must fit
the firmware's 40-char max_size) and read_dice_digest().
test_reset_device_dice runs the full flow against the emulator: the
DiceRoll ButtonRequest announcement, injection in 40-char chunks with
undo churn, a host-side simulation of the same append/undo rules, the
device digest matching sha256 of exactly the expected 99-roll string,
and the post-mix internal entropy still producing the documented
sha256(internal || external) mnemonic. Version-gated to 7.15.0.1 parent 1f2eecd commit 58d4e02
5 files changed
Lines changed: 217 additions & 97 deletions
File tree
- keepkeylib
- tests
Submodule device-protocol updated 2 files
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
90 | 94 | | |
91 | 95 | | |
92 | 96 | | |
| |||
127 | 131 | | |
128 | 132 | | |
129 | 133 | | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
130 | 141 | | |
131 | 142 | | |
132 | 143 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments