mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 21:37:41 +08:00
refactor(router): remove pii-encryption-script feature and use of timestamps for decryption (#1350)
This commit is contained in:
@ -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]
|
||||
|
||||
Reference in New Issue
Block a user