Express chain is a simple blockchain implementation in the Cairo programming language. This blockchain includes basic functionalities such as creating blocks, mining blocks using proof-of-work, and adding blocks to the chain.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Before you begin, ensure you have the following installed:
- Cairo Compiler
- Ethereum Virtual Machine (EVM)
-
Clone the repository:
git clone https://github.com/your-username/my-blockchain.git
-
Navigate to the project directory:
cd my-blockchain
-
Compile the Cairo contracts:
# Replace <contract_filename> with the actual filename cairo-compile --output=<contract_filename>.out <contract_filename>.cairo
-
Deploy the compiled contract to the Ethereum blockchain.
Here's how you can interact with the blockchain:
// Replace <initial_data> with your desired data
init(<initial_data>, <initial_difficulty>)