refactor(router): remove pii-encryption-script feature and use of timestamps for decryption (#1350)

This commit is contained in:
Sanchith Hegde
2023-06-05 18:18:00 +05:30
committed by GitHub
parent 5d8895c064
commit 9f2832f600
24 changed files with 52 additions and 585 deletions

View File

@ -74,16 +74,12 @@ pub trait StorageInterface:
pub trait MasterKeyInterface {
fn get_master_key(&self) -> &[u8];
fn get_migration_timestamp(&self) -> i64;
}
impl MasterKeyInterface for Store {
fn get_master_key(&self) -> &[u8] {
&self.master_key
}
fn get_migration_timestamp(&self) -> i64 {
self.migration_timestamp
}
}
/// Default dummy key for MockDb
@ -94,10 +90,6 @@ impl MasterKeyInterface for MockDb {
25, 26, 27, 28, 29, 30, 31, 32,
]
}
fn get_migration_timestamp(&self) -> i64 {
0
}
}
#[async_trait::async_trait]