
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
raiblocks-pow
Advanced tools
Native compiled C Module for Node.js to calculate Proof of Work (PoW) value for a given RaiBlock Hash number (32-byte integer);
Based on jaimehgb/RaiBlocksWebAssembly, migrated to use node-gyp.
npm install --save raiblocks-pow
hex <String> 64-character hex string of previous block hashGenerate a work value for a given block hash synchronously.
Returns 16-character hex string of work value
This is also the default function exported, you may invoke it without specifying sync:
const pow = require('raiblocks-pow');
// The following are the same:
const work1 = pow('<previous block hash>');
const work2 = pow.sync('<previous block hash>');
hex <String> 64-character hex string of previous block hashcallback <Function> Standard error, result argumentsGenerate a work value for up to 10000000 iterations.
If no valid work is found in the given iterations, the callback will be called with a string result of 0.
pow.async(hash, (error, result) => {
console.log('Found', result);
});
hex <String> 64-character hex string of previous block hashcallback <Function> Standard error, result argumentsGenerate a work value until completion using multiple threads. (thread count = cpu count)
pow.threaded(hash, (error, result) => {
console.log('Found', result);
});
Use npm test to check a random block hash against an external threshold validation.
FAQs
RaiBlocks PoW native code module
The npm package raiblocks-pow receives a total of 8 weekly downloads. As such, raiblocks-pow popularity was classified as not popular.
We found that raiblocks-pow demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.