New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@metamask/eth-simple-keyring

Package Overview
Dependencies
Maintainers
10
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metamask/eth-simple-keyring - npm Package Compare versions

Comparing version

to
5.1.0

dist/index.d.ts

15

CHANGELOG.md

@@ -9,2 +9,10 @@ # Changelog

## [5.1.0]
### Changed
- Export TypeScript interfaces ([#140](https://github.com/MetaMask/eth-simple-keyring/pull/140))
- Update all dependencies ([#140](https://github.com/MetaMask/eth-simple-keyring/pull/140)) ([#149](https://github.com/MetaMask/eth-simple-keyring/pull/149))
### Fixed
- Add `validateMessage` option to `signMessage` to configure if runtime-validation should be done that input string is hex (default: `true`) ([#148](https://github.com/MetaMask/eth-simple-keyring/pull/148))
## [5.0.0]

@@ -18,3 +26,3 @@ ### Changed

- Consumers who wish to get the private key for a given account should use the `exportAccount` method.
- **BREAKING:** Set the minimum Node.js version to 12 ([#68](https://github.com/MetaMask/eth-simple-keyring/pull/68))
- **BREAKING:** Set the minimum Node.js version to 14 ([#68](https://github.com/MetaMask/eth-simple-keyring/pull/68)) ([#109](https://github.com/MetaMask/eth-simple-keyring/pull/109))
- Always return rejected Promise upon failure ([#85](https://github.com/MetaMask/eth-simple-keyring/pull/85))

@@ -24,5 +32,6 @@

- **BREAKING:** Remove redundant `newGethSignMessage` method ([#72](https://github.com/MetaMask/eth-simple-keyring/pull/72))
- Consumers can use `signPersonalMessage` method as a replacement for `newGethSignMessage`.
- Consumers can use `signPersonalMessage` method as a replacement for `newGethSignMessage`.
[Unreleased]: https://github.com/MetaMask/eth-simple-keyring/compare/v5.0.0...HEAD
[Unreleased]: https://github.com/MetaMask/eth-simple-keyring/compare/v5.1.0...HEAD
[5.1.0]: https://github.com/MetaMask/eth-simple-keyring/compare/v5.0.0...v5.1.0
[5.0.0]: https://github.com/MetaMask/eth-simple-keyring/releases/tag/v5.0.0

80

package.json
{
"name": "@metamask/eth-simple-keyring",
"version": "5.0.0",
"version": "5.1.0",
"description": "A simple standard interface for a series of Ethereum private keys.",

@@ -17,40 +17,59 @@ "keywords": [

},
"license": "ISC",
"author": "Dan Finlay",
"main": "index.js",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"index.js"
"dist/"
],
"scripts": {
"test": "jest",
"test:watch": "jest --watch",
"build": "tsc --project tsconfig.build.json",
"build:clean": "rimraf dist && yarn build",
"build:docs": "typedoc",
"lint": "yarn lint:eslint && yarn lint:misc --check && yarn lint:dependencies",
"lint:dependencies": "depcheck",
"lint:eslint": "eslint . --cache --ext js,ts",
"lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write",
"lint:misc": "prettier '**/*.json' '**/*.md' '!CHANGELOG.md' '**/*.yml' '!.yarnrc.yml' --ignore-path .gitignore --no-error-on-unmatched-pattern",
"lint": "yarn lint:eslint && yarn lint:misc --check",
"lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write"
"prepack": "./scripts/prepack.sh",
"sample": "ts-node src/sample.ts",
"test": "jest",
"test:watch": "jest --watch"
},
"dependencies": {
"@ethereumjs/util": "^8.0.0",
"@metamask/eth-sig-util": "^5.0.1",
"ethereum-cryptography": "^1.1.2",
"@ethereumjs/util": "^8.0.5",
"@metamask/eth-sig-util": "^6.0.1",
"@metamask/utils": "^5.0.2",
"ethereum-cryptography": "^1.2.0",
"randombytes": "^2.1.0"
},
"devDependencies": {
"@ethereumjs/tx": "^4.0.0",
"@lavamoat/allow-scripts": "^2.1.0",
"@metamask/auto-changelog": "^3.0.0",
"@metamask/eslint-config": "^8.0.0",
"@metamask/eslint-config-jest": "^11.0.0",
"@metamask/eslint-config-nodejs": "^11.0.1",
"@types/jest": "^26.0.24",
"eslint": "^7.30.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-jest": "^27.1.5",
"@ethereumjs/tx": "^4.1.1",
"@lavamoat/allow-scripts": "^2.3.0",
"@metamask/auto-changelog": "^3.1.0",
"@metamask/eslint-config": "^11.1.0",
"@metamask/eslint-config-jest": "^11.1.0",
"@metamask/eslint-config-nodejs": "^11.1.0",
"@metamask/eslint-config-typescript": "^11.1.0",
"@types/ethereumjs-tx": "^1.0.1",
"@types/jest": "^29.5.0",
"@types/node": "^18.15.10",
"@types/randombytes": "^2.0.0",
"@typescript-eslint/eslint-plugin": "^5.57.0",
"@typescript-eslint/parser": "^5.57.0",
"depcheck": "^1.4.3",
"eslint": "^8.36.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-jsdoc": "^39.6.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.4.0",
"jest": "^27.0.6",
"prettier": "^2.3.2",
"prettier-plugin-packagejson": "^2.2.11"
"eslint-plugin-prettier": "^4.2.1",
"ethereumjs-tx": "^1.3.7",
"jest": "^29.5.0",
"prettier": "^2.8.7",
"ts-jest": "^29.0.5",
"ts-node": "^10.9.1",
"typedoc": "^0.25.1",
"typescript": "~4.8.4"
},
"packageManager": "yarn@3.3.0",
"engines": {

@@ -67,6 +86,7 @@ "node": ">=14.0.0"

"secp256k1": true,
"@lavamoat/preinstall-always-fail": false
"@lavamoat/preinstall-always-fail": false,
"ethereumjs-tx>ethereumjs-util>ethereum-cryptography>keccak": false,
"ethereumjs-tx>ethereumjs-util>ethereum-cryptography>secp256k1": false
}
},
"packageManager": "yarn@3.3.0"
}
}

@@ -84,3 +84,3 @@ # Simple Keyring

- Install [Node.js](https://nodejs.org) version 12
- Install [Node.js](https://nodejs.org) version 14 or greater
- If you are using [nvm](https://github.com/creationix/nvm#installation) (recommended) running `nvm use` will automatically choose the right node version for you.

@@ -90,2 +90,4 @@ - Install [Yarn v3](https://yarnpkg.com/getting-started/install)

-- This package implicitly relies on Buffer to be present (meaning that if someone wants to use this in a browser context, they need to supply a polyfill for Buffer or use the `buffer` package)
### Testing and Linting

@@ -92,0 +94,0 @@