-
client/ Frontend to disply contract submissions and status (react)
-
contracts/ Contracts to implement Scrypt verification
-
src/ Agents and backend for the frontend (expressjs)
-
migrations/ For deployments of contracts from truffle
-
pyscrypt/ Scrypt calculation with intermediate steps in python
-
scryptsy/ Scrypt calculation with intermediate steps in javascript
-
cpp/ Outdated source of scrypt calculation in C++
- Truffle framework for deploying interacting with contracts
- Ethereumjs-Testrpc Ethereum testing node
$ npm install -g truffle ethereumjs-testrpc
In same the directory with package.json install project dependencies
$ npm install
There two configuration files
-
config.js: Contains general configuration parameters like ethereum node, port
-
local_config.json: Used to store values that cannot be commited like wallet seeds.
For each one two parameters:
seed
, andaddress
.{ "submitter": { "seed": "...", "address": "..." } }
There's a local_config.json.example that can be used as template.
New wallet seeds can be generated with
node src/tools/manageAccounts.js generate
.
Before running testing script contracts should be deployed
$ truffle migrate
If this fails you can try adding --reset
.
$ npm run start
To check contracts compilation before deployment
$ truffle compile
Common issues and solutions
$ truffle migrate --reset