@tevm/voltaire / crypto/Ripemd160
crypto/Ripemd160
Variables
HEX_SIZE
Defined in: src/crypto/Ripemd160/constants.js:28 Size of RIPEMD160 hash in hex characters (without 0x prefix)constHEX_SIZE:40=40
See
https://voltaire.tevm.sh/crypto for crypto documentationSince
0.0.0Throws
Example
Ripemd160
Defined in: src/crypto/Ripemd160/Ripemd160.js:53constRipemd160: (input) =>Ripemd160Hash&object=Ripemd160Hash
Type Declaration
from()
from: (Hash input with RIPEMD160 (constructor pattern) Auto-detects input type and hashes accordingly:input) =>Ripemd160Hash
- Uint8Array: hash directly
- string: UTF-8 encode then hash
Parameters
input
Data to hashstring | Uint8Array<ArrayBufferLike>
Returns
Ripemd160Hash
20-byte hash
See
https://voltaire.tevm.sh/crypto/ripemd160 for crypto documentationSince
0.0.0Throws
Example
fromHex()
fromHex: (Compute RIPEMD160 hash of hex string (without 0x prefix)hex) =>Ripemd160Hash=hashHex
Parameters
hex
string
Hex string (with or without 0x prefix)
Returns
Ripemd160Hash
20-byte hash
See
https://voltaire.tevm.sh/crypto for crypto documentationSince
0.0.0Throws
Example
fromString()
fromString: (Compute RIPEMD160 hash of UTF-8 stringstr) =>Ripemd160Hash=hashString
Parameters
str
string
Input string
Returns
Ripemd160Hash
20-byte hash
See
https://voltaire.tevm.sh/crypto for crypto documentationSince
0.0.0Throws
Example
hash()
hash: (Compute RIPEMD160 hash (20 bytes)data) =>Ripemd160Hash
Parameters
data
Input data (Uint8Array or string)string | Uint8Array<ArrayBufferLike>
Returns
Ripemd160Hash
20-byte hash
See
https://voltaire.tevm.sh/crypto for crypto documentationSince
0.0.0Throws
Example
hashHex()
hashHex: (Compute RIPEMD160 hash of hex string (without 0x prefix)hex) =>Ripemd160Hash
Parameters
hex
string
Hex string (with or without 0x prefix)
Returns
Ripemd160Hash
20-byte hash
See
https://voltaire.tevm.sh/crypto for crypto documentationSince
0.0.0Throws
Example
hashString()
hashString: (Compute RIPEMD160 hash of UTF-8 stringstr) =>Ripemd160Hash
Parameters
str
string
Input string
Returns
Ripemd160Hash
20-byte hash
See
https://voltaire.tevm.sh/crypto for crypto documentationSince
0.0.0Throws
Example
HEX_SIZE
HEX_SIZE: number
Size of RIPEMD160 hash in hex characters (without 0x prefix)
See
https://voltaire.tevm.sh/crypto for crypto documentationSince
0.0.0Throws
Example
SIZE
SIZE: number
Size of RIPEMD160 hash in bytes (160 bits)
See
https://voltaire.tevm.sh/crypto for crypto documentationSince
0.0.0Throws
Example
Deprecated
Use Ripemd160Hash instead Ripemd160 alias maintained for backward compatibilitySIZE
Defined in: src/crypto/Ripemd160/constants.js:14 Size of RIPEMD160 hash in bytes (160 bits)constSIZE:20=20
See
https://voltaire.tevm.sh/crypto for crypto documentationSince
0.0.0Throws
Example
Functions
from()
from(Defined in: src/crypto/Ripemd160/from.js:24 Hash input with RIPEMD160 (constructor pattern) Auto-detects input type and hashes accordingly:input):Ripemd160Hash
- Uint8Array: hash directly
- string: UTF-8 encode then hash
Parameters
input
Data to hashstring | Uint8Array<ArrayBufferLike>
Returns
Ripemd160Hash
20-byte hash
See
https://voltaire.tevm.sh/crypto/ripemd160 for crypto documentationSince
0.0.0Throws
Example
hash()
hash(Defined in: src/crypto/Ripemd160/hash.js:19 Compute RIPEMD160 hash (20 bytes)data):Ripemd160Hash
Parameters
data
Input data (Uint8Array or string)string | Uint8Array<ArrayBufferLike>
Returns
Ripemd160Hash
20-byte hash
See
https://voltaire.tevm.sh/crypto for crypto documentationSince
0.0.0Throws
Example
hashHex()
hashHex(Defined in: src/crypto/Ripemd160/hashHex.js:19 Compute RIPEMD160 hash of hex string (without 0x prefix)hex):Ripemd160Hash
Parameters
hex
string
Hex string (with or without 0x prefix)
Returns
Ripemd160Hash
20-byte hash
See
https://voltaire.tevm.sh/crypto for crypto documentationSince
0.0.0Throws
Example
hashString()
hashString(Defined in: src/crypto/Ripemd160/hashString.js:19 Compute RIPEMD160 hash of UTF-8 stringstr):Ripemd160Hash
Parameters
str
string
Input string
Returns
Ripemd160Hash
20-byte hash

