Use convenience hash functions in codebase

This commit is contained in:
willclarktech
2020-10-13 13:36:44 +02:00
parent 8e43dfb82a
commit 53d7d34b8a
16 changed files with 39 additions and 37 deletions
+3 -1
View File
@@ -75,7 +75,9 @@ export async function main(originalArgs: readonly string[]): Promise<void> {
"Random",
"Secp256k1",
"Sha256",
"sha256",
"Sha512",
"sha512",
"Slip10",
"Slip10Curve",
"Slip10RawIndex",
@@ -148,7 +150,7 @@ export async function main(originalArgs: readonly string[]): Promise<void> {
const readmeContent = fs.readFileSync(process.cwd() + "/README.md");
fs.writeFileSync(process.cwd() + "/README.md", readmeContent);
const hash = new Sha512(new Uint8Array([])).digest();
const hash = sha512(new Uint8Array([]));
const hexHash = toHex(hash);
export class NewDummyClass {};