https://github.com/jsign/binary-tree-spec
Python implementation spec for EIP-7864
https://github.com/jsign/binary-tree-spec
binary-tree ethereum
Last synced: 3 months ago
JSON representation
Python implementation spec for EIP-7864
- Host: GitHub
- URL: https://github.com/jsign/binary-tree-spec
- Owner: jsign
- License: mit
- Created: 2024-11-25T18:06:38.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-22T00:02:41.000Z (11 months ago)
- Last Synced: 2025-09-30T00:00:05.269Z (3 months ago)
- Topics: binary-tree, ethereum
- Language: Python
- Homepage:
- Size: 46.9 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# binary-tree-spec
This repository contains a minimal Python implementation for [EIP-7864](https://github.com/ethereum/EIPs/pull/9257) ([discussion thread](https://ethereum-magicians.org/t/eip-7864-ethereum-state-using-a-unified-binary-tree/22611)).
## Project Structure
- `tree.py`: Contains the implementation of the `BinaryTree` class.
- `embedding.py`: Contains the implementation accounts encoding into the tree.
## Running Tests
To run the tests, you can use the following command:
```sh
python -m unittest discover
```
This will discover and run all the tests in the `test_tree.py` file.
## License
This project is licensed under the MIT License. See the [LICENSE](./LICENSE) file for more details.