Visualize smart contracts.
By plotting the raw bytecode as bytes one can generate some interesting visualizations of a smart contract. Like this:
Contracts, as expected, look very similar to x86 or arm64 executables.
Inspired by this
Given a file of raw bytecode: 6080F3A2...
Plot each pair on a 2D plane like this:
- 60-80
- 80-F3
- F3-A2
and so on....
My explanation in a bit more detail can be found here
python 2d.py [path to dir]
python 3d.py [path to file]
see run.sh
for example