add encryption & decryption for the sensitive identity & mnemonic in SQL DB

This commit is contained in:
2025-05-26 22:42:20 -06:00
parent 35f5df6b6b
commit 0bfc18c385
8 changed files with 105 additions and 48 deletions

View File

@@ -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.