Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 824 Bytes

README.md

File metadata and controls

34 lines (21 loc) · 824 Bytes

Ripemd160 in Noir

License: MIT

How to use?

Add dependency to your project's Nargo.toml

[dependencies]
ripemd160 = { git = "https://github.com/distributed-lab/noir-ripemd160" }

Employ in your Noir code as following

use ripemd160::ripemd160;

...

// Example
ripemd160(data);

Library Overview

Functions

  • ripemd160 - Accepts an array of bytes with any length and return 20-bytes array as hash. Data must be represented in big-endian order

  • byte_array_to_hex - Converts bytes array to hex string. Accepts 20-bytes array

Structs