ripemd160_hash
RIPEMD-160 hash function entrypoint
Computes the RIPEMD-160 hash of the input data. This implementation is based on the original work by j1mbo64: https://github.com/j1mbo64/ripemd160_cairo
Arguments
data- Input data to hash
Returns
RIPEMD160Context- Context containing the computed hash
Example
let data: ByteArray = "Hello, World!";
let hash_ctx = ripemd160_hash(@data);
let hash_u256 = ripemd160_context_as_u256(@hash_ctx);
Fully qualified path: alexandria_math::ripemd160::ripemd160_hash
pub fn ripemd160_hash(data: @ByteArray) -> RIPEMD160Context