New blockchain-based betting ecosystem.
PROOF OF TOSS is a new blockchain-based betting ecosystem that provides interaction of bookmakers and players through the smart contracts.
The development began in autumn of 2017.
The project is open-source, a link to a repository:
The architecture of the project is focused on two main points: storing of information in smart contracts and fast data retrieval.
An important feature is that there is no backend in the system. This solution allows the frontend to interact with smart contracts directly, without
Events and wagers in the system are created with the help of smart contracts. Also, smart contracts are used for storing events, bets for every wager, collaterals, judging and event deposits.
In fact, all business logic is allocated inside the smart contracts. The website is just an interface, which calls smart contracts and outputs data. Thanks to that and blockchain technology, the system gains features important for betting, such as decentralization, transparency, possibility for instant payouts, challenge resolutions.
The project is developed on a basis of RSK — smart contract platform which is a sidechain of Bitcoin. The Ethereum virtual machine is embedded inside RSK, which allows the execution of smart contracts written on Solidity.
Especially for the project, we have designed an on-chain random number generator which is resistant to fraud and miners’ manipulations. It chooses a random event for a judge.
The thing is that miners can manipulate with block time and other data. To be protected from such manipulations, the solution for random number generator has to be nontrivial. Miners see the result of the transaction in the new block, if they are not satisfied with it, they can skip sending the block and keep selecting a better result. That’s why the random number generator should be implemented in a way when a miner is able to see the algorithm’s result only after sending the block.
The interview about technical features with CTO of the project:
Project website PROOF OF TOSS: