Skip to content

Commit e3597d9

Browse files
committed
README
1 parent 198e556 commit e3597d9

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,27 +81,28 @@ const { wordlist } = require("ethereum-cryptography/bip39/wordlists/english");
8181
## Hashes: SHA256, keccak-256, RIPEMD160, BLAKE2b
8282
```typescript
8383
function sha256(msg: Uint8Array): Uint8Array;
84+
function sha512(msg: Uint8Array): Uint8Array;
8485
function keccak256(msg: Uint8Array): Uint8Array;
8586
function ripemd160(msg: Uint8Array): Uint8Array;
8687
function blake2b(msg: Uint8Array, outputLength = 64): Uint8Array;
8788
```
8889

90+
Exposes following cryptographic hash functions:
91+
8992
- SHA2 (SHA256, SHA512)
90-
- keccak-256 variant of SHA3
93+
- keccak-256 variant of SHA3 (also `keccak224`, `keccak384`,
94+
and `keccak512`)
9195
- RIPEMD160
9296
- BLAKE2b
9397

9498
```js
9599
const { sha256 } = require("ethereum-cryptography/sha256");
100+
const { sha512 } = require("ethereum-cryptography/sha512");
96101
const { keccak256, keccak224, keccak384, keccak512 } = require("ethereum-cryptography/keccak");
97102
const { ripemd160 } = require("ethereum-cryptography/ripemd160");
98103
const { blake2b } = require("ethereum-cryptography/blake2b");
99104
```
100105

101-
The `keccak` submodule has four functions that implement different variations of
102-
the Keccak hashing algorithm. These are `keccak224`, `keccak256`, `keccak384`,
103-
and `keccak512`.
104-
105106
## KDFs: PBKDF2, Scrypt
106107

107108
```ts

0 commit comments

Comments
 (0)