{"name":"eth-sig-util","version":"2.5.3","keywords":["ethereum","signature"],"author":{"name":"Dan Finlay"},"license":"ISC","_id":"eth-sig-util@2.5.3","maintainers":[{"name":"brunobar79","email":"brunobar79@gmail.com"},{"name":"danfinlay","email":"dan@danfinlay.com"},{"name":"kumavis","email":"aaron@kumavis.me"},{"name":"rekmarks","email":"rekmarks@protonmail.com"},{"name":"whymarrh","email":"whymarrh.whitby@gmail.com"}],"homepage":"https://github.com/MetaMask/eth-sig-util#readme","bugs":{"url":"https://github.com/MetaMask/eth-sig-util/issues"},"dist":{"shasum":"6938308b38226e0b3085435474900b03036abcbe","tarball":"http://registry-npm.ywwl.com/eth-sig-util/download/eth-sig-util-2.5.3.tgz","fileCount":5,"integrity":"sha512-KpXbCKmmBUNUTGh9MRKmNkIPietfhzBqqYqysDavLseIiMUGl95k6UcPEkALAZlj41e9E6yioYXc1PC333RKqw==","signatures":[{"sig":"MEYCIQDlGl+W2liIzi7L5AV3ADTF4T0JRvBlpkE6l9vZiGTDlgIhANbnAnLEiZBLKm9kVjSvBehJ1li9EW1MvkS+V1j0/ajX","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":37545,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeby2pCRA9TVsSAnZWagAAEcwP/02Y4sYQe0KfmjmmRDuN\nV4BKLJ2rjMpiwMXRdc5KzRCySnKTadpdP1f2X4s5xmmYAv3piFf2zoQOjibe\nc1wvcNCTNnkKdplL5MRY6xXxq8SOewfWtWwZG9QIW5j5rx8g1XVj/LZHVm9U\nXV+jVs+OWDWWLi02rS62Wc5ePXRTsKofVCx+uZ6dAI3osFQChZ1tBkYaF+EX\nFTjTIg1MqtGkpRa2zV5X9blS0/x0vWRn50cFK0pF6Cw8mPShcxyWn2T3T/qQ\ngJ7eK3Wm4jIOj59rwusqyXvc4vtBF38yhmVl6tbScvnCnVg4eYICsKLjoXME\nN6fI+zIFlRK8R0vXYmJPomlgmeFrHjEdIUQR4Y3oKqpLRj6Z/+303TIUqhwP\nlimK84mTlm7cvEHQ74A0Nda3cKXKClT/buMTxqWUuSq9pvlnV5MfbLER6ntz\nolgRy3hHp2HU2Q7AMEi/0treazd+ZHZXRtj+Wsbv5lHuMM2oXZ6w8vB2BBlu\nmfoaklNtpyOJkHxxVP8X/KhdeNmcVvoJEP7pzxb3DhFpekJLivAgnvdoOeQb\nfbTbUdq4WbikuxJFSQ5UFr9KHZgDRFAo9MZK3PlEM654l4Fvabb0KDRzWqgG\nLDVr+iptRWhtNjYytY9DEuSeNXl20o+fP6qXQiR58p6fS30hjlLDDDdOZXWr\no0fL\r\n=vRoo\r\n-----END PGP SIGNATURE-----\r\n","size":8603,"noattachment":false,"key":"/eth-sig-util/-/eth-sig-util-2.5.3.tgz"},"main":"index.js","gitHead":"c03817eafd2a6b9a768b84089d227c3bee750303","scripts":{"lint":"eslint . --ext .ts,.js","test":"npm run build && node test/index.js","build":"tsc --project .","prepublishOnly":"npm run build"},"_npmUser":{"name":"kumavis","email":"aaron@kumavis.me"},"deprecated":"Deprecated in favor of '@metamask/eth-sig-util'","repository":{"url":"git+ssh://git@github.com/MetaMask/eth-sig-util.git","type":"git"},"_npmVersion":"6.13.4","description":"A few useful functions for signing ethereum data","directories":{},"_nodeVersion":"10.17.0","dependencies":{"buffer":"^5.2.1","elliptic":"^6.4.0","tweetnacl":"^1.0.0","ethereumjs-abi":"0.6.5","tweetnacl-util":"^0.15.0","ethereumjs-util":"^5.1.1"},"_hasShrinkwrap":false,"devDependencies":{"tape":"^4.9.1","eslint":"^6.8.0","typescript":"3.7.4","@types/node":"^10.17.13","eslint-plugin-import":"^2.20.1","@metamask/eslint-config":"^2.0.0","@typescript-eslint/parser":"^2.20.0","@typescript-eslint/eslint-plugin":"^2.20.0"},"_npmOperationalInternal":{"tmp":"tmp/eth-sig-util_2.5.3_1584344488719_0.665341983995769","host":"s3://npm-registry-packages"},"readme":"# Eth-Sig-Util [![CircleCI](https://circleci.com/gh/MetaMask/eth-sig-util.svg?style=svg)](https://circleci.com/gh/MetaMask/eth-sig-util)\n\nA small collection of ethereum signing functions.\n\nYou can find usage examples [here](https://github.com/danfinlay/js-eth-personal-sign-examples)\n\n[Available on NPM](https://www.npmjs.com/package/eth-sig-util)\n\n## Installation\n\n```shell\nnpm install eth-sig-util --save\n```\n\n## Methods\n\n### concatSig(v, r, s)\n\nAll three arguments should be provided as buffers.\n\nReturns a continuous, hex-prefixed hex value for the signature, suitable for inclusion in a JSON transaction's data field.\n\n### normalize(address)\n\nTakes an address of either upper or lower case, with or without a hex prefix, and returns an all-lowercase, hex-prefixed address, suitable for submitting to an ethereum provider.\n\n### personalSign (privateKeyBuffer, msgParams)\n\nmsgParams should have a `data` key that is hex-encoded data to sign.\n\nReturns the prefixed signature expected for calls to `eth.personalSign`.\n\n### recoverPersonalSignature (msgParams)\n\nmsgParams should have a `data` key that is hex-encoded data unsigned, and a `sig` key that is hex-encoded and already signed.\n\nReturns a hex-encoded sender address.\n\n### signTypedData (privateKeyBuffer, msgParams)\n\nSigns typed data as per [an early draft of EIP 712](https://github.com/ethereum/EIPs/pull/712/commits/21abe254fe0452d8583d5b132b1d7be87c0439ca).\n\nData should be under `data` key of `msgParams`. The method returns prefixed signature.\n\n### signTypedData_v3 (privateKeyBuffer, msgParams)\n\nSigns typed data as per the published version of [EIP 712](https://github.com/ethereum/EIPs/pull/712).\n\nData should be under `data` key of `msgParams`. The method returns prefixed signature.\n\n### signTypedData_v4 (privateKeyBuffer, msgParams)\n\nSigns typed data as per an extension of the published version of [EIP 712](https://github.com/MetaMask/eth-sig-util/pull/54).\n\nThis extension adds support for arrays and recursive data types.\n\nData should be under `data` key of `msgParams`. The method returns prefixed signature.\n\n### recoverTypedSignature ({data, sig})\n\nReturn address of a signer that did `signTypedData`.\n\nExpects the same data that were used for signing. `sig` is a prefixed signature.\n\n### recoverTypedSignature_V4 ({data, sig})\n\nReturn address of a signer that did `signTypedData` as per an extension of the published version of [EIP 712](https://github.com/MetaMask/eth-sig-util/pull/54).\n\nThis extension adds support for arrays and recursive data types.\n\nExpects the same data that were used for signing. `sig` is a prefixed signature.\n\n### typedSignatureHash (typedData)\n\nReturn hex-encoded hash of typed data params according to [EIP712](https://github.com/ethereum/EIPs/pull/712) schema.\n\n### extractPublicKey (msgParams)\n\nmsgParams should have a `data` key that is hex-encoded data unsigned, and a `sig` key that is hex-encoded and already signed.\n\nReturns a hex-encoded public key.\n","publish_time":1584344488881,"_cnpm_publish_time":1584344488881,"dist-tags":{"latest":"3.0.1"}}