https://github.com/161chihuahuas/equihash
⛏️ native equihash solver and verifier
https://github.com/161chihuahuas/equihash
client-puzzle cryptocurrency cryptography equihash khovratovich nodejs proof-of-work zcash
Last synced: 4 months ago
JSON representation
⛏️ native equihash solver and verifier
- Host: GitHub
- URL: https://github.com/161chihuahuas/equihash
- Owner: 161chihuahuas
- Created: 2024-11-18T20:50:45.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-06-10T22:26:05.000Z (4 months ago)
- Last Synced: 2025-06-10T23:29:21.057Z (4 months ago)
- Topics: client-puzzle, cryptocurrency, cryptography, equihash, khovratovich, nodejs, proof-of-work, zcash
- Language: C
- Homepage: http://chihuahua.rodeo/equihash/
- Size: 379 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ⛏️ equihash ~ *native equihash solver and verifier*
This package is a modern refactor of khovratovich/equihash, which has not seen updates since 2016. It borrows from digitalbazaar/equihash's native node.js addon, which has not been updated since 2017. This package reworks them to compile with the latest versions of node-gyp and g++.
## usage
```sh
npm install @yipyap/equihash
``````js
import { solve, verify } from '@yipyap/equihash';
import { randomBytes } from 'crypto';const N = 90;
const K = 5;// example
async function demo() {
const seed = randomBytes(32);
const solution = await solve(seed, N, K);
const valid = await verify(solution.proof, solution.nonce, N, K);console.log(solution); // {proof,nonce,n,k}
console.log(valid); // true/false
}
```## recommended parameters ( N, K )
### For cryptocurrencies
* (100/110/120, 4)
* (108/114/120/126, 5)### For client puzzles
* (60/70/80/90,4)
* (90/96/102,5)## links
* [Original C++ implementation of equihash proof-of-work by khovratovich](https://github.com/khovratovich/equihash)
* [Original Native Node.js module by digitalbazaar](https://github.com/digitalbazaar/equihash)## copying
@tacticalchihuahua/equihash by Lily Anne Hall is marked with CC0 1.0