digitalbazaar/equihash

Name: equihash

Owner: Digital Bazaar, Inc.

Description: Equihash Proof of Work for Node.js

Created: 2017-07-05 17:43:10.0

Updated: 2017-12-28 05:08:20.0

Pushed: 2017-10-03 21:26:22.0

Homepage: https://www.internetsociety.org/sites/default/files/blogs-media/equihash-asymmetric-proof-of-work-based-generalized-birthday-problem.pdf

Size: 112

Language: C++

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Equihash Proof of Work for Node

Build Status

Equihash is a tunable asymmetric proof of work algorithm where it is difficult to generate a proof, but easy to verify one. The algorithm makes it difficult to build custom hardware to generate the proof by ensuring forced CPU and memory trade offs. The algorithm is useful for cryptocurrency mining as well as building solutions that require a proof of work capability.

Installation
install equihash
The Equihash API
Usage Example
t equihash = require('equihash')('khovratovich');

nput seed for equihash (up to 512 bits)
t input = crypto.createHash('sha256').update('test1234', 'utf8').digest();
t options = {
 90,
 5


hash.solve(input, options, (err, proof) => {
(err) {
return console.log('Failed to generate proof:', err);


nsole.log('Equihash proof:', proof)
nsole.log('Valid proof? ', equihash.verify(input, proof));

Test Suite
install
run test

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.