clarify bip32 derivation paths (#800)

Co-authored-by: ardocrat <ardocrat@gri.mw>
This commit is contained in:
wiesche
2026-09-16 13:50:51 +03:00
committed by GitHub
co-authored by ardocrat
parent 18da793ace
commit f585c70eba
4 changed files with 57 additions and 15 deletions
+5 -1
View File
@@ -57,7 +57,11 @@ where
C: NodeClient,
K: Keychain,
{
keys::accounts(w)
let mut accounts = keys::accounts(w)?;
accounts.sort_by(|a, b| a.path.cmp(&b.path));
// Put active account on top.
accounts.sort_by_key(|k| k.path != w.parent_key_id());
Ok(accounts)
}
/// new account path