pub struct KeyRecord {
pub id: [u8; 32],
pub pubkey: [u8; 32],
pub key_type: KeyType,
pub name: String,
pub created_at: i64,
pub last_used: Option<i64>,
pub sign_count: u64,
pub encrypted_secret: Vec<u8>,
}Expand description
Metadata for a stored key record.
Fields§
§id: [u8; 32]Unique identifier derived from public key.
pubkey: [u8; 32]The public key bytes.
key_type: KeyTypeType of key.
name: StringHuman-readable name.
created_at: i64Unix timestamp when the key was created.
last_used: Option<i64>Unix timestamp of last use.
sign_count: u64Number of signatures made with this key.
encrypted_secret: Vec<u8>The encrypted secret key bytes.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for KeyRecord
impl<'de> Deserialize<'de> for KeyRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for KeyRecord
impl Freeze for KeyRecord
impl Move for KeyRecord
impl RefUnwindSafe for KeyRecord
impl Send for KeyRecord
impl Sync for KeyRecord
impl Unpin for KeyRecord
impl UnsafeUnpin for KeyRecord
impl UnwindSafe for KeyRecord
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more