tig-foundation / tig-monorepo

TIG is the first coordination protocol designed specifically for algorithmic innovation
https://tig.foundation
21 stars 35 forks source link

Blake 3 instead of md5 for merkle tree #16

Closed vstam1 closed 1 month ago

vstam1 commented 1 month ago

This Pr changes the rust Merkle tree implementation from a md5 hash to a blake3 hash and implements the same Merkle tree logic inside of python. It also showcases the use of the two implementations together.

To run the interaction example:

  1. run cargo run -p tig-utils
  2. Copy over the serialized strings from the output into the python main file
  3. install python dependencies using pip install -r requirements.txt
  4. run python main.py inside the tig-utils directory