What changed, and why it matters
This is a one-line change inside a Rust unit test for Bitcoin wallet policy handling. The test previously used a key path that accidentally pointed to a key belonging to the device under test, which made the test fail for the wrong reason. The fix changes a single index so the key path intentionally does not match any key, which is what the test was actually meant to verify. There is no change to production firmware code, no security fix, and no vulnerability.
No action required. This is a test-only correction with no production or security implications.
Security signals we found
No strong security signals were identified.
Evidence from the diff
In src/rust/bitbox02-rust/src/hww/api/bitcoin/policies.rs, a unit test’s key path is adjusted from ending in …/20/5 to …/30/5. The test is checking that a policy input with a keypath that does not correspond to any of the wallet’s keys is rejected. The old value (20) collided with an actual key index used elsewhere in the test setup, so the failure mode was ‘key is not ours’ rather than the intended ‘change/receive element mismatch’. The later test in the same function already covers the ‘key is not ours’ case. This is purely a test-correction commit.
Changed components
src/rust/bitbox02-rust/src/hww/api/bitcoin/policies.rs unit tests onlyInspect captured patch +1 / −1
diff --git a/src/rust/bitbox02-rust/src/hww/api/bitcoin/policies.rs b/src/rust/bitbox02-rust/src/hww/api/bitcoin/policies.rs
index 5ccdef3..8d77320 100644
--- a/src/rust/bitbox02-rust/src/hww/api/bitcoin/policies.rs
+++ b/src/rust/bitbox02-rust/src/hww/api/bitcoin/policies.rs
@@ -1310,7 +1310,7 @@ mod tests {
1 + HARDENED,
0 + HARDENED,
3 + HARDENED,
- 20,
+ 30,
5,
],
)
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.