Skip to content

GunClear/PlasmaRifle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started

Using the Daemon

The user can specify the location of the Ethereum node they wish to use using the following:

Documentation

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.

Testing

Demo

Here are the steps for testing the demo:

  1. 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
  1. 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
  1. Deploy the authlist contract to the network
$ python deploy.py --network ropsten auth-list > ./authlist.acct
  1. 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...
  1. Record the auth root hash
$ python root.py --network ropsten $(cat ./authlist.acct) > auth-root.hash
  1. 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
  1. 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...

Release

Reporting Security Issues

About

GunClear Ethereum contracts, lib and demo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published