{"name":"@ethereumjs/util","version":"8.0.0-beta.2","description":"A collection of utility functions for Ethereum","license":"MPL-2.0","author":{"name":"EthereumJS Team"},"keywords":["ethereum","utilities","utils"],"engines":{"node":">=10.0.0"},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"../../config/cli/ts-build.sh","prepublishOnly":"../../config/cli/prepublish.sh","clean":"../../config/cli/clean-package.sh","coverage":"../../config/cli/coverage.sh","docs:build":"npx typedoc --options typedoc.js","lint":"../../config/cli/lint.sh","lint:fix":"../../config/cli/lint-fix.sh","tape":"tape -r ts-node/register","test":"npm run test:node && npm run test:browser","test:browser":"karma start karma.conf.js","test:node":"npm run tape -- test/*.spec.ts","tsc":"../../config/cli/ts-compile.sh"},"dependencies":{"ethereum-cryptography":"^1.1.2","rlp":"4.0.0-beta.2"},"devDependencies":{"@types/bn.js":"^5.1.0","@types/node":"^16.11.7","@types/secp256k1":"^4.0.1","@types/tape":"^4.13.2","eslint":"^6.8.0","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-tap":"^4.2.0","karma-typescript":"^5.5.3","nyc":"^15.1.0","prettier":"^2.0.5","tape":"^4.10.1","ts-node":"^10.2.1","typescript":"^4.4.2"},"repository":{"type":"git","url":"git+https://github.com/ethereumjs/ethereumjs-monorepo.git"},"homepage":"https://github.com/ethereumjs/ethereumjs-monorepo/tree/master/packages/util#readme","bugs":{"url":"https://github.com/ethereumjs/ethereumjs-monorepo/issues?q=is%3Aissue+label%3A%22package%3A+util%22"},"contributors":[{"name":"Tim Coulter","email":"tim@timothyjcoulter.com","url":"https://github.com/tcoulter"},{"name":"Nick Dodson","url":"https://github.com/SilentCicero"},{"name":"Mr. Chico","url":"https://github.com/MrChico"},{"name":"Dũng Trần","email":"tad88.dev@gmail.com","url":"https://github.com/tad88dev"},{"name":"Alex Beregszaszi","email":"alex@rtfs.hu","url":"https://github.com/axic"},{"name":"Taylor Gerring","url":"https://github.com/tgerring"},{"name":"Kirill Fomichev","email":"fanatid@ya.ru","url":"https://github.com/fanatid"},{"name":"kumavis","email":"aaron@kumavis.me","url":"https://github.com/kumavis"},{"name":"Alexander Sinyagin","email":"sinyagin.alexander@gmail.com","url":"https://github.com/asinyagin"}],"readme":"# @ethereumjs/util\n\n[![NPM Package][util-npm-badge]][util-npm-link]\n[![GitHub Issues][util-issues-badge]][util-issues-link]\n[![Actions Status][util-actions-badge]][util-actions-link]\n[![Code Coverage][util-coverage-badge]][util-coverage-link]\n[![Discord][discord-badge]][discord-link]\n\nA collection of utility functions for Ethereum. It can be used in Node.js and in the browser with [browserify](http://browserify.org/).\n\n# INSTALL\n\n`npm install @ethereumjs/util`\n\n# USAGE\n\n```js\nimport assert from 'assert'\nimport { isValidChecksumAddress, unpadBuffer } from '@ethereumjs/util'\n\nassert.ok(isValidChecksumAddress('0x2F015C60E0be116B1f0CD534704Db9c92118FB6A'))\n\nassert.ok(unpadBuffer(Buffer.from('000000006600', 'hex')).equals(Buffer.from('6600', 'hex')))\n\n```\n\n# API\n\n## Documentation\n\nRead the [API docs](docs/).\n\n### Modules\n\n- [account](src/account.ts)\n  - Account class\n  - Private/public key and address-related functionality (creation, validation, conversion)\n- [address](src/address.ts)\n  - Address class and type\n- [bytes](src/bytes.ts)\n  - Byte-related helper and conversion functions\n- [constants](src/constants.ts)\n  - Exposed constants\n    - e.g. `KECCAK256_NULL_S` for string representation of Keccak-256 hash of null\n- hash\n  - This module has been removed with `v8`, please use [ethereum-cryptography](https://github.com/ethereum/js-ethereum-cryptography) directly instead\n- [signature](src/signature.ts)\n  - Signing, signature validation, conversion, recovery\n- [types](src/types.ts)\n  - Helpful TypeScript types\n- [internal](src/internal.ts)\n  - Internalized helper methods\n\n### BigInt Support\n\nStarting with v8 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### ethjs-util methods\n\nThe following methods are available by an internalized version of the [ethjs-util](https://github.com/ethjs/ethjs-util) package (`MIT` license), see [internal.ts](src/internal.ts). The original package is not maintained any more and the original functionality will be replaced by own implementations over time (starting with the `v7.1.3` release, October 2021).\n\n- arrayContainsArray\n- getBinarySize\n- stripHexPrefix\n- isHexPrefixed\n- isHexString\n- padToEven\n- fromAscii\n- fromUtf8\n- toUtf8\n- toAscii\n- getKeys\n\nThey can be imported by name:\n\n```js\nimport { stripHexPrefix } from '@ethereumjs/util'\n```\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.\n\nIf you want to join for work or do improvements on the libraries have a look at our [contribution guidelines](https://ethereumjs.readthedocs.io/en/latest/contributing.html).\n\n# LICENSE\n\nMPL-2.0\n\n[util-npm-badge]: https://img.shields.io/npm/v/@ethereumjs/util.svg\n[util-npm-link]: https://www.npmjs.org/package/@ethereumjs/util\n[util-issues-badge]: https://img.shields.io/github/issues/ethereumjs/ethereumjs-monorepo/package:%20util?label=issues\n[util-issues-link]: https://github.com/ethereumjs/ethereumjs-monorepo/issues?q=is%3Aopen+is%3Aissue+label%3A\"package%3A+util\"\n[util-actions-badge]: https://github.com/ethereumjs/ethereumjs-monorepo/workflows/Util/badge.svg\n[util-actions-link]: https://github.com/ethereumjs/ethereumjs-monorepo/actions?query=workflow%3A%22Util%22\n[util-coverage-badge]: https://codecov.io/gh/ethereumjs/ethereumjs-monorepo/branch/master/graph/badge.svg?flag=util\n[util-coverage-link]: https://codecov.io/gh/ethereumjs/ethereumjs-monorepo/tree/master/packages/util\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","readmeFilename":"README.md","gitHead":"2dd63b91109188e5b4f5b251f47aae756f7e1841","_id":"@ethereumjs/util@8.0.0-beta.2","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-lN0Bu/hQicVHQDKzuP06YBlanOsqb+rtwLP0OGDz1Vd9ZUihMwqd8eYDzoWtLKK+f0ovpVJQpCSsQ8bNy3qb4Q==","shasum":"f8b3418c67258187b44da50be28d36d5df02d18c","tarball":"http://registry-npm.ywwl.com/@ethereumjs/util/download/@ethereumjs/util-8.0.0-beta.2.tgz","fileCount":48,"unpackedSize":177401,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDp2IQppnC9D5djE4UfzyWaNZ1rf9dHpA4f5XK8ieyd7QIgYR5d5BTsMNqSbttU11E6kzft2dIMYOoKAvUYSZZx7Y0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi1DLfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrjQQ//alyqx1X3EB2MqQg4fJ3JBQWJr9Pl7YzLMlP0KR5tGrKF41NZ\r\nEaDJTFXtiA8a0G0XcsqGlSD6pVMr8yNdEhJwFqk0DV6BnzRNp4ej2SrJKFRP\r\noZzrkZQrq199pTFtqX8hsvB2YQY5G5iqqKYSMtxn3jYXE/31X9Pr9EWAQrOe\r\nsxUGGFIqQYich1VUvzceDLFh8SUO7hEo0wJE33V0Kz8QrtUvLsayRkTIEpO7\r\nw8co5xfP3ZEJuI2rmqDoFG6L7Ku2f14nBbx2WiplTKQNw+69yduHMb7kovcE\r\n4RQpbKf/k+of69TWDUH+Uz2A4slfg10BCpgiFLgzDZ1N9w0z/Jut6tu/5XGg\r\n/Nm0hRqRXm/JgXei/y1UZ/hBndi9yZ5twG+Bf5tbJHezFAI3ASRHOt+WFzVR\r\nzJl5x9gq0tOSEBgQpZkuAFUkLPl5aVzu36CRQnS6THYJ4IicD1kU9BiZpq1H\r\nAPc/dldUr4OQ3dg33BXLybhsUjDB+GrztWcIIAm6Est3n6rl1iV8g0ggAqja\r\nStw4T6T4oUX970n8q8gAp5Avf5SsY/3UYGccFDUwwPPqr0KPqPjDfQr8Lcvo\r\nElCufeU0Enb8FkOqOBbNolR8BMXYpm16Uh7a5DgbvV4i2RZRCyIf9vpRKEhB\r\nTJkCTpTXnBkqbiMEGkWLAxKR90zWdzp9xUE=\r\n=ABDF\r\n-----END PGP SIGNATURE-----\r\n","size":42063,"noattachment":false,"key":"/@ethereumjs/util/-/@ethereumjs/util-8.0.0-beta.2.tgz"},"_npmUser":{"name":"holgerd77","email":"Holger.Drewes@gmail.com"},"directories":{},"maintainers":[{"name":"axic","email":"alex@rtfs.hu"},{"name":"holgerd77","email":"Holger.Drewes@gmail.com"},{"name":"ralxz","email":"ryan@ryanio.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/util_8.0.0-beta.2_1658073823329_0.9936071412937131"},"_hasShrinkwrap":false,"publish_time":1658073823489,"_cnpm_publish_time":1658073823489,"dist-tags":{"alpha":"10.0.0-alpha.1","beta":"8.0.0-beta.3","latest":"10.1.3","nightly":"10.1.1-nightly.2","rc":"10.0.0-rc.1"}}