I’ve been messing around with ICRC3 and needed to do hashing of the transaction entries. I wrote my own library but then found that @nometa had done most of the work in the ic-certification library. I ported over his work, ICRC3ified it a bit, and added a sleb128 function for integers.
I found a few tests in the rust crate: https://github.com/dfinity/response-verification/blob/main/packages/ic-representation-independent-hash/src/representation_independent_hash.rs
…but I probably need some more, especially to test the sleb128 function.
If anyone can give it a quick review I’ll keep searching for tests and, eventually, push it to mops.
cc: @timo, @roman-kashitsyn , @quint , @mariop