Virtual Machine is a minimal Virtual Machine written in Rust, built to understand execution at the lowest level of computing and blockchain.
Every blockchain node from, Bitcoin to Ethereum to Solana, depends on a deterministic VM to execute transactions. Virtu is my first-principles exploration of that execution layer.
Make sure Rust and Cargo are installed.
git clone git@github.com:Lmpkessels/virtual-machine.git
cd virtual-machine
cargo testcargo test will run all unit tests across the project.
To understand a Blockchain VM (Virtual Machine):
- Ethereum Yellow Papers - Sec. 9
- Ethereum Virtual Machine
- Mastering Bitcoin - Ch.6
- Solana Whitepapers - Sec. 7.5
To understand an ALU (Arithmetic Logic Unit):
To understand the Stack:
To understand the cycle for the program counter:
To understand the layers of a program counter:
Pull requests are welcome. For major changes, please open an issue first to discuss what you’d like to improve or add.
Licensed under MIT License.
© 2025 Luuk Kessels
Development has been stoped for this project.
- 📧 l@lmpkessels.com
- 🐦 X/Twitter
- 👨💻 GitHub
- 🛠️ Open an issue