Skip to content

Commit

Permalink
feat(inji-406): add tag to identify logs for vc tampering
Browse files Browse the repository at this point in the history
  • Loading branch information
tilak-puli committed Oct 10, 2023
1 parent 28914d5 commit 06983b6
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions shared/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,19 @@ class Storage {
const isCorrupted = await this.isCorruptedVC(key, encryptionKey, data);

if (isCorrupted) {
console.debug('VC is corrupted and will be deleted from storage');
console.debug('VC key: ', key);
console.debug('is Data null', data === null);
console.debug(
'[Inji-406]: VC is corrupted and will be deleted from storage',
);
console.debug('[Inji-406]: VC key: ', key);
console.debug('[Inji-406]: is Data null', data === null);
getItem(MY_VCS_STORE_KEY, [], encryptionKey).then(res => {
console.debug('vcKeys are ', JSON.stringify(res));
console.debug('[Inji-406]: vcKeys are ', JSON.stringify(res));
});
getItem(RECEIVED_VCS_STORE_KEY, null, encryptionKey).then(res => {
console.debug('received vcKeys is ', JSON.stringify(res));
console.debug(
'[Inji-406]: received vcKeys is ',
JSON.stringify(res),
);
});
}

Expand Down

0 comments on commit 06983b6

Please sign in to comment.