MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / encryption_key

Method encryption_key

nodedb/src/wal/manager/encryption.rs:84–86  ·  view source on GitHub ↗

Get the current encryption key (if configured). Used for backup encryption.

(&self)

Source from the content-addressed store, hash-verified

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> {

Callers

nothing calls this directly

Calls 2

as_refMethod · 0.45
currentMethod · 0.45

Tested by

no test coverage detected