Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions src/lib/crypto/evm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,9 @@ function deriveChild(
}

/**
* Securely zero out a Uint8Array to prevent sensitive data from lingering in memory
* Clear a Uint8Array to reduce the likelihood of sensitive data lingering in memory
*/
function secureZero(arr: Uint8Array): void {
if (typeof crypto !== 'undefined' && crypto.getRandomValues) {
crypto.getRandomValues(arr);
}
arr.fill(0);
}

Expand Down