{"_id":"@ignored/ethash","_rev":"14-25991d06ccf96dd1ace7bc017614c456","name":"@ignored/ethash","dist-tags":{"latest":"2.0.0-beta.6"},"versions":{"2.0.0-beta.3":{"name":"@ignored/ethash","version":"2.0.0-beta.3","keywords":["ethash","ethereum","POW"],"author":{"name":"mjbecze","email":"mjbecze@gmail.com"},"license":"MPL-2.0","_id":"@ignored/ethash@2.0.0-beta.3","maintainers":[{"name":"fvictorio","email":"victorio.franco@gmail.com"},{"name":"alcuadrado","email":"email@patriciopalladino.com"}],"homepage":"https://github.com/ethereumjs/ethereumjs-monorepo/tree/master/packages/ethash#readme","bugs":{"url":"https://github.com/ethereumjs/ethereumjs-monorepo/issues?q=is%3Aissue+label%3A%22package%3A+ethash%22"},"dist":{"shasum":"c706524cb4813e7dc7ccac2b0e54940bc949d053","tarball":"https://registry.npmjs.org/@ignored/ethash/-/ethash-2.0.0-beta.3.tgz","fileCount":13,"integrity":"sha512-GxNUO8FB3EGXtLv83TEUOBqRn1eiJ592cKAmh5ji4K9Fo6xsGFqv6gWrUmQZAbmITTXnh4LT+mYsGqpyOtOUNg==","signatures":[{"sig":"MEUCIFLbqbjcC3xbbZJ3F+MGake+9oLotyEF2NnoaIpJBJKbAiEAmXaAD6LuFO0tCMjoe4cUD5fYhnovgeruuLlVQqN1XRc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":70426,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi/QV5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrSGw/+JqDzKyvIPteS7BiUNcAUSegE3KlgFgv57gKNXAECu5g/9Xri\r\njHJ2EhODF2N2T39OxB8FFG9z135tvLEUwVATlv8sEojVqLrWcnGDmZ+ne3to\r\nNcKoeTTQWn+Dz8XluNfP1e0vQPU7orE5QUb0HMpau40FgZ0ETRgmJNYqkcoZ\r\nJuOIcgflDQ+lg4kP/LVrzMFu7ah35aW8bPyvIInH+tEObfk3/oRbrn75vez/\r\nqxO1hECfz4zHnmLYeJ4H72IYGUjF/dGVYqACA75Lnp6blEPt5zJv34R5IPEd\r\nnDx6KIZkd+QLmxkewvVFOJppSlFvlrht3vbzEsbVtcmxFB9832wChXVGGCRr\r\nfsOAHcfJ0kYIykcRFB8K+c/Pz40xdxxf+QDhyhqIdT1WxBfWAbKgPWRWA/8Y\r\nnaoL2Q8jNCOTljkm/iNMLfpZsSCQcTip/mNcY9cUYD456KwXiFzNIBSF4AVJ\r\nM8YJqidD2WBxqz7wNGBXwr+BGCGJI0ZW2ISivz8SdJ1hZdA+PJLxioGe8OiK\r\ngCxfYoSZxnNDrKCWXTnRJH6iL5ROfB4IRQdejeHFi4u9Cp1msN7HeM1OMmIa\r\nckdsaBw36gp3UD29ZBUurM5yKPv5bHpX/CZKgJVNHIEt6OksnuJE74PkdFYS\r\nMsFSkG2+cgNLs1sqcYiScElaGiAfu82i6Pc=\r\n=/Q5n\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"e6cd90ad72ae51dc60e6f2b0b6d3e56312469bbb","scripts":{"tsc":"../../config/cli/ts-compile.sh","lint":"../../config/cli/lint.sh","test":"tape -r ts-node/register test/*.spec.ts","build":"../../config/cli/ts-build.sh","clean":"../../config/cli/clean-package.sh","coverage":"../../config/cli/coverage.sh","lint:fix":"../../config/cli/lint-fix.sh","lint:diff":"../../config/cli/lint-diff.sh","docs:build":"typedoc --options typedoc.js"},"_npmUser":{"name":"fvictorio","email":"victorio.franco@gmail.com"},"repository":{"url":"git+https://github.com/ethereumjs/ethereumjs-monorepo.git","type":"git"},"_npmVersion":"8.15.1","description":"An ethash implementation in JavaScript","directories":{},"_nodeVersion":"14.19.3","dependencies":{"buffer-xor":"^2.0.1","@ignored/rlp":"4.0.0-beta.3","miller-rabin":"^4.0.0","@ignored/util":"8.0.0-beta.3","@ignored/block":"4.0.0-beta.3","abstract-level":"^1.0.3","bigint-crypto-utils":"^3.0.23","ethereum-cryptography":"^1.1.2"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.1.0","tape":"^5.3.1","eslint":"^8.0.0","ts-node":"^10.2.1","typescript":"^4.4.2","@types/tape":"^4.13.2","memory-level":"^1.0.0","@ignored/common":"3.0.0-beta.3"},"_npmOperationalInternal":{"tmp":"tmp/ethash_2.0.0-beta.3_1660749177326_0.9098681862082831","host":"s3://npm-registry-packages"}},"2.0.0-beta.4":{"name":"@ignored/ethash","version":"2.0.0-beta.4","keywords":["ethash","ethereum","POW"],"author":{"name":"mjbecze","email":"mjbecze@gmail.com"},"license":"MPL-2.0","_id":"@ignored/ethash@2.0.0-beta.4","maintainers":[{"name":"fvictorio","email":"victorio.franco@gmail.com"},{"name":"alcuadrado","email":"email@patriciopalladino.com"}],"homepage":"https://github.com/ethereumjs/ethereumjs-monorepo/tree/master/packages/ethash#readme","bugs":{"url":"https://github.com/ethereumjs/ethereumjs-monorepo/issues?q=is%3Aissue+label%3A%22package%3A+ethash%22"},"dist":{"shasum":"3cf63e5ec912443589ea328e2fd68b0eb352f6c8","tarball":"https://registry.npmjs.org/@ignored/ethash/-/ethash-2.0.0-beta.4.tgz","fileCount":13,"integrity":"sha512-E8gQJq4MGUbK40SJ9YSnxIWEsyHEupcsa0tZZbRIOhwtmocCl9ojPTDbDdeaTbVIeyARgba9JkeF0/slBXB+hg==","signatures":[{"sig":"MEUCIQD/3GBgcHnWzIuFb/sTF4yqvYsE7gFQyii0dxFJvuMg/AIgOjX+pYMTvqsx38d7nuzCUtYOj7P1sCm2vMGY5GIYCvE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":70887,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjAR6yACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoaYQ/+Jrd9lBWZ59DsnTwNeDZ9nVxwlDoY8ynPbjyaxEszTypLXbRN\r\n1d1OeaefEuYjQQF1OaPgSY8KgVk8b85ZC7JJZoMFzhX7tKi3JDrg/et+xL+D\r\nBcbD0Zxa7bct61tbYELLtrB/KzE23twucWm1zTV5zXDbz/dr2g6sndMB423P\r\n2mA3C9nnyFa/GGuqQnw99QbRdDmhPFe6G+461nO6GzdRzSOvDgsGadGgF5EB\r\novkX6XXXnx3yfJMT0VZvt2TSsj0oFe59p3dEx8oh9Y4Z5Oj/KCFOZRtGbA/V\r\n+Zoxt3Q+TB/oORA+KmQS0M3HUo3LzIGnljqI9CKcMPN+UJW3iVGr5mNdN9Tr\r\nKkzBT2KK1YVWVpcmb0WAuIZuwusmLO4EaPMMyc/XuOwpxZKer6KB+K5TVDFw\r\ndlzvgIJ1cij9bPcI2SNqkDrudNVdDdLBVboCUscon4ahsV8s0j+BMnqxlbCR\r\nG5bWPb0FPMFtAjtNOy+Z/W14Mxw1J6xL8VkQ3Qh0HEUz7GHZ5BIspmGS+Xu6\r\nYcGaun3CMx3lSetCmo1pvgrP11C5m3NeZGcJlzWDzqxG9ntTSqZPgXPbBsmA\r\nmfHmm4QgXR9gpLgcdLZzDS3rYbkhbvZYcwy88k7JooAnf2/jQAahoCk6knK0\r\njlpdRPHMjAx2ZA5xxZsM8o+Ke7IfegN3oBk=\r\n=g2Y/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=14"},"gitHead":"38f7fe0088ea852ecb0a8a5b4b5bcd00e68b5b25","scripts":{"tsc":"../../config/cli/ts-compile.sh","lint":"../../config/cli/lint.sh","test":"tape -r ts-node/register test/*.spec.ts","build":"../../config/cli/ts-build.sh","clean":"../../config/cli/clean-package.sh","coverage":"../../config/cli/coverage.sh","lint:fix":"../../config/cli/lint-fix.sh","lint:diff":"../../config/cli/lint-diff.sh","docs:build":"typedoc --options typedoc.js"},"_npmUser":{"name":"fvictorio","email":"victorio.franco@gmail.com"},"repository":{"url":"git+https://github.com/ethereumjs/ethereumjs-monorepo.git","type":"git"},"_npmVersion":"8.15.1","description":"An ethash implementation in JavaScript","directories":{},"_nodeVersion":"14.19.3","dependencies":{"@ignored/rlp":"4.0.0-beta.4","@ignored/util":"8.0.0-beta.4","@ignored/block":"4.0.0-beta.4","abstract-level":"^1.0.3","bigint-crypto-utils":"^3.0.23","ethereum-cryptography":"^1.1.2"},"_hasShrinkwrap":false,"devDependencies":{"memory-level":"^1.0.0","@ignored/common":"3.0.0-beta.4"},"_npmOperationalInternal":{"tmp":"tmp/ethash_2.0.0-beta.4_1661017778508_0.2663390207406966","host":"s3://npm-registry-packages"}},"2.0.0-beta.5":{"name":"@ignored/ethash","version":"2.0.0-beta.5","keywords":["ethash","ethereum","POW"],"author":{"name":"mjbecze","email":"mjbecze@gmail.com"},"license":"MPL-2.0","_id":"@ignored/ethash@2.0.0-beta.5","maintainers":[{"name":"fvictorio","email":"victorio.franco@gmail.com"},{"name":"alcuadrado","email":"email@patriciopalladino.com"}],"homepage":"https://github.com/ethereumjs/ethereumjs-monorepo/tree/master/packages/ethash#readme","bugs":{"url":"https://github.com/ethereumjs/ethereumjs-monorepo/issues?q=is%3Aissue+label%3A%22package%3A+ethash%22"},"dist":{"shasum":"9eaef0bf3cce0f9bc7da8dd88a1e831cce6a6f08","tarball":"https://registry.npmjs.org/@ignored/ethash/-/ethash-2.0.0-beta.5.tgz","fileCount":13,"integrity":"sha512-fIhbcy+g2RgOCFb1IbA5UdMCM5eSnkTQd7YHCRkW4l4190fs5ivJ+dHPhNN+pC02HBIQLjjokTTmkx/gYjnKQg==","signatures":[{"sig":"MEQCICrzY8T/LaoG3n/bmMYUel14nsNs2ms0OSYE3Tph1q+kAiBKhNpsCKpUpS6HRKYCC11DyUcW5TaX8tBtMikpqsAIzQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":70887,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjASDVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp0nw//dyXwjjHyNhWhwRVgi2EDZ43YeqvrjBIUDSJ8B8PwR2J9GdUY\r\nRfTbAeWeYXOeFxXkhRJ/iWj3t750oj5RPVTyCDRi/kDTvADN9ZilvO/uqncc\r\n67f1Jzo1u2Oz8VDCMWx8ggRhW5KMSSUwHU2QNcPOfy5MbbPA1FiE3EmSqytk\r\nJAORujolnBFZfsrG9x/hUmP6DDZ8rAVl3ptOHniQuUr6zZFcenhWfJiqu2EX\r\nuGmAW5EtaA2rtg/ctedsTzeo4UeDN4iFwYsvph/TcVNFAUBxjggniIjry6GA\r\nI/Nh4+YAD4pBAJCvpGFLAJuu+CXlUdm9C8QqQZL8xeV8yhTIphhVdHWvSPdG\r\nTqjCB/VIm1Ljz1AdPUT615D00W4GgQgaHR6CuFDei9Y2CS7D+wb/fw54wWD8\r\nUTNI/Vuj7mJ/3S9/J+mEwi8p/mpX9an8tDenSvw7r1i8pG52J2RD6LMN7VOp\r\nxVAVKoeT+pVNa/3N7MWb9FCgVGkT3v/Gch9u/7d9uevj5NdO23weTobDCH+3\r\nqAENZgfnf2afl9eOSsr0u1kqwLnGH5e6zR8IIyiSGf0SOUN1dQJsxW5uFUUu\r\nxHmSPlTR/i1OlKJCJ/qFStNsttEyddsVgAkhdllL+K37xaVqS4vTlii65uqt\r\nuC0TVBtVKYzyGZJMo92kNhAtD9kmZhGo2EE=\r\n=RTRd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=14"},"gitHead":"38f7fe0088ea852ecb0a8a5b4b5bcd00e68b5b25","scripts":{"tsc":"../../config/cli/ts-compile.sh","lint":"../../config/cli/lint.sh","test":"tape -r ts-node/register test/*.spec.ts","build":"../../config/cli/ts-build.sh","clean":"../../config/cli/clean-package.sh","coverage":"../../config/cli/coverage.sh","lint:fix":"../../config/cli/lint-fix.sh","lint:diff":"../../config/cli/lint-diff.sh","docs:build":"typedoc --options typedoc.js"},"_npmUser":{"name":"fvictorio","email":"victorio.franco@gmail.com"},"repository":{"url":"git+https://github.com/ethereumjs/ethereumjs-monorepo.git","type":"git"},"_npmVersion":"8.15.1","description":"An ethash implementation in JavaScript","directories":{},"_nodeVersion":"14.19.3","dependencies":{"@ignored/rlp":"4.0.0-beta.5","@ignored/util":"8.0.0-beta.5","@ignored/block":"4.0.0-beta.5","abstract-level":"^1.0.3","bigint-crypto-utils":"^3.0.23","ethereum-cryptography":"^1.1.2"},"_hasShrinkwrap":false,"devDependencies":{"memory-level":"^1.0.0","@ignored/common":"3.0.0-beta.5"},"_npmOperationalInternal":{"tmp":"tmp/ethash_2.0.0-beta.5_1661018325372_0.49506364548009607","host":"s3://npm-registry-packages"}},"2.0.0-beta.6":{"name":"@ignored/ethash","version":"2.0.0-beta.6","keywords":["ethash","ethereum","POW"],"author":{"name":"mjbecze","email":"mjbecze@gmail.com"},"license":"MPL-2.0","_id":"@ignored/ethash@2.0.0-beta.6","maintainers":[{"name":"fvictorio","email":"victorio.franco@gmail.com"},{"name":"alcuadrado","email":"email@patriciopalladino.com"}],"homepage":"https://github.com/ethereumjs/ethereumjs-monorepo/tree/master/packages/ethash#readme","bugs":{"url":"https://github.com/ethereumjs/ethereumjs-monorepo/issues?q=is%3Aissue+label%3A%22package%3A+ethash%22"},"dist":{"shasum":"e87ccea34940b7015fa200989ca3135178d53471","tarball":"https://registry.npmjs.org/@ignored/ethash/-/ethash-2.0.0-beta.6.tgz","fileCount":13,"integrity":"sha512-6Mj3MfwI4dQYLLyRTfFXNQxhP7LnF/QCg1Sw/KSLaw4JsQTR7aqLb48bFFri33YkT932PRIce9/iQBuVbwDNvA==","signatures":[{"sig":"MEQCIDgJ33QLT6zJTo72qyMK1uQ80u4u88Ob1CrQ3PfeEtPdAiBfYUPwHcQ2J92jJIaSOdxp731XdAxMT3jFBl+9jQ11PA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":70863,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjASO7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqSaQ/9H3IkxIOMW46n6FCHyifIqyf+C2BX0CTyanJNWVAk+l6oslVT\r\n6wDZ4oghGc/+vVN4RFroAlKi8LD0rAYpQVpQ7ypOLof1OqPFw7J75+QjC9CE\r\n54jbpDlYsRpv2V2b6b20iMof50Q8SBVjVrR/jHii4SGhOKMmDWx4JEj6NvE2\r\noHDv+r5unRzx258Bj7TFYQWrGxKxrSS9oyGrW47avLjlRdrLMcDLLERk7h2X\r\n+CEsDcfD2CIFiic8yuK0vNlcJ1+MOIONi+Ttg1kNkYy79ChmK/qGMAbkyZXh\r\nWCswalBNWc+BnNZdTkUu5eWfJYn6hdoxLWJOV2+0PfLGBUTpG1ywhqqR9z0e\r\neFq1a6fU7VwHp04p0TurzyHEZV+Km68fGeyfFlhCt5VLYdY1eReekH0c6YcA\r\n2xezGdVXS/usq5HV3nukrUndbnR9O6EqWOGR7tChhoBU6yHPqFR2JnEmYmGk\r\ntGTd5VsWHLTNMvEBXrNKSrUywYvdD9njRkW/077ArpXb3vSTFUnN23XIcfZe\r\nBEqIsZb3VMRckuzi6OHU/HQ8cA2XX16qv/am9IccCTcrBQV1S03m+/2fw7ul\r\nBWtfOwwKfzevPKyeH66vG0igsVZRFEHHjHMkbSeg40I+O1wIpvkBCXWBFAsy\r\nLyYEtphBXpqJdgTHEYOeTpk7jNJtXyIHAxA=\r\n=gOQf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=14"},"gitHead":"38f7fe0088ea852ecb0a8a5b4b5bcd00e68b5b25","scripts":{"tsc":"../../config/cli/ts-compile.sh","lint":"../../config/cli/lint.sh","test":"tape -r ts-node/register test/*.spec.ts","build":"../../config/cli/ts-build.sh","clean":"../../config/cli/clean-package.sh","coverage":"../../config/cli/coverage.sh","lint:fix":"../../config/cli/lint-fix.sh","lint:diff":"../../config/cli/lint-diff.sh","docs:build":"typedoc --options typedoc.js"},"_npmUser":{"name":"fvictorio","email":"victorio.franco@gmail.com"},"repository":{"url":"git+https://github.com/ethereumjs/ethereumjs-monorepo.git","type":"git"},"_npmVersion":"8.15.1","description":"An ethash implementation in JavaScript","directories":{},"_nodeVersion":"14.19.3","dependencies":{"@ignored/rlp":"4.0.0-beta.6","@ignored/util":"8.0.0-beta.6","@ignored/block":"4.0.0-beta.6","abstract-level":"^1.0.3","bigint-crypto-utils":"^3.0.23","ethereum-cryptography":"^1.1.2"},"_hasShrinkwrap":false,"devDependencies":{"memory-level":"^1.0.0","@ignored/common":"3.0.0-beta.6"},"_npmOperationalInternal":{"tmp":"tmp/ethash_2.0.0-beta.6_1661019067320_0.48169386523246627","host":"s3://npm-registry-packages"}}},"time":{"created":"2022-08-17T15:12:57.276Z","modified":"2026-06-12T13:46:08.453Z","2.0.0-beta.3":"2022-08-17T15:12:57.539Z","2.0.0-beta.4":"2022-08-20T17:49:38.669Z","2.0.0-beta.5":"2022-08-20T17:58:45.525Z","2.0.0-beta.6":"2022-08-20T18:11:07.507Z"},"bugs":{"url":"https://github.com/ethereumjs/ethereumjs-monorepo/issues?q=is%3Aissue+label%3A%22package%3A+ethash%22"},"author":{"name":"mjbecze","email":"mjbecze@gmail.com"},"license":"MPL-2.0","homepage":"https://github.com/ethereumjs/ethereumjs-monorepo/tree/master/packages/ethash#readme","keywords":["ethash","ethereum","POW"],"repository":{"url":"git+https://github.com/ethereumjs/ethereumjs-monorepo.git","type":"git"},"description":"An ethash implementation in JavaScript","maintainers":[{"email":"john@kanej.me","name":"kanej"},{"email":"email@patriciopalladino.com","name":"alcuadrado"}],"readme":"# @ethereumjs/ethash\n\n[![NPM Package][ethash-npm-badge]][ethash-npm-link]\n[![GitHub Issues][ethash-issues-badge]][ethash-issues-link]\n[![Actions Status][ethash-actions-badge]][ethash-actions-link]\n[![Code Coverage][ethash-coverage-badge]][ethash-coverage-link]\n[![Discord][discord-badge]][discord-link]\n\n| [Ethash](https://github.com/ethereum/wiki/wiki/Ethash) implementation in TypeScript. |\n| ------------------------------------------------------------------------------------ |\n\nNote: this `README` reflects the state of the library from `v1.0.0` onwards. See `README` from the [standalone repository](https://github.com/ethereumjs/ethashjs) for an introduction on the last preceding release.\n\n## Installation\n\nTo obtain the latest version, simply require the project using `npm`:\n\n```shell\nnpm install @ethereumjs/ethash\n```\n\n## Usage\n\n### PoW Validation\n\n```typescript\nimport { Ethash } from '@ethereumjs/ethash'\nimport { Block } from '@ethereumjs/block'\nimport { MemoryLevel } from 'memory-level'\n\nconst cacheDB = level()\n\nconst ethash = new Ethash(cacheDB)\nconst validblockRlp =\n  'f90667f905fba0a8d5b7a4793baaede98b5236954f634a0051842df6a252f6a80492fd888678bda01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347948888f1f195afa192cfee860698584c030f4c9db1a0f93c8db1e931daa2e22e39b5d2da6fb4074e3d544094857608536155e3521bc1a0bb7495628f9160ddbcf6354380ee32c300d594e833caec3a428041a66e7bade1a0c7778a7376099ee2e5c455791c1885b5c361b95713fddcbe32d97fd01334d296b90100000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000400000000000000000000000000000000000000000000000000000008302000001832fefd882560b84559c17b9b9040001020304050607080910111213141516171819202122232410000000000000000000200000000000000000003000000000000000000040000000000000000000500000000000000000006000000000000000000070000000000000000000800000000000000000009000000000000000000010000000000000000000100000000000000000002000000000000000000030000000000000000000400000000000000000005000000000000000000060000000000000000000700000000000000000008000000000000000000090000000000000000000100000000000000000001000000000000000000020000000000000000000300000000000000000004000000000000000000050000000000000000000600000000000000000007000000000000000000080000000000000000000900000000000000000001000000000000000000010000000000000000000200000000000000000003000000000000000000040000000000000000000500000000000000000006000000000000000000070000000000000000000800000000000000000009000000000000000000010000000000000000000100000000000000000002000000000000000000030000000000000000000400000000000000000005000000000000000000060000000000000000000700000000000000000008000000000000000000090000000000000000000100000000000000000001000000000000000000020000000000000000000300000000000000000004000000000000000000050000000000000000000600000000000000000007000000000000000000080000000000000000000900000000000000000001000000000000000000010000000000000000000200000000000000000003000000000000000000040000000000000000000500000000000000000006000000000000000000070000000000000000000800000000000000000009000000000000000000010000000000000000000100000000000000000002000000000000000000030000000000000000000400000000000000000005000000000000000000060000000000000000000700000000000000000008000000000000000000090000000000000000000100000000000000000001000000000000000000020000000000000000000300000000000000000004000000000000000000050000000000000000000600000000000000000007000000000000000000080000000000000000000900000000000000000001000000000000000000010000000000000000000200000000000000000003000000000000000000040000000000000000000500000000000000000006000000000000000000070000000000000000000800000000000000000009000000000000000000010000000000000000000a09c7b47112a3afb385c12924bf6280d273c106eea7caeaf5131d8776f61056c148876ae05d46b58d1fff866f864800a82c35094095e7baea6a6c7c4c2dfeb977efac326af552d8785012a05f200801ba01d2c92cfaeb04e53acdff2b5d42005ff6aacdb0105e64eb8c30c273f445d2782a01e7d50ffce57840360c57d94977b8cdebde614da23e8d1e77dc07928763cfe21c0'\n\nconst validBlock = Block.fromRLPSerializedBlock(Buffer.from(validblockRlp, 'hex'))\n\nconst result = await ethash.verifyPOW(validBlock)\nconsole.log(result) // => true\n```\n\n### PoW Ethash CPU Miner\n\nThere is a simple CPU miner included within `Ethash` package which can be used for testing purposes.\n\nSee the following example on how to use the new `Miner` class:\n\n```typescript\nimport { Block } from '@ethereumjs/block'\nimport { Ethash } from '@ethereumjs/ethash'\nimport { Common } from '@ethereumjs/common'\nimport { BN } from 'ethereumjs-util'\nimport { MemoryLevel } from 'memory-level'\n\nconst cacheDB = new MemoryLevel()\nconst block = Block.fromBlockData({\n  header: {\n    difficulty: BigInt(100),\n    number: BigInt(1),\n  },\n})\n\nconst e = new Ethash(cacheDB)\nconst miner = e.getMiner(block.header)\nconst solution = await miner.iterate(-1) // iterate until solution is found\n```\n\n## API\n\n### Docs\n\nGenerated TypeDoc API [Documentation](./docs/README.md)\n\n### BigInt Support\n\nStarting with v2 the usage of [BN.js](https://github.com/indutny/bn.js/) for big numbers has been removed from the library and replaced with the usage of the native JS [BigInt](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) data type (introduced in `ES2020`).\n\nPlease note that number-related API signatures have changed along with this version update and the minimal build target has been updated to `ES2020`.\n\n## EthereumJS\n\nSee our organizational [documentation](https://ethereumjs.readthedocs.io) for an introduction to `EthereumJS` as well as information on current standards and best practices. If you want to join for work or carry out improvements on the libraries, please review our [contribution guidelines](https://ethereumjs.readthedocs.io/en/latest/contributing.html) first.\n\n# LICENSE\n\n[MPL-2.0](<https://tldrlegal.com/license/mozilla-public-license-2.0-(mpl-2)>)\n[discord-badge]: https://img.shields.io/static/v1?logo=discord&label=discord&message=Join&color=blue\n[discord-link]: https://discord.gg/TNwARpR\n[ethash-npm-badge]: https://img.shields.io/npm/v/@ethereumjs/ethash.svg\n[ethash-npm-link]: https://www.npmjs.org/package/@ethereumjs/ethash\n[ethash-issues-badge]: https://img.shields.io/github/issues/ethereumjs/ethereumjs-monorepo/package:%20ethash?label=issues\n[ethash-issues-link]: https://github.com/ethereumjs/ethereumjs-monorepo/issues?q=is%3Aopen+is%3Aissue+label%3A\"package%3A+ethash\"\n[ethash-actions-badge]: https://github.com/ethereumjs/ethereumjs-monorepo/workflows/Ethash/badge.svg\n[ethash-actions-link]: https://github.com/ethereumjs/ethereumjs-monorepo/actions?query=workflow%3A%22Ethash%22\n[ethash-coverage-badge]: https://codecov.io/gh/ethereumjs/ethereumjs-monorepo/branch/master/graph/badge.svg?flag=ethash\n[ethash-coverage-link]: https://codecov.io/gh/ethereumjs/ethereumjs-monorepo/tree/master/packages/ethash\n","readmeFilename":"README.md"}