{"name":"eth-sig-util","version":"2.4.4","keywords":["ethereum","signature"],"author":{"name":"Dan Finlay"},"license":"ISC","_id":"eth-sig-util@2.4.4","maintainers":[{"name":"brunobar79","email":"brunobar79@gmail.com"},{"name":"danfinlay","email":"dan@danfinlay.com"},{"name":"kumavis","email":"aaron@kumavis.me"},{"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":"8804ead83de8648bcf81eadbfac1e3ccdd360aea","tarball":"http://registry-npm.ywwl.com/eth-sig-util/download/eth-sig-util-2.4.4.tgz","fileCount":8,"integrity":"sha512-iWGqEJwsUMgtk8AqQQqIDTjMz+pW8s2Sq8gN640dh9U9HoEFQJO3m6ro96DgV6hMB2LYu8F5812LQyynOgCbEw==","signatures":[{"sig":"MEUCIGuv2i7voeiKTVqNhNNnLmzvhX3cYI99d7wNr7p0y38YAiEAm75hHVXe1tk2kTxZoG4mhUhl0xxGuN1s4t8K3CFViEs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":51832,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdaW09CRA9TVsSAnZWagAAbmMP/0B61bxHb3crxW5MEsKe\n+eE31TiRQinWDMX+mjNUm74HuBPo2NeHci8JMw9ZZWwvOxtUgfwNOBlbFXsW\nz+/02W7gN2/4U7oI6yPyC5PHRWYaCRDBk3906XOi7N4O8OmCoSsZf9k5AheH\n8D5Fk0xxItYHl6keZZbOSvIGn76AcdQhFTR/SESqc4Ase4/uXja2lZKIznsZ\nft8I1mdOdA64srGINBXSKZfYzYsfpTcIuAcZTR8Zj3GlHkgh/XVzQKV2kMc/\nRZ0iN6dIK0GM5jbnXiPz8/Gi5DCuELm9K6VHOZiqPJsJFTunOB7m8Bc0wJd5\nwYVBEsTzqiZ0owiyi5g6TZJTzCLBxtgw856yXahzPZq26W/wMLRgyFq8FZ+q\nee38wQf+0tvMJFuZgwLNPHZItSOCNKKJVFa5pZ5is1+RiNqxbgYJVg0fPF21\nby30b/aWzRsh8Jnh029p/c0fww1ZOBz695DiZe6mQ2zpIa7hqCUd6kV70XWK\n1b6sp4eK5pfmXFhru7QOOnayE2KlNG55xrwwm4xXmVlgznVNioGx9YoMuLxL\n4xMRFBCv3/gP7/I56Gfcr1FHyOVa8uRZ55oRe+ipy5q0hmto551fV/968iVe\nQ0VPQ04jtV8yoAo5b/4DM0xWMt0lfZDiAeB52ci4R5UCNVvCVFu5hES+3BvR\n25m7\r\n=N4x5\r\n-----END PGP SIGNATURE-----\r\n","size":13560,"noattachment":false,"key":"/eth-sig-util/-/eth-sig-util-2.4.4.tgz"},"main":"index.js","gitHead":"6b8d996ea0d903f28843f43a28897cb13be95a61","scripts":{"test":"node test/index.js"},"_npmUser":{"name":"danfinlay","email":"dan@danfinlay.com"},"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.9.0","description":"A few useful functions for signing ethereum data","directories":{},"_nodeVersion":"8.15.1","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"},"_npmOperationalInternal":{"tmp":"tmp/eth-sig-util_2.4.4_1567190332560_0.48786852187270435","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":1567190332716,"_cnpm_publish_time":1567190332716,"dist-tags":{"latest":"3.0.1"}}