Skip to content

davidweb3-ctrl/rsa-pow-js-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rsa-pow-js-project

This project demonstrates generating an RSA keypair, performing a simple Proof-of-Work (POW) to find a nonce so that sha256(nickname+nonce) starts with a number of zeros, signing the resulting message with the private key and verifying with the public key.

Notes:

  • Default POW difficulty is 4 leading zeros (i.e. 0000...).
  • For unit tests we reduce difficulty to keep tests fast; production/demo run uses difficulty 4.

Install

npm install

Run demo

npm start

Run tests

npm test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published