From 18f7c7c53193166127771f543d7a7efddb668d91 Mon Sep 17 00:00:00 2001 From: Roy <53046899+1997roylee@users.noreply.github.com> Date: Tue, 13 Sep 2022 12:52:52 +0800 Subject: [PATCH] Update README.md There are a mistake on line 147 in the document. Change "import { scryptAsync }" to "import { scrypt }". --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4ad19cc..0c1b396 100644 --- a/README.md +++ b/README.md @@ -142,7 +142,7 @@ console.log(await pbkdf2(utf8ToBytes("password"), utf8ToBytes("salt"), 131072, 3 ``` ```js -const { scryptSync } = require("ethereum-cryptography/scrypt"); +const { scrypt } = require("ethereum-cryptography/scrypt"); const { utf8ToBytes } = require("ethereum-cryptography/utils"); console.log(await scrypt(utf8ToBytes("password"), utf8ToBytes("salt"), 262144, 8, 1, 32)); ```