← Watch feed
keystore: remove unused Error variants
What changed, and why it matters
This commit simply removes three unused error labels from a Rust source file. It is a routine code cleanup with no functional change and no security relevance.
Recommended action
No action required; this is a benign cleanup commit.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch deletes three enum variants (Hash, Encrypt, StretchRetainedSeedKey) from the keystore::Error enum in src/rust/bitbox02-rust/src/keystore.rs. No call sites, match arms, or behavior are modified; the variants were already unused. This is a non-functional refactor.
Changed components
src/rust/bitbox02-rust/src/keystore.rsInspect captured patch +0 / −3
diff --git a/src/rust/bitbox02-rust/src/keystore.rs b/src/rust/bitbox02-rust/src/keystore.rs
index 5d48206..bb63605 100644
--- a/src/rust/bitbox02-rust/src/keystore.rs
+++ b/src/rust/bitbox02-rust/src/keystore.rs
@@ -51,10 +51,7 @@ pub enum Error {
SecureChip(i32),
SeedSize,
Salt,
- Hash,
- Encrypt,
Decrypt,
- StretchRetainedSeedKey,
}
impl core::convert::From<bitbox02::securechip::Error> for Error {
Risk score
Our methodology →Why this scored 15/100
Human-validated context
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
No validated notes yet.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.