This code can be used to create a plot of an merkle tree. It's mainly for education purposes concerning the Merkle-Tree on the Bitcoin-Blockchain. Therefore, feel free to download the code and plot your own Merkle-Trees.
- see example_usage.py
- see Jupyter-Notebook merkle_tree_demo.ipynb
The plot is displayed in the ete tree browser. Therefore, it cannot be displayed within the jupyter-notebook.
The API is based on the etetoolkit for phylogenetic trees.
- Python 3.6 or higher
- ete3 | version 3.11
- deprecation | version 2.05
The code is written using explicit type hints which where introduced to Python in version 3.5.
Thanks to the authors of the etetoolkit. The project can be found here on GitHub.