pub trait SecretStore: Send + Sync {
// Required methods
fn read(&self, name: &str) -> Result<Option<Zeroizing<Vec<u8>>>>;
fn write(&self, name: &str, bytes: &[u8]) -> Result<()>;
fn remove(&self, name: &str) -> Result<()>;
}Expand description
Where an Identity keeps its secrets (seed, node.key, keys): bytes by name.
Implement it over the OS keystore to keep them out of files.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".