Get the current encryption key (if configured). Used for backup encryption.
(&self)
| 82 | |
| 83 | /// Get the current encryption key (if configured). Used for backup encryption. |
| 84 | pub fn encryption_key(&self) -> Option<&nodedb_wal::crypto::WalEncryptionKey> { |
| 85 | self.encryption_ring.as_ref().map(|r| r.current()) |
| 86 | } |
| 87 | |
| 88 | /// Get the key ring (if configured). Used for dual-key decryption during replay. |
| 89 | pub fn encryption_ring(&self) -> Option<&nodedb_wal::crypto::KeyRing> { |