@metamask/eth-ledger-bridge-keyring 0.13.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.js +2 -2
  2. package/package.json +16 -6
  3. package/CHANGELOG.md +0 -47
package/index.js CHANGED
@@ -349,7 +349,7 @@ class LedgerBridgeKeyring extends EventEmitter {
349
349
  },
350
350
  ({ success, payload }) => {
351
351
  if (success) {
352
- let v = payload.v - 27
352
+ let v = parseInt(payload.v, 10)
353
353
  v = v.toString(16)
354
354
  if (v.length < 2) {
355
355
  v = `0${v}`
@@ -414,7 +414,7 @@ class LedgerBridgeKeyring extends EventEmitter {
414
414
  })
415
415
 
416
416
  if (success) {
417
- let v = payload.v - 27
417
+ let v = parseInt(payload.v, 10)
418
418
  v = v.toString(16)
419
419
  if (v.length < 2) {
420
420
  v = `0${v}`
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@metamask/eth-ledger-bridge-keyring",
3
- "version": "0.13.0",
3
+ "version": "0.14.0",
4
4
  "description": "A MetaMask compatible keyring, for ledger hardware wallets",
5
5
  "main": "index.js",
6
6
  "files": [
7
7
  "index.js"
8
8
  ],
9
9
  "engines": {
10
- "node": ">=12.0.0"
10
+ "node": ">=14.0.0"
11
11
  },
12
12
  "scripts": {
13
13
  "test": "mocha",
@@ -34,17 +34,15 @@
34
34
  "url": "https://github.com/MetaMask/eth-ledger-bridge-keyring/issues"
35
35
  },
36
36
  "homepage": "https://github.com/MetaMask/eth-ledger-bridge-keyring#readme",
37
- "resolutions": {
38
- "mocha/**/mkdirp": "^0.5.3"
39
- },
40
37
  "dependencies": {
41
- "eth-sig-util": "^2.0.0",
42
38
  "@ethereumjs/tx": "^3.2.0",
39
+ "eth-sig-util": "^2.0.0",
43
40
  "ethereumjs-util": "^7.0.9",
44
41
  "hdkey": "0.8.0"
45
42
  },
46
43
  "devDependencies": {
47
44
  "@ethereumjs/common": "^2.4.0",
45
+ "@lavamoat/allow-scripts": "^2.3.0",
48
46
  "@metamask/eslint-config": "^3.0.0",
49
47
  "babel-eslint": "^10.1.0",
50
48
  "chai": "^4.1.2",
@@ -55,5 +53,17 @@
55
53
  "eslint-plugin-mocha": "^6.2.2",
56
54
  "ethereumjs-tx": "^1.3.4",
57
55
  "mocha": "^5.0.4"
56
+ },
57
+ "packageManager": "yarn@3.4.1",
58
+ "lavamoat": {
59
+ "allowScripts": {
60
+ "@lavamoat/preinstall-always-fail": false,
61
+ "eth-sig-util>ethereumjs-abi>ethereumjs-util>keccak": false,
62
+ "eth-sig-util>ethereumjs-util>keccak": false,
63
+ "ethereumjs-tx>ethereumjs-util>keccak": false,
64
+ "ethereumjs-util>ethereum-cryptography>keccak": false,
65
+ "ethereumjs-util>ethereum-cryptography>secp256k1": false,
66
+ "hdkey>secp256k1": false
67
+ }
58
68
  }
59
69
  }
package/CHANGELOG.md DELETED
@@ -1,47 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
-
8
- ## [Unreleased]
9
-
10
- ## [0.13.0]
11
- ### Added
12
- - hdk.publicKey and hdk.chainCode should not be updated when unlocking using hdPath for an account. ([#146](https://github.com/MetaMask/eth-ledger-bridge-keyring/pull/146))
13
-
14
- ## [0.12.0]
15
- ### Added
16
- - Add a new `destroy` method which will remove the `message` event listener from window. ([#145](https://github.com/MetaMask/eth-ledger-bridge-keyring/pull/145))
17
-
18
- ## [0.11.0]
19
- ### Added
20
- - Add a new `isConnected` method which allows determining if the device is last known to be connected. ([#131](https://github.com/MetaMask/eth-ledger-bridge-keyring/pull/131))
21
- ### Changed
22
- - Messaging now runs off of message IDs instead of assuming the response received is from the last message sent, which will not always been true. ([#132](https://github.com/MetaMask/eth-ledger-bridge-keyring/pull/132))
23
-
24
- ## [0.10.0]
25
- ### Added
26
- - Add a new `attemptMakeApp` method which allows clients to attempt a creation of the Ledger transport for the purposes of detecting/catching potential connection errors. ([#126](https://github.com/MetaMask/eth-ledger-bridge-keyring/pull/126))
27
-
28
- ## [0.9.0]
29
- ### Changed
30
- - `updateTransportMethod` no longer defaults its parameter to false, and now names the param sent with the `'ledger-update-transport'` message `transportType`. This better is to support the use of an enum, instead of a boolean, for specifying transport preferences. ([#114](https://github.com/MetaMask/eth-ledger-bridge-keyring/pull/114))
31
-
32
- ## [0.8.0]
33
- ### Added
34
- - Allow ledger-bridge iframe to connect Ledger wia WebHID, when it is supported by the current browser ([#107](https://github.com/MetaMask/eth-ledger-bridge-keyring/pull/107))
35
-
36
- ### Changed
37
- - Reject with an Error object if unlocking is not successful ([#104](https://github.com/MetaMask/eth-ledger-bridge-keyring/pull/104))
38
- - Ensure that logs of errors only have a single `Error:` string in the message ([#105](https://github.com/MetaMask/eth-ledger-bridge-keyring/pull/105))
39
-
40
- ## [0.7.0]
41
- ### Changed
42
- - Remove unused `events` and `ethereumjs-tx` dependencies ([#101](https://github.com/MetaMask/eth-ledger-bridge-keyring/pull/101), [#102](https://github.com/MetaMask/eth-ledger-bridge-keyring/pull/102))
43
- - Update eth-ledger-bridge-keyring to support EIP-1559 transactions ([#98](https://github.com/MetaMask/eth-ledger-bridge-keyring/pull/98), [#97](https://github.com/MetaMask/eth-ledger-bridge-keyring/pull/97), [#96](https://github.com/MetaMask/eth-ledger-bridge-keyring/pull/96))
44
-
45
- ## [0.6.0]
46
- ### Added
47
- - Support new versions of ethereumjs/tx ([#68](https://github.com/MetaMask/eth-ledger-bridge-keyring/pull/68))