@tevm/voltaire / index / wasm / Blake2Wasm
Blake2Wasm
BLAKE2b operations namespace (WASM variant)See
https://voltaire.tevm.sh/crypto for crypto documentationSince
0.0.0Functions
hash()
hash(Defined in: src/crypto/Blake2/Blake2.wasm.ts:31 Hash data with BLAKE2b using WASM implementationdata,outputLength):Uint8Array
Parameters
data
Input data to hash (Uint8Array or string)string | Uint8Array<ArrayBufferLike>
outputLength
number = 64
Output length in bytes (1-64, default 64)
Returns
Uint8Array
BLAKE2b hash
See
https://voltaire.tevm.sh/crypto for crypto documentationSince
0.0.0Throws
If outputLength is invalidExample
hashString()
hashString(Defined in: src/crypto/Blake2/Blake2.wasm.ts:62 Hash string with BLAKE2b using WASM implementation (convenience function)str,outputLength):Uint8Array
Parameters
str
string
Input string to hash
outputLength
number = 64
Output length in bytes (1-64, default 64)
Returns
Uint8Array
BLAKE2b hash

