Skip to content

dogethereum/scryptverifier

Repository files navigation

ScryptVerifier

Legacy repository, don't use it unless you know what you are doing

Organization

  • 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++

Documentation

Setup

Global dependencies

  • Truffle framework for deploying interacting with contracts
  • Ethereumjs-Testrpc Ethereum testing node
$ npm install -g truffle ethereumjs-testrpc

Local dependencies

In same the directory with package.json install project dependencies

$ npm install

Edit configuration

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, and address.

    {
      "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.

Deploy contracts

Before running testing script contracts should be deployed

$ truffle migrate

If this fails you can try adding --reset.

Run application

$ npm run start

Development

Contracts Compilation

To check contracts compilation before deployment

$ truffle compile

Workarounds

Common issues and solutions

Reset contracts deployment

$ truffle migrate --reset

About

Legacy Scrypt hash interactive verification

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published