[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:
@@ -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"),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user