This project was developed as a term paper for the ZHAW CAS Big Data Analytics, Blockchain, and Distributed Ledger course. It aims to implement a lottery ticket system using an Ethereum Smart Contract to explore methods of generating random numbers in a deterministic environment.
- Implementation of a lottery ticket as an Ethereum Smart Contract.
- Examination of methods for generating random numbers on the blockchain.
- Provision of a web interface for interacting with the Smart Contract.
The application comprises three main components:
- Smart Contract: Developed in Solidity and deployed on the Ethereum blockchain.
- Web Interface: A React-based application for interacting with the Smart Contract.
- Blockchain Network: A local Ethereum network provided by Ganache for development and testing purposes.
- Compile Smart Contract >>
./cli.sh --build
- Run Smart Contract >>
./cli.sh --run
- Create Term Paper >>
./cli.sh --documentation
ganache-cli -p 7545 -d
cd smart-contract
truffle compile
truffle migrate --reset
cd ../web/
npm start
This Proof of Concept application is NOT for production use.
This software is provided as source code under an MIT license (see LICENSE)