dpp-crypto 0.9.0

Ed25519 key management, JWS signing/verification, and did:web document builder
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! [`KeyEntry`] — a decrypted, in-memory Ed25519 key pair handed back by the store.

use ed25519_dalek::{SigningKey, VerifyingKey};

pub struct KeyEntry {
    pub signing_key: SigningKey,
    pub verifying_key: VerifyingKey,
    pub fingerprint: String,
    /// Whether this key has been revoked (see `KeyRecord::revoked`).
    pub revoked: bool,
}

impl Drop for KeyEntry {
    fn drop(&mut self) {
        // zeroize is called automatically by ed25519_dalek's Drop impl
    }
}