跳至主要内容

HashDice,The first Open Source Platform on Tron Network!!!

In the world of Blockchain, We firmly believe in WE DON'T NEED TO TRUST ANYTHING BUT THE CODE !!!
“Code is law”, it does not lie, blockchain developers can't break this baseline. So our motivation moving forward is transparency being the best decision for Hashdice future, we shall be releasing our source code for all to view, let the Code do the talking.
Although Tron doesn't provide the same verification tool currently used by Ethereum on Etherscan, it's no excuse for Dapp developers to centralize / manipulate the system. The core difference between decentralized apps and centralized apps is clear for all to see, we're dedicated to being an open and transparent decentralized application.
The Hashdice team has decided to lead the way by providing the verification tool linked to our Open Smart Contract Source Code. Instructions below should make this facility accessible to all.


Code Verification Method

Instructions below should make this facility accessible to all.
1. Install node.js and npm.
a) NodeJs official website: https://nodejs.org
b) Requires NodeJS 5.0+. Check version:
node -v  
2. Install the tronbox
npm install -g tronbox  
3. Download the source from github
a) Create a new directory called hashdice and enter the directory.
b) git clone https://github.com/hashdice/tron.git.
git clone https://github.com/hashdice/tron.git  
4. Deploy smart contracts on the shasta test chain.
a) Open tronbox.js and using your address and private key replace the comment.
    shasta: {  
      from: 'your address',  
      privateKey: 'your private key'
    }
b) Run tronbox migrate command.
tronbox migrate –-reset –-network shasta.  
c) Record the smart contract address deployed at Https://shasta.tronscan.org/#/contract/’contract address’ View contract abi and bytecode.
5. Compare the formal contract with the api and bytecode of the contract you're deploying. Due to the differences in the Tronbox versions, bytecode may have subtle differences for individual user but should not have any affect on the substantive functionality.
The official HashDice contract has been deployed at the following addresses:



评论

此博客中的热门博文

How to Play HashDice

1.Visit  http://hashdice.org 2. We recommend to play with Google Chrome, and install Tronlink on  https://bit.ly/2GLIrAG 3. Send some TRX into your Tronlink to play the game. For example, in the Dice mode, you can choose 1~5 results among the 6 possible results, which means different possibility to win and different odds, and click “BET”. 4. You can switch the game mode at the top of the page. 5. You can click at the upper right corner to switch to VENA to play. If you use VENA, you need to approve.

How to Verify A Bet on Hashdice?

Press “Only  me” on game history, press player’s any bet record. switch to tronsacn, bet transaction info like this: 1.  Transaction hash is come from transaction you signed, no one can foresee it. 2.  Commit come from hashdice, it’s generated from a random number called “rev eal” by keccak(sha3) encrypted, “reveal” can’t be falsified. Then it’s a little difficult action, you need to find the bet transaction on tronscan, and near it you’ll find a settle transaction submitted by croupier, it’s address is:   TJYxbHS7sJfDQBaCXVww62c67DyhBbc95j Settle bet transaction info like this: You will see tx hash and reveal here, anyone can verify it. And here you can see energy burn ratio between platform and player.