UNPKG

mxbit

Version:
18 lines (13 loc) 309 B
/*! * vertcoin.js - proof of work functions for vertcoin */ const Lyra2v3 = require('matrixbithash'); const hash256 = require('bcrypto/lib/hash256'); function pow(data, height) { if (height >= 29) { return Lyra2v3.digest(data); } else { return hash256.digest(data); } } exports.pow = pow;