pub unsafe extern "C" fn assert_ripemd160(
    data: *const c_char,
    length: u32,
    hash: *const capi_checksum160
)
Expand description

Tests if the ripemod160 hash generated from data matches the provided checksum. @brief Tests if the ripemod160 hash generated from data matches the provided checksum.

@param data - Data you want to hash @param length - Data length @param hash - capi_checksum160* hash to compare to

@pre assert160 hash of data equals provided hash parameter. @post Executes next statement. If was not true, hard return.

Example:

@code checksum hash; char data; uint32_t length; assert_ripemod160( data, length, hash ) //If the ripemod160 hash generated from data does not equal provided hash, anything below will never fire. eosio::print(“ripemod160 hash generated from data equals provided hash”); @endcode