Skip to main content

dpp_crypto/keystore/
entry.rs

1//! [`KeyEntry`] — a decrypted, in-memory Ed25519 key pair handed back by the store.
2
3use ed25519_dalek::{SigningKey, VerifyingKey};
4
5pub struct KeyEntry {
6    pub signing_key: SigningKey,
7    pub verifying_key: VerifyingKey,
8    pub fingerprint: String,
9    /// Whether this key has been revoked (see `KeyRecord::revoked`).
10    pub revoked: bool,
11}
12
13impl Drop for KeyEntry {
14    fn drop(&mut self) {
15        // zeroize is called automatically by ed25519_dalek's Drop impl
16    }
17}