add encryption & decryption for the sensitive identity & mnemonic in SQL DB
This commit is contained in:
@@ -45,6 +45,11 @@ export type Account = {
|
||||
publicKeyHex: string;
|
||||
};
|
||||
|
||||
export type AccountEncrypted = Account & {
|
||||
identityEncrBase64: string;
|
||||
mnemonicEncrBase64: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* Schema for the accounts table in the database.
|
||||
* Fields starting with a $ character are encrypted.
|
||||
|
||||
Reference in New Issue
Block a user