{"_id":"@trufflesuite/eth-sig-util","_rev":"35-bb6303a7a1cbbb37669cfaea3862343c","name":"@trufflesuite/eth-sig-util","dist-tags":{"latest":"1.4.2"},"versions":{"1.4.2":{"name":"@trufflesuite/eth-sig-util","version":"1.4.2","keywords":["ethereum","signature"],"author":{"name":"Dan Finlay"},"license":"ISC","_id":"@trufflesuite/eth-sig-util@1.4.2","maintainers":[{"name":"nicholasjpaterno","email":"cashlion@protonmail.com"},{"name":"haltman","email":"harry.j.altman@gmail.com"},{"name":"fainashalts","email":"fainashalts@gmail.com"},{"name":"cruzmolina","email":"cruz.adam.molina@gmail.com"},{"name":"seesemichaelj","email":"seesemichaelj@gmail.com"},{"name":"eggplantzzz","email":"pobol234@gmail.com"},{"name":"davidmurdoch","email":"david@davidmurdoch.com"},{"name":"tcoulter","email":"tim@timothyjcoulter.com"},{"name":"gnidan","email":"nick@gnidan.org"}],"homepage":"https://github.com/flyswatter/eth-sig-util#readme","bugs":{"url":"https://github.com/flyswatter/eth-sig-util/issues"},"dist":{"shasum":"b529e2f38ac08e652116f48981132a26242a4f08","tarball":"https://registry.npmjs.org/@trufflesuite/eth-sig-util/-/eth-sig-util-1.4.2.tgz","fileCount":5,"integrity":"sha512-+GyfN6b0LNW77hbQlH3ufZ/1eCON7mMrGym6tdYf7xiNw9Vv3jBO72bmmos1EId2NgBvPMhmYYm6DSLQFTmzrA==","signatures":[{"sig":"MEUCIQC1q5r6SxRTpd5CMcL4HuHa1xCATEI34RUe9rsGoUml2QIgfyAyQvHCtZOI24C26bJVHJlWdhjWroTiGu4chyFA22I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14559,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/iHWCRA9TVsSAnZWagAA0zgP/3OI8UO5Ea2ax9CADb9h\nD4pXImNliHUcvd0ud7GLSRlYyGCj44p1KtPBT+Ggh0xNHR8fp9KBHZGzFrl/\nuWC/MXoI7MQhlftVfIN+bUCMeJp/l1uUZRkMxDjBRSTUQ8ywWoi9VKAPzgMK\nUi9kLm4dSreV2s4D9Otz2ozgOZz/lkkNdek0ldcPGGcZ4b1TeucldwXu2N89\nYeO42cQ/4FpqbFmjBEg8GNyz7EIjNilt3CrPzdshjSBhVvpmOAy4mVpJ+JL3\n2L+h6sMVVLieoI//AYzc59axrDg2VcnxeatJHfuG5ouSGU+pBPNuqI6IBLTO\nZTB3Wd71JqxpV2vRw5JroT9QlQt9+bcPt5E2Sqw8+2reF2+N0WkHgfuf7KIt\nt6zI/Nr8OoeaKcqxWX+7XSPRePVocJVnhv4q6hcEskCVTWS2PCV5+9a+daWc\n4QUc1WgU0YH7OupkX72OJiW8bGnYaAAzysueRAp/gS/xk49/qmKbOIVQuXyl\nPvW2zmfOhFHQ4/w57A+nT7RADNcI+S0FLPPfuKDB6/5L99mVLVneYuUE4uEB\ng8CVZsABjVnY4KLwgiykCjayNGPYJ5GgjWedKpUV3Z1NP9w43uPsvsbTMN6I\ngHNoqGCPlnLsPJ9nmMeBOR/B8EKuPqWByuAxUbqZrLA80ySde3b0YjihL+SU\nON5S\r\n=WrUZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"2980a5cc13a11725b3c0ae3771951a1dfcf4bb65","scripts":{"test":"node test/index.js"},"_npmUser":{"name":"cruzmolina","email":"cruz.adam.molina@gmail.com"},"repository":{"url":"git+https://github.com/trufflesuite/eth-sig-util.git","type":"git"},"_npmVersion":"6.14.4","description":"Fork of https://github.com/MetaMask/eth-sig-util","directories":{},"_nodeVersion":"10.20.1","dependencies":{"ethereumjs-abi":"^0.6.8","ethereumjs-util":"^5.1.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tape":"^4.6.3","mocha":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/eth-sig-util_1.4.2_1593713109315_0.4818745086541545","host":"s3://npm-registry-packages"}}},"time":{"created":"2020-07-02T18:05:09.117Z","modified":"2026-04-29T21:46:30.246Z","1.4.2":"2020-07-02T18:05:09.586Z"},"bugs":{"url":"https://github.com/flyswatter/eth-sig-util/issues"},"author":{"name":"Dan Finlay"},"license":"ISC","homepage":"https://github.com/flyswatter/eth-sig-util#readme","keywords":["ethereum","signature"],"repository":{"url":"git+https://github.com/trufflesuite/eth-sig-util.git","type":"git"},"description":"Fork of https://github.com/MetaMask/eth-sig-util","maintainers":[{"email":"david@davidmurdoch.com","name":"davidmurdoch"},{"email":"jeff.smale@consensys.net","name":"jeff.smale"},{"email":"it@consensys.net","name":"rizedr"}],"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\n[![Greenkeeper badge](https://badges.greenkeeper.io/MetaMask/eth-sig-util.svg)](https://greenkeeper.io/)\n\nA small collection of ethereum signing functions.\n\nYou can find usage examples [here](https://github.com/flyswatter/js-eth-personal-sign-examples) \n\n[Available on NPM](https://www.npmjs.com/package/eth-sig-util)\n\n## Supported Signing Methods\n\nCurrently there is only one supported signing protocol. More will be added as standardized. \n\n- Personal Sign (`personal_sign`) [geth thread](https://github.com/ethereum/go-ethereum/pull/2940)\n\n\n## Installation\n\n```\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 [EIP712](https://github.com/ethereum/EIPs/pull/712).\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### 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\n","readmeFilename":"README.md"}