{
	"name": "@trufflesuite/eth-sig-util",
	"versions": {
		"1.4.2": {
			"name": "@trufflesuite/eth-sig-util",
			"version": "1.4.2",
			"description": "Fork of https://github.com/MetaMask/eth-sig-util",
			"main": "index.js",
			"scripts": {
				"test": "node test/index.js"
			},
			"repository": {
				"type": "git",
				"url": "git+https://github.com/trufflesuite/eth-sig-util.git"
			},
			"keywords": [
				"ethereum",
				"signature"
			],
			"author": {
				"name": "Dan Finlay"
			},
			"license": "ISC",
			"bugs": {
				"url": "https://github.com/flyswatter/eth-sig-util/issues"
			},
			"homepage": "https://github.com/flyswatter/eth-sig-util#readme",
			"dependencies": {
				"ethereumjs-abi": "^0.6.8",
				"ethereumjs-util": "^5.1.1"
			},
			"devDependencies": {
				"mocha": "^4.0.0",
				"tape": "^4.6.3"
			},
			"publishConfig": {
				"access": "public"
			},
			"gitHead": "2980a5cc13a11725b3c0ae3771951a1dfcf4bb65",
			"_id": "@trufflesuite/eth-sig-util@1.4.2",
			"_nodeVersion": "10.20.1",
			"_npmVersion": "6.14.4",
			"dist": {
				"integrity": "sha512-+GyfN6b0LNW77hbQlH3ufZ/1eCON7mMrGym6tdYf7xiNw9Vv3jBO72bmmos1EId2NgBvPMhmYYm6DSLQFTmzrA==",
				"shasum": "b529e2f38ac08e652116f48981132a26242a4f08",
				"tarball": "https://registry.npmjs.org/@trufflesuite/eth-sig-util/-/eth-sig-util-1.4.2.tgz",
				"fileCount": 5,
				"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"
			},
			"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"
				}
			],
			"_npmUser": {
				"name": "cruzmolina",
				"email": "cruz.adam.molina@gmail.com"
			},
			"directories": {},
			"_npmOperationalInternal": {
				"host": "s3://npm-registry-packages",
				"tmp": "tmp/eth-sig-util_1.4.2_1593713109315_0.4818745086541545"
			},
			"_hasShrinkwrap": false,
			"contributors": []
		}
	},
	"time": {
		"created": "2020-07-02T18:05:09.117Z",
		"1.4.2": "2020-07-02T18:05:09.586Z",
		"modified": "2020-08-18T16:02:28.573Z"
	},
	"users": {},
	"dist-tags": {
		"latest": "1.4.2"
	},
	"_uplinks": {
		"npmjs": {
			"etag": "W/\"e789e0e933ebe6d203ab2566f19192dd\"",
			"fetched": 1598370738596
		}
	},
	"_distfiles": {
		"eth-sig-util-1.4.2.tgz": {
			"url": "https://registry.npmjs.org/@trufflesuite/eth-sig-util/-/eth-sig-util-1.4.2.tgz",
			"sha": "b529e2f38ac08e652116f48981132a26242a4f08",
			"registry": "npmjs"
		}
	},
	"_attachments": {
		"eth-sig-util-1.4.2.tgz": {
			"shasum": "b529e2f38ac08e652116f48981132a26242a4f08"
		}
	},
	"_rev": "17-675694a27af29325",
	"_id": "@trufflesuite/eth-sig-util",
	"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."
}