File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -81,27 +81,28 @@ const { wordlist } = require("ethereum-cryptography/bip39/wordlists/english");
81
81
## Hashes: SHA256, keccak-256, RIPEMD160, BLAKE2b
82
82
``` typescript
83
83
function sha256(msg : Uint8Array ): Uint8Array ;
84
+ function sha512(msg : Uint8Array ): Uint8Array ;
84
85
function keccak256(msg : Uint8Array ): Uint8Array ;
85
86
function ripemd160(msg : Uint8Array ): Uint8Array ;
86
87
function blake2b(msg : Uint8Array , outputLength = 64 ): Uint8Array ;
87
88
```
88
89
90
+ Exposes following cryptographic hash functions:
91
+
89
92
- SHA2 (SHA256, SHA512)
90
- - keccak-256 variant of SHA3
93
+ - keccak-256 variant of SHA3 (also ` keccak224 ` , ` keccak384 ` ,
94
+ and ` keccak512 ` )
91
95
- RIPEMD160
92
96
- BLAKE2b
93
97
94
98
``` js
95
99
const { sha256 } = require (" ethereum-cryptography/sha256" );
100
+ const { sha512 } = require (" ethereum-cryptography/sha512" );
96
101
const { keccak256 , keccak224 , keccak384 , keccak512 } = require (" ethereum-cryptography/keccak" );
97
102
const { ripemd160 } = require (" ethereum-cryptography/ripemd160" );
98
103
const { blake2b } = require (" ethereum-cryptography/blake2b" );
99
104
```
100
105
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
-
105
106
## KDFs: PBKDF2, Scrypt
106
107
107
108
``` ts
You can’t perform that action at this time.
0 commit comments