@tevm/voltaire / index / wasm / Ripemd160Wasm
Ripemd160Wasm
Reset memory allocator (currently unused)Functions
hash()
hash(Defined in: src/crypto/ripemd160.wasm.ts:219 Compute RIPEMD160 hash (20 bytes)data):Uint8Array
Parameters
data
Input data (Uint8Array or string)string | Uint8Array<ArrayBufferLike>
Returns
Uint8Array
20-byte hash
Example
hashString()
hashString(Defined in: src/crypto/ripemd160.wasm.ts:259 Compute RIPEMD160 hash of UTF-8 stringstr):Uint8Array
Parameters
str
string
Input string
Returns
Uint8Array
20-byte hash
Example
load()
load():Defined in: src/crypto/ripemd160.wasm.ts:203 Load WASM module (must be called before using other functions)Promise<void>
Returns
Promise<void>
