What changed, and why it matters
This commit fixes a typo in a code comment, changing the documented function name from 'cache_keypath()' to 'add_keypath()'. It does not change any executable code, behavior, or security properties of the firmware.
No security action needed. Treat as a documentation-only cleanup.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff is a single-character/string change inside a Rust doc comment in src/rust/bitbox02-rust/src/xpubcache.rs. It corrects the referenced method name in the documentation. No logic, API, or binary output is affected.
Changed components
Inspect captured patch +1 / −1
diff --git a/src/rust/bitbox02-rust/src/xpubcache.rs b/src/rust/bitbox02-rust/src/xpubcache.rs
index ed57fcf..97cac0f 100644
--- a/src/rust/bitbox02-rust/src/xpubcache.rs
+++ b/src/rust/bitbox02-rust/src/xpubcache.rs
@@ -37,7 +37,7 @@ pub trait Xpub: Sized {
/// Implements a cache for xpubs. Cached intermediate xpubs are used to derive child xpubs.
///
-/// The cache must be configured using `cache_keypath()`, otherwise no caching occurs. The reason
+/// The cache must be configured using `add_keypath()`, otherwise no caching occurs. The reason
/// for this is that automatic caching is harder to get right and reason about, e.g. in a BTC tx, we
/// shouldn't cache xpubs at the address level (e.g. m/84/0'/0'/0/0), as they don't repeat and there
/// can be many of them.
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.