tiny-pow

1.0.4 • Public • Published

⚙️ tiny-pow - Tiny proof of work for modern browsers

last commit bundle size version downloads license

Tiny proof of work library for browser. It does use SubtleCrypto and async/await so it requires a secure context and a modern browser.

<script type="module">
  import tinyPow from "https://unpkg.com/tiny-pow";
  // use it as a module or just copy/paste the code

  await tinyPow("my data", 4)
  // will return the salt that has 4 zeros at the beginning of sha256("my data" + salt)
</script>

Package Sidebar

Install

npm i tiny-pow

Weekly Downloads

0

Version

1.0.4

License

MIT

Unpacked Size

4.45 kB

Total Files

7

Last publish

Collaborators

  • rundik