Add a key store to avoid storing secrets in the store
This commit is contained in:
5
src/env/test/mod.rs
vendored
5
src/env/test/mod.rs
vendored
@@ -151,6 +151,7 @@ impl Env for TestEnv {
|
||||
type Rng = TestRng256;
|
||||
type UserPresence = TestUserPresence;
|
||||
type Storage = BufferStorage;
|
||||
type KeyStore = Self;
|
||||
type UpgradeStorage = BufferUpgradeStorage;
|
||||
type FirmwareProtection = Self;
|
||||
type Write = TestWrite;
|
||||
@@ -169,6 +170,10 @@ impl Env for TestEnv {
|
||||
&mut self.store
|
||||
}
|
||||
|
||||
fn key_store(&mut self) -> &mut Self {
|
||||
self
|
||||
}
|
||||
|
||||
fn upgrade_storage(&mut self) -> Option<&mut Self::UpgradeStorage> {
|
||||
self.upgrade_storage.as_mut()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user