From 041c148dcb15fe8289012dd7ee873611c2f3790a Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Sun, 26 Jan 2025 13:02:38 +0000 Subject: [PATCH] readme --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 32e7d7b..1607ce4 100644 --- a/README.md +++ b/README.md @@ -44,11 +44,11 @@ A standalone file [noble-hashes.js](https://github.com/paulmillr/noble-hashes/re ```js // import * from '@noble/hashes'; // Error: use sub-imports, to ensure small app size -import { sha256 } from '@noble/hashes/sha2'; // ECMAScript modules (ESM) and Common.js +import { sha256 } from '@noble/hashes/sha2'; // ESM & Common.js sha256(new Uint8Array([1, 2, 3]); // returns Uint8Array sha256('abc'); // == sha256(new TextEncoder().encode('abc')) -// Other imports +// Available modules import { sha256, sha384, sha512, sha224, sha512_256, sha512_384 } from '@noble/hashes/sha2'; import { sha3_256, sha3_512, keccak_256, keccak_512, shake128, shake256 } from '@noble/hashes/sha3'; import * as sha3_addons from '@noble/hashes/sha3-addons'; @@ -61,7 +61,7 @@ import { hmac } from '@noble/hashes/hmac'; import { hkdf } from '@noble/hashes/hkdf'; import { pbkdf2, pbkdf2Async } from '@noble/hashes/pbkdf2'; import { scrypt, scryptAsync } from '@noble/hashes/scrypt'; -import * as utils from '@noble/hashes/utils'; +import * as utils from '@noble/hashes/utils'; // bytesToHex, hexToBytes, etc ``` - [Implementations](#implementations)