[vault] Format v2: factor, pair and single slots; open_with any two factors; upgrade from v1; key-pair item type

This commit is contained in:
2026-11-02 15:45:55 +01:00
parent df6565941e
commit 02c6795f53
5 changed files with 753 additions and 39 deletions
+2
View File
@@ -80,6 +80,7 @@ pub fn primary_secret(kind: ItemType) -> &'static str {
ItemType::ApiCredential => "secret",
ItemType::Card => "number",
ItemType::SecureNote => "notes",
ItemType::KeyPair => "private-key",
}
}
@@ -90,6 +91,7 @@ fn primary_user(kind: ItemType) -> Option<&'static str> {
ItemType::Wifi => Some("ssid"),
ItemType::Card => Some("cardholder"),
ItemType::SecureNote => None,
ItemType::KeyPair => Some("public-key"),
}
}