The user can specify the location of the Ethereum node they wish to use using the following:
The wiki serves as the public-facing documentation for this project.
If something is unclear, please submit an issue for it and we will work on updating the documentation to address your issues when learning about the platform.
Here are the steps for testing the demo:
- Generate two private keys (DO NOT USE THESE TO STORE FUNDS)
$ cd demo
$ echo [PICK RANDOM NUMBER] > ./receiver.key
$ echo [PICK RANDOM NUMBER] > ./sender.key
- Get Ethereum account addresses for these keys (for later)
$ python get-address.py $(cat ./receiver.key) > ./receiver.acct
$ python get-address.py $(cat ./sender.key) > ./sender.acct
- Deploy the authlist contract to the network
$ python deploy.py --network ropsten auth-list > ./authlist.acct
- Add these addresses to the deployed Authorization List
$ python authorize.py --network ropsten $(cat ./authlist.acct) $(cat ./receiver.acct) \
$(python get-branch.py --network ropsten $(cat ./authlist.acct) $(cat ./receiver.acct))
# Wait for txn to mine...
$ python authorize.py --network ropsten $(cat ./authlist.acct) $(cat ./sender.acct) \
$(python get-branch.py --network ropsten $(cat ./authlist.acct) $(cat ./sender.acct))
# Wait for txn to mine...
- Record the auth root hash
$ python root.py --network ropsten $(cat ./authlist.acct) > auth-root.hash
- Obtain Merkle Branch via Listener
$ python get-branch.py --network ropsten $(cat ./authlist.acct) $(cat ./receiver.acct) > receiver-branch.ls
$ python get-branch.py --network ropsten $(cat ./authlist.acct) $(cat ./sender.acct) > sender-branch.ls
- Also, mint tokens!
$ python deploy.py --network ropsten gun-token > ./token.acct
# Wait for txn to mine...
$ python mint.py --network ropsten $(cat ./token.acct) [PICK RANDOM NUMBER] $(cat ./receiver.acct)
# Wait for txn to mine...