diff --git a/app/scripts/account-import-strategies/account-import-strategies.test.js b/app/scripts/account-import-strategies/account-import-strategies.test.js deleted file mode 100644 index 0c2c6fc3aa31..000000000000 --- a/app/scripts/account-import-strategies/account-import-strategies.test.js +++ /dev/null @@ -1,72 +0,0 @@ -import { strict as assert } from 'assert'; -import { stripHexPrefix } from '../../../shared/modules/hexstring-utils'; -import accountImporter from '.'; - -describe('Account Import Strategies', function () { - const privkey = - '0x4cfd3e90fc78b0f86bf7524722150bb8da9c60cd532564d7ff43f5716514f553'; - const json = - '{"version":3,"id":"dbb54385-0a99-437f-83c0-647de9f244c3","address":"a7f92ce3fba24196cf6f4bd2e1eb3db282ba998c","Crypto":{"ciphertext":"bde13d9ade5c82df80281ca363320ce254a8a3a06535bbf6ffdeaf0726b1312c","cipherparams":{"iv":"fbf93718a57f26051b292f072f2e5b41"},"cipher":"aes-128-ctr","kdf":"scrypt","kdfparams":{"dklen":32,"salt":"7ffe00488319dec48e4c49a120ca49c6afbde9272854c64d9541c83fc6acdffe","n":8192,"r":8,"p":1},"mac":"2adfd9c4bc1cdac4c85bddfb31d9e21a684e0e050247a70c5698facf6b7d4681"}}'; - - describe('private key import', function () { - it('imports a private key and strips 0x prefix', async function () { - const importPrivKey = await accountImporter.importAccount('Private Key', [ - privkey, - ]); - assert.equal(importPrivKey, stripHexPrefix(privkey)); - }); - - it('throws an error for empty string private key', async function () { - await assert.rejects( - async () => { - await accountImporter.importAccount('Private Key', ['']); - }, - Error, - 'no empty strings', - ); - }); - - it('throws an error for undefined string private key', async function () { - await assert.rejects(async () => { - await accountImporter.importAccount('Private Key', [undefined]); - }); - - await assert.rejects(async () => { - await accountImporter.importAccount('Private Key', []); - }); - }); - - it('throws an error for invalid private key', async function () { - await assert.rejects(async () => { - await accountImporter.importAccount('Private Key', ['popcorn']); - }); - }); - }); - - describe('JSON keystore import', function () { - it('fails when password is incorrect for keystore', async function () { - const wrongPassword = 'password2'; - - try { - await accountImporter.importAccount('JSON File', [json, wrongPassword]); - } catch (error) { - assert.equal( - error.message, - 'Key derivation failed - possibly wrong passphrase', - ); - } - }); - - it('imports json string and password to return a private key', async function () { - const fileContentsPassword = 'password1'; - const importJson = await accountImporter.importAccount('JSON File', [ - json, - fileContentsPassword, - ]); - assert.equal( - importJson, - '0x5733876abe94146069ce8bcbabbde2677f2e35fa33e875e92041ed2ac87e5bc7', - ); - }); - }); -}); diff --git a/app/scripts/account-import-strategies/index.js b/app/scripts/account-import-strategies/index.js deleted file mode 100644 index 286452c5a76d..000000000000 --- a/app/scripts/account-import-strategies/index.js +++ /dev/null @@ -1,75 +0,0 @@ -import { isValidMnemonic } from '@ethersproject/hdnode'; -import { - bufferToHex, - getBinarySize, - isValidPrivate, - toBuffer, -} from 'ethereumjs-util'; -import Wallet from 'ethereumjs-wallet'; -import importers from 'ethereumjs-wallet/thirdparty'; -import log from 'loglevel'; -import { stripHexPrefix } from '../../../shared/modules/hexstring-utils'; -import { addHexPrefix } from '../lib/util'; - -const accountImporter = { - async importAccount(strategy, args) { - const importer = this.strategies[strategy]; - const privateKeyHex = importer(...args); - return privateKeyHex; - }, - - strategies: { - 'Private Key': (privateKey) => { - if (!privateKey) { - throw new Error('Cannot import an empty key.'); // It should never get here, because this should be stopped in the UI - } - - // Check if the user has entered an SRP by mistake instead of a private key - if (isValidMnemonic(privateKey.trim())) { - throw new Error(`t('importAccountErrorIsSRP')`); - } - - const trimmedPrivateKey = privateKey.replace(/\s+/gu, ''); // Remove all whitespace - - const prefixedPrivateKey = addHexPrefix(trimmedPrivateKey); - let buffer; - try { - buffer = toBuffer(prefixedPrivateKey); - } catch (e) { - throw new Error(`t('importAccountErrorNotHexadecimal')`); - } - - try { - if ( - !isValidPrivate(buffer) || - getBinarySize(prefixedPrivateKey) !== 64 + '0x'.length // Fixes issue #17719 -- isValidPrivate() will let a key of 63 hex digits through without complaining, this line ensures 64 hex digits + '0x' = 66 digits - ) { - throw new Error(`t('importAccountErrorNotAValidPrivateKey')`); - } - } catch (e) { - throw new Error(`t('importAccountErrorNotAValidPrivateKey')`); - } - - const strippedPrivateKey = stripHexPrefix(prefixedPrivateKey); - return strippedPrivateKey; - }, - 'JSON File': (input, password) => { - let wallet; - try { - wallet = importers.fromEtherWallet(input, password); - } catch (e) { - log.debug('Attempt to import as EtherWallet format failed, trying V3'); - wallet = Wallet.fromV3(input, password, true); - } - - return walletToPrivateKey(wallet); - }, - }, -}; - -function walletToPrivateKey(wallet) { - const privateKeyBuffer = wallet.getPrivateKey(); - return bufferToHex(privateKeyBuffer); -} - -export default accountImporter; diff --git a/app/scripts/metamask-controller.actions.test.js b/app/scripts/metamask-controller.actions.test.js index c1ea740f81fb..d630c0634e63 100644 --- a/app/scripts/metamask-controller.actions.test.js +++ b/app/scripts/metamask-controller.actions.test.js @@ -150,14 +150,14 @@ describe('MetaMaskController', function () { await metamaskController.createNewVaultAndKeychain('test@123'); await Promise.all([ - metamaskController.importAccountWithStrategy('Private Key', [ + metamaskController.importAccountWithStrategy('privateKey', [ importPrivkey, ]), Promise.resolve(1).then(() => { keyringControllerState1 = JSON.stringify( metamaskController.keyringController.memStore.getState(), ); - metamaskController.importAccountWithStrategy('Private Key', [ + metamaskController.importAccountWithStrategy('privateKey', [ importPrivkey, ]); }), diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index 5c5c64fc1ece..7d3e5d79675c 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -185,7 +185,6 @@ import DecryptMessageController from './controllers/decrypt-message'; import TransactionController from './controllers/transactions'; import DetectTokensController from './controllers/detect-tokens'; import SwapsController from './controllers/swaps'; -import accountImporter from './account-import-strategies'; import seedPhraseVerifier from './lib/seed-phrase-verifier'; import MetaMetricsController from './controllers/metametrics'; import { segment } from './lib/segment'; @@ -3533,21 +3532,17 @@ export default class MetamaskController extends EventEmitter { * These are defined in app/scripts/account-import-strategies * Each strategy represents a different way of serializing an Ethereum key pair. * - * @param {string} strategy - A unique identifier for an account import strategy. + * @param {'privateKey' | 'json'} strategy - A unique identifier for an account import strategy. * @param {any} args - The data required by that strategy to import an account. */ async importAccountWithStrategy(strategy, args) { - const privateKey = await accountImporter.importAccount(strategy, args); - const keyring = await this.keyringController.addNewKeyring( - KeyringType.imported, - [privateKey], - ); - const [firstAccount] = await keyring.getAccounts(); - // update accounts in preferences controller - const allAccounts = await this.keyringController.getAccounts(); - this.preferencesController.setAddresses(allAccounts); + const { importedAccountAddress } = + await this.coreKeyringController.importAccountWithStrategy( + strategy, + args, + ); // set new account as selected - this.preferencesController.setSelectedAddress(firstAccount); + this.preferencesController.setSelectedAddress(importedAccountAddress); } // --------------------------------------------------------------------------- diff --git a/app/scripts/metamask-controller.test.js b/app/scripts/metamask-controller.test.js index 32d7b3c2fbf1..a4c7e5c24a35 100644 --- a/app/scripts/metamask-controller.test.js +++ b/app/scripts/metamask-controller.test.js @@ -276,7 +276,7 @@ describe('MetaMaskController', function () { beforeEach(async function () { const password = 'a-fake-password'; await metamaskController.createNewVaultAndRestore(password, TEST_SEED); - await metamaskController.importAccountWithStrategy('Private Key', [ + await metamaskController.importAccountWithStrategy('privateKey', [ importPrivkey, ]); }); diff --git a/lavamoat/browserify/beta/policy.json b/lavamoat/browserify/beta/policy.json index 85d4a5bf485a..f707e9c58a8b 100644 --- a/lavamoat/browserify/beta/policy.json +++ b/lavamoat/browserify/beta/policy.json @@ -107,9 +107,14 @@ }, "@ensdomains/content-hash>multihashes>multibase": { "packages": { + "@ensdomains/content-hash>multihashes>multibase>base-x": true, "@ensdomains/content-hash>multihashes>web-encoding": true, - "browserify>buffer": true, - "ethereumjs-wallet>bs58check>bs58>base-x": true + "browserify>buffer": true + } + }, + "@ensdomains/content-hash>multihashes>multibase>base-x": { + "packages": { + "koa>content-disposition>safe-buffer": true } }, "@ensdomains/content-hash>multihashes>web-encoding": { @@ -513,7 +518,7 @@ "packages": { "@ngraveio/bc-ur": true, "browserify>buffer": true, - "ethereumjs-wallet>bs58check": true, + "ethereumjs-util>ethereum-cryptography>bs58check": true, "wait-on>rxjs>tslib": true } }, @@ -521,9 +526,9 @@ "packages": { "browserify>assert": true, "browserify>crypto-browserify": true, + "ethereumjs-util>ethereum-cryptography>bs58check": true, "ethereumjs-util>ethereum-cryptography>secp256k1": true, - "ethereumjs-wallet>bs58check": true, - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true } }, "@keystonehq/metamask-airgapped-keyring": { @@ -1050,7 +1055,7 @@ "@metamask/eth-snap-keyring>@metamask/eth-sig-util": true, "browserify>buffer": true, "browserify>events": true, - "ethereumjs-wallet>randombytes": true + "mocha>serialize-javascript>randombytes": true } }, "@metamask/eth-keyring-controller>@metamask/eth-simple-keyring>ethereum-cryptography": { @@ -1110,8 +1115,8 @@ "ethereumjs-util>create-hash": true, "ethereumjs-util>ethereum-cryptography": true, "ethereumjs-util>rlp": true, - "ethereumjs-wallet>safe-buffer": true, - "ganache>secp256k1>elliptic": true + "ganache>secp256k1>elliptic": true, + "koa>content-disposition>safe-buffer": true } }, "@metamask/eth-ledger-bridge-keyring>hdkey": { @@ -1120,7 +1125,7 @@ "@metamask/eth-trezor-keyring>hdkey>coinstring": true, "browserify>assert": true, "browserify>crypto-browserify": true, - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true } }, "@metamask/eth-ledger-bridge-keyring>hdkey>secp256k1": { @@ -1129,8 +1134,8 @@ "bn.js": true, "browserify>insert-module-globals>is-buffer": true, "ethereumjs-util>create-hash": true, - "ethereumjs-wallet>safe-buffer": true, - "ganache>secp256k1>elliptic": true + "ganache>secp256k1>elliptic": true, + "koa>content-disposition>safe-buffer": true } }, "@metamask/eth-snap-keyring>@metamask/eth-sig-util": { @@ -1424,7 +1429,7 @@ "@metamask/eth-trezor-keyring>hdkey>secp256k1": true, "browserify>assert": true, "browserify>crypto-browserify": true, - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true } }, "@metamask/eth-trezor-keyring>hdkey>coinstring": { @@ -1440,13 +1445,13 @@ "bn.js": true, "browserify>insert-module-globals>is-buffer": true, "ethereumjs-util>create-hash": true, - "ethereumjs-wallet>safe-buffer": true, - "ganache>secp256k1>elliptic": true + "ganache>secp256k1>elliptic": true, + "koa>content-disposition>safe-buffer": true } }, "@metamask/eth-trezor-keyring>hdkey>secp256k1>bip66": { "packages": { - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true } }, "@metamask/etherscan-link": { @@ -1598,11 +1603,11 @@ "@truffle/codec>utf8": true, "browserify>buffer": true, "browserify>crypto-browserify": true, + "eth-lattice-keyring>gridplus-sdk>aes-js": true, "ethereumjs-util>ethereum-cryptography": true, + "ethereumjs-util>ethereum-cryptography>bs58check": true, "ethereumjs-util>ethereum-cryptography>scrypt-js": true, - "ethereumjs-wallet>aes-js": true, - "ethereumjs-wallet>bs58check": true, - "ethereumjs-wallet>randombytes": true, + "mocha>serialize-javascript>randombytes": true, "uuid": true } }, @@ -2499,9 +2504,9 @@ "@truffle/codec>web3-utils>ethereum-bloom-filters": true, "browserify>buffer": true, "ethereumjs-util": true, - "ethereumjs-wallet>randombytes": true, "ethjs>ethjs-unit": true, - "ethjs>number-to-bn": true + "ethjs>number-to-bn": true, + "mocha>serialize-javascript>randombytes": true } }, "@truffle/codec>web3-utils>bn.js": { @@ -2568,7 +2573,7 @@ "@truffle/decoder>@truffle/encoder>@ensdomains/ensjs>js-sha3": true, "browserify>buffer": true, "eth-ens-namehash": true, - "ethereumjs-wallet>bs58check>bs58": true + "ethereumjs-util>ethereum-cryptography>bs58check>bs58": true } }, "@truffle/decoder>@truffle/encoder>@ensdomains/ensjs>@ensdomains/address-encoder": { @@ -2601,8 +2606,8 @@ }, "@truffle/decoder>@truffle/encoder>@ensdomains/ensjs>content-hash>cids>multibase": { "packages": { - "browserify>buffer": true, - "ethereumjs-wallet>bs58check>bs58>base-x": true + "@ensdomains/content-hash>multihashes>multibase>base-x": true, + "browserify>buffer": true } }, "@truffle/decoder>@truffle/encoder>@ensdomains/ensjs>content-hash>cids>multicodec": { @@ -2626,8 +2631,8 @@ }, "@truffle/decoder>@truffle/encoder>@ensdomains/ensjs>content-hash>multihashes>multibase": { "packages": { - "browserify>buffer": true, - "ethereumjs-wallet>bs58check>bs58>base-x": true + "@ensdomains/content-hash>multihashes>multibase>base-x": true, + "browserify>buffer": true } }, "@truffle/decoder>@truffle/encoder>@ensdomains/ensjs>ethers": { @@ -2797,7 +2802,7 @@ }, "addons-linter>sha.js": { "packages": { - "ethereumjs-wallet>safe-buffer": true, + "koa>content-disposition>safe-buffer": true, "pumpify>inherits": true } }, @@ -2887,7 +2892,7 @@ "browserify>crypto-browserify>public-encrypt": true, "browserify>crypto-browserify>randomfill": true, "ethereumjs-util>create-hash": true, - "ethereumjs-wallet>randombytes": true + "mocha>serialize-javascript>randombytes": true } }, "browserify>crypto-browserify>browserify-cipher": { @@ -2914,7 +2919,7 @@ "browserify>crypto-browserify>browserify-cipher>evp_bytestokey": { "packages": { "ethereumjs-util>create-hash>md5.js": true, - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true } }, "browserify>crypto-browserify>browserify-sign": { @@ -2943,7 +2948,7 @@ "ethereumjs-util>create-hash": true, "ethereumjs-util>create-hash>cipher-base": true, "ethereumjs-util>create-hash>ripemd160": true, - "ethereumjs-wallet>safe-buffer": true, + "koa>content-disposition>safe-buffer": true, "pumpify>inherits": true } }, @@ -2952,7 +2957,7 @@ "bn.js": true, "browserify>buffer": true, "browserify>crypto-browserify>diffie-hellman>miller-rabin": true, - "ethereumjs-wallet>randombytes": true + "mocha>serialize-javascript>randombytes": true } }, "browserify>crypto-browserify>diffie-hellman>miller-rabin": { @@ -2974,7 +2979,7 @@ "browserify>process": true, "ethereumjs-util>create-hash": true, "ethereumjs-util>create-hash>ripemd160": true, - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true } }, "browserify>crypto-browserify>public-encrypt": { @@ -2984,14 +2989,14 @@ "browserify>crypto-browserify>public-encrypt>browserify-rsa": true, "browserify>crypto-browserify>public-encrypt>parse-asn1": true, "ethereumjs-util>create-hash": true, - "ethereumjs-wallet>randombytes": true + "mocha>serialize-javascript>randombytes": true } }, "browserify>crypto-browserify>public-encrypt>browserify-rsa": { "packages": { "bn.js": true, "browserify>buffer": true, - "ethereumjs-wallet>randombytes": true + "mocha>serialize-javascript>randombytes": true } }, "browserify>crypto-browserify>public-encrypt>parse-asn1": { @@ -3019,8 +3024,8 @@ }, "packages": { "browserify>process": true, - "ethereumjs-wallet>randombytes": true, - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true, + "mocha>serialize-javascript>randombytes": true } }, "browserify>events": { @@ -3105,7 +3110,7 @@ }, "browserify>string_decoder": { "packages": { - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true } }, "browserify>timers-browserify": { @@ -3381,6 +3386,7 @@ "browserify>buffer": true, "eth-lattice-keyring>gridplus-sdk>@ethereumjs/common": true, "eth-lattice-keyring>gridplus-sdk>@ethereumjs/tx": true, + "eth-lattice-keyring>gridplus-sdk>aes-js": true, "eth-lattice-keyring>gridplus-sdk>bech32": true, "eth-lattice-keyring>gridplus-sdk>bignumber.js": true, "eth-lattice-keyring>gridplus-sdk>bitwise": true, @@ -3390,9 +3396,8 @@ "eth-lattice-keyring>gridplus-sdk>rlp": true, "eth-lattice-keyring>gridplus-sdk>secp256k1": true, "eth-lattice-keyring>gridplus-sdk>uuid": true, + "ethereumjs-util>ethereum-cryptography>bs58check": true, "ethereumjs-util>ethereum-cryptography>hash.js": true, - "ethereumjs-wallet>aes-js": true, - "ethereumjs-wallet>bs58check": true, "ganache>secp256k1>elliptic": true, "lodash": true } @@ -3440,6 +3445,11 @@ "crypto": true } }, + "eth-lattice-keyring>gridplus-sdk>aes-js": { + "globals": { + "define": true + } + }, "eth-lattice-keyring>gridplus-sdk>bignumber.js": { "globals": { "crypto": true, @@ -3573,8 +3583,8 @@ "ethereumjs-util>create-hash": true, "ethereumjs-util>ethereum-cryptography": true, "ethereumjs-util>rlp": true, - "ethereumjs-wallet>safe-buffer": true, - "ganache>secp256k1>elliptic": true + "ganache>secp256k1>elliptic": true, + "koa>content-disposition>safe-buffer": true } }, "eth-sig-util>ethereumjs-util>ethjs-util": { @@ -3654,21 +3664,21 @@ "packages": { "browserify>stream-browserify": true, "browserify>string_decoder": true, - "ethereumjs-wallet>safe-buffer": true, + "koa>content-disposition>safe-buffer": true, "pumpify>inherits": true } }, "ethereumjs-util>create-hash>md5.js": { "packages": { "ethereumjs-util>create-hash>md5.js>hash-base": true, - "ethereumjs-wallet>safe-buffer": true, + "koa>content-disposition>safe-buffer": true, "pumpify>inherits": true } }, "ethereumjs-util>create-hash>md5.js>hash-base": { "packages": { "ethereumjs-util>create-hash>md5.js>hash-base>readable-stream": true, - "ethereumjs-wallet>safe-buffer": true, + "koa>content-disposition>safe-buffer": true, "pumpify>inherits": true } }, @@ -3695,12 +3705,12 @@ "browserify>assert": true, "browserify>buffer": true, "browserify>crypto-browserify>create-hmac": true, + "ethereumjs-util>ethereum-cryptography>bs58check": true, "ethereumjs-util>ethereum-cryptography>hash.js": true, "ethereumjs-util>ethereum-cryptography>keccak": true, "ethereumjs-util>ethereum-cryptography>secp256k1": true, - "ethereumjs-wallet>bs58check": true, - "ethereumjs-wallet>randombytes": true, - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true, + "mocha>serialize-javascript>randombytes": true } }, "ethereumjs-util>ethereum-cryptography>browserify-aes": { @@ -3709,7 +3719,7 @@ "browserify>crypto-browserify>browserify-cipher>evp_bytestokey": true, "ethereumjs-util>create-hash>cipher-base": true, "ethereumjs-util>ethereum-cryptography>browserify-aes>buffer-xor": true, - "ethereumjs-wallet>safe-buffer": true, + "koa>content-disposition>safe-buffer": true, "pumpify>inherits": true } }, @@ -3718,6 +3728,18 @@ "browserify>buffer": true } }, + "ethereumjs-util>ethereum-cryptography>bs58check": { + "packages": { + "ethereumjs-util>create-hash": true, + "ethereumjs-util>ethereum-cryptography>bs58check>bs58": true, + "koa>content-disposition>safe-buffer": true + } + }, + "ethereumjs-util>ethereum-cryptography>bs58check>bs58": { + "packages": { + "@ensdomains/content-hash>multihashes>multibase>base-x": true + } + }, "ethereumjs-util>ethereum-cryptography>hash.js": { "packages": { "ganache>secp256k1>elliptic>minimalistic-assert": true, @@ -3769,78 +3791,9 @@ "browserify>browser-resolve": true } }, - "ethereumjs-wallet": { - "packages": { - "@truffle/codec>utf8": true, - "browserify>crypto-browserify": true, - "ethereumjs-wallet>aes-js": true, - "ethereumjs-wallet>bs58check": true, - "ethereumjs-wallet>ethereumjs-util": true, - "ethereumjs-wallet>randombytes": true, - "ethereumjs-wallet>safe-buffer": true, - "ethereumjs-wallet>scryptsy": true, - "ethereumjs-wallet>uuid": true - } - }, - "ethereumjs-wallet>aes-js": { - "globals": { - "define": true - } - }, - "ethereumjs-wallet>bs58check": { - "packages": { - "ethereumjs-util>create-hash": true, - "ethereumjs-wallet>bs58check>bs58": true, - "ethereumjs-wallet>safe-buffer": true - } - }, - "ethereumjs-wallet>bs58check>bs58": { - "packages": { - "ethereumjs-wallet>bs58check>bs58>base-x": true - } - }, - "ethereumjs-wallet>bs58check>bs58>base-x": { - "packages": { - "ethereumjs-wallet>safe-buffer": true - } - }, - "ethereumjs-wallet>ethereumjs-util": { - "packages": { - "bn.js": true, - "browserify>assert": true, - "browserify>buffer": true, - "eth-sig-util>ethereumjs-util>ethjs-util": true, - "ethereumjs-util>create-hash": true, - "ethereumjs-util>ethereum-cryptography": true, - "ethereumjs-util>rlp": true, - "ganache>secp256k1>elliptic": true - } - }, "ethereumjs-wallet>randombytes": { "globals": { - "crypto": true, - "msCrypto": true - }, - "packages": { - "browserify>process": true, - "ethereumjs-wallet>safe-buffer": true - } - }, - "ethereumjs-wallet>safe-buffer": { - "packages": { - "browserify>buffer": true - } - }, - "ethereumjs-wallet>scryptsy": { - "packages": { - "browserify>buffer": true, - "browserify>crypto-browserify>pbkdf2": true - } - }, - "ethereumjs-wallet>uuid": { - "globals": { - "crypto": true, - "msCrypto": true + "crypto.getRandomValues": true } }, "ethers>@ethersproject/random": { @@ -4066,6 +4019,11 @@ "readable-stream": true } }, + "koa>content-disposition>safe-buffer": { + "packages": { + "browserify>buffer": true + } + }, "koa>is-generator-function>has-tostringtag": { "packages": { "string.prototype.matchall>has-symbols": true @@ -4126,6 +4084,16 @@ "Intl": true } }, + "mocha>serialize-javascript>randombytes": { + "globals": { + "crypto": true, + "msCrypto": true + }, + "packages": { + "browserify>process": true, + "koa>content-disposition>safe-buffer": true + } + }, "nanoid": { "globals": { "crypto": true, @@ -4757,4 +4725,4 @@ } } } -} \ No newline at end of file +} diff --git a/lavamoat/browserify/desktop/policy.json b/lavamoat/browserify/desktop/policy.json index 0de5f49f481a..48ca8fd9ca02 100644 --- a/lavamoat/browserify/desktop/policy.json +++ b/lavamoat/browserify/desktop/policy.json @@ -107,9 +107,14 @@ }, "@ensdomains/content-hash>multihashes>multibase": { "packages": { + "@ensdomains/content-hash>multihashes>multibase>base-x": true, "@ensdomains/content-hash>multihashes>web-encoding": true, - "browserify>buffer": true, - "ethereumjs-wallet>bs58check>bs58>base-x": true + "browserify>buffer": true + } + }, + "@ensdomains/content-hash>multihashes>multibase>base-x": { + "packages": { + "koa>content-disposition>safe-buffer": true } }, "@ensdomains/content-hash>multihashes>web-encoding": { @@ -513,7 +518,7 @@ "packages": { "@ngraveio/bc-ur": true, "browserify>buffer": true, - "ethereumjs-wallet>bs58check": true, + "ethereumjs-util>ethereum-cryptography>bs58check": true, "wait-on>rxjs>tslib": true } }, @@ -521,9 +526,9 @@ "packages": { "browserify>assert": true, "browserify>crypto-browserify": true, + "ethereumjs-util>ethereum-cryptography>bs58check": true, "ethereumjs-util>ethereum-cryptography>secp256k1": true, - "ethereumjs-wallet>bs58check": true, - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true } }, "@keystonehq/metamask-airgapped-keyring": { @@ -1121,7 +1126,7 @@ "@metamask/eth-snap-keyring>@metamask/eth-sig-util": true, "browserify>buffer": true, "browserify>events": true, - "ethereumjs-wallet>randombytes": true + "mocha>serialize-javascript>randombytes": true } }, "@metamask/eth-keyring-controller>@metamask/eth-simple-keyring>ethereum-cryptography": { @@ -1181,8 +1186,8 @@ "ethereumjs-util>create-hash": true, "ethereumjs-util>ethereum-cryptography": true, "ethereumjs-util>rlp": true, - "ethereumjs-wallet>safe-buffer": true, - "ganache>secp256k1>elliptic": true + "ganache>secp256k1>elliptic": true, + "koa>content-disposition>safe-buffer": true } }, "@metamask/eth-ledger-bridge-keyring>hdkey": { @@ -1191,7 +1196,7 @@ "@metamask/eth-trezor-keyring>hdkey>coinstring": true, "browserify>assert": true, "browserify>crypto-browserify": true, - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true } }, "@metamask/eth-ledger-bridge-keyring>hdkey>secp256k1": { @@ -1200,8 +1205,8 @@ "bn.js": true, "browserify>insert-module-globals>is-buffer": true, "ethereumjs-util>create-hash": true, - "ethereumjs-wallet>safe-buffer": true, - "ganache>secp256k1>elliptic": true + "ganache>secp256k1>elliptic": true, + "koa>content-disposition>safe-buffer": true } }, "@metamask/eth-snap-keyring": { @@ -1552,7 +1557,7 @@ "@metamask/eth-trezor-keyring>hdkey>secp256k1": true, "browserify>assert": true, "browserify>crypto-browserify": true, - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true } }, "@metamask/eth-trezor-keyring>hdkey>coinstring": { @@ -1568,13 +1573,13 @@ "bn.js": true, "browserify>insert-module-globals>is-buffer": true, "ethereumjs-util>create-hash": true, - "ethereumjs-wallet>safe-buffer": true, - "ganache>secp256k1>elliptic": true + "ganache>secp256k1>elliptic": true, + "koa>content-disposition>safe-buffer": true } }, "@metamask/eth-trezor-keyring>hdkey>secp256k1>bip66": { "packages": { - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true } }, "@metamask/etherscan-link": { @@ -1749,11 +1754,11 @@ "@truffle/codec>utf8": true, "browserify>buffer": true, "browserify>crypto-browserify": true, + "eth-lattice-keyring>gridplus-sdk>aes-js": true, "ethereumjs-util>ethereum-cryptography": true, + "ethereumjs-util>ethereum-cryptography>bs58check": true, "ethereumjs-util>ethereum-cryptography>scrypt-js": true, - "ethereumjs-wallet>aes-js": true, - "ethereumjs-wallet>bs58check": true, - "ethereumjs-wallet>randombytes": true, + "mocha>serialize-javascript>randombytes": true, "uuid": true } }, @@ -2995,9 +3000,9 @@ "@truffle/codec>web3-utils>ethereum-bloom-filters": true, "browserify>buffer": true, "ethereumjs-util": true, - "ethereumjs-wallet>randombytes": true, "ethjs>ethjs-unit": true, - "ethjs>number-to-bn": true + "ethjs>number-to-bn": true, + "mocha>serialize-javascript>randombytes": true } }, "@truffle/codec>web3-utils>bn.js": { @@ -3064,7 +3069,7 @@ "@truffle/decoder>@truffle/encoder>@ensdomains/ensjs>js-sha3": true, "browserify>buffer": true, "eth-ens-namehash": true, - "ethereumjs-wallet>bs58check>bs58": true + "ethereumjs-util>ethereum-cryptography>bs58check>bs58": true } }, "@truffle/decoder>@truffle/encoder>@ensdomains/ensjs>@ensdomains/address-encoder": { @@ -3097,8 +3102,8 @@ }, "@truffle/decoder>@truffle/encoder>@ensdomains/ensjs>content-hash>cids>multibase": { "packages": { - "browserify>buffer": true, - "ethereumjs-wallet>bs58check>bs58>base-x": true + "@ensdomains/content-hash>multihashes>multibase>base-x": true, + "browserify>buffer": true } }, "@truffle/decoder>@truffle/encoder>@ensdomains/ensjs>content-hash>cids>multicodec": { @@ -3122,8 +3127,8 @@ }, "@truffle/decoder>@truffle/encoder>@ensdomains/ensjs>content-hash>multihashes>multibase": { "packages": { - "browserify>buffer": true, - "ethereumjs-wallet>bs58check>bs58>base-x": true + "@ensdomains/content-hash>multihashes>multibase>base-x": true, + "browserify>buffer": true } }, "@truffle/decoder>@truffle/encoder>@ensdomains/ensjs>ethers": { @@ -3293,7 +3298,7 @@ }, "addons-linter>sha.js": { "packages": { - "ethereumjs-wallet>safe-buffer": true, + "koa>content-disposition>safe-buffer": true, "pumpify>inherits": true } }, @@ -3383,7 +3388,7 @@ "browserify>crypto-browserify>public-encrypt": true, "browserify>crypto-browserify>randomfill": true, "ethereumjs-util>create-hash": true, - "ethereumjs-wallet>randombytes": true + "mocha>serialize-javascript>randombytes": true } }, "browserify>crypto-browserify>browserify-cipher": { @@ -3410,7 +3415,7 @@ "browserify>crypto-browserify>browserify-cipher>evp_bytestokey": { "packages": { "ethereumjs-util>create-hash>md5.js": true, - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true } }, "browserify>crypto-browserify>browserify-sign": { @@ -3439,7 +3444,7 @@ "ethereumjs-util>create-hash": true, "ethereumjs-util>create-hash>cipher-base": true, "ethereumjs-util>create-hash>ripemd160": true, - "ethereumjs-wallet>safe-buffer": true, + "koa>content-disposition>safe-buffer": true, "pumpify>inherits": true } }, @@ -3448,7 +3453,7 @@ "bn.js": true, "browserify>buffer": true, "browserify>crypto-browserify>diffie-hellman>miller-rabin": true, - "ethereumjs-wallet>randombytes": true + "mocha>serialize-javascript>randombytes": true } }, "browserify>crypto-browserify>diffie-hellman>miller-rabin": { @@ -3470,7 +3475,7 @@ "browserify>process": true, "ethereumjs-util>create-hash": true, "ethereumjs-util>create-hash>ripemd160": true, - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true } }, "browserify>crypto-browserify>public-encrypt": { @@ -3480,14 +3485,14 @@ "browserify>crypto-browserify>public-encrypt>browserify-rsa": true, "browserify>crypto-browserify>public-encrypt>parse-asn1": true, "ethereumjs-util>create-hash": true, - "ethereumjs-wallet>randombytes": true + "mocha>serialize-javascript>randombytes": true } }, "browserify>crypto-browserify>public-encrypt>browserify-rsa": { "packages": { "bn.js": true, "browserify>buffer": true, - "ethereumjs-wallet>randombytes": true + "mocha>serialize-javascript>randombytes": true } }, "browserify>crypto-browserify>public-encrypt>parse-asn1": { @@ -3515,8 +3520,8 @@ }, "packages": { "browserify>process": true, - "ethereumjs-wallet>randombytes": true, - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true, + "mocha>serialize-javascript>randombytes": true } }, "browserify>events": { @@ -3601,7 +3606,7 @@ }, "browserify>string_decoder": { "packages": { - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true } }, "browserify>timers-browserify": { @@ -3877,6 +3882,7 @@ "browserify>buffer": true, "eth-lattice-keyring>gridplus-sdk>@ethereumjs/common": true, "eth-lattice-keyring>gridplus-sdk>@ethereumjs/tx": true, + "eth-lattice-keyring>gridplus-sdk>aes-js": true, "eth-lattice-keyring>gridplus-sdk>bech32": true, "eth-lattice-keyring>gridplus-sdk>bignumber.js": true, "eth-lattice-keyring>gridplus-sdk>bitwise": true, @@ -3886,9 +3892,8 @@ "eth-lattice-keyring>gridplus-sdk>rlp": true, "eth-lattice-keyring>gridplus-sdk>secp256k1": true, "eth-lattice-keyring>gridplus-sdk>uuid": true, + "ethereumjs-util>ethereum-cryptography>bs58check": true, "ethereumjs-util>ethereum-cryptography>hash.js": true, - "ethereumjs-wallet>aes-js": true, - "ethereumjs-wallet>bs58check": true, "ganache>secp256k1>elliptic": true, "lodash": true } @@ -3936,6 +3941,11 @@ "crypto": true } }, + "eth-lattice-keyring>gridplus-sdk>aes-js": { + "globals": { + "define": true + } + }, "eth-lattice-keyring>gridplus-sdk>bignumber.js": { "globals": { "crypto": true, @@ -4069,8 +4079,8 @@ "ethereumjs-util>create-hash": true, "ethereumjs-util>ethereum-cryptography": true, "ethereumjs-util>rlp": true, - "ethereumjs-wallet>safe-buffer": true, - "ganache>secp256k1>elliptic": true + "ganache>secp256k1>elliptic": true, + "koa>content-disposition>safe-buffer": true } }, "eth-sig-util>ethereumjs-util>ethjs-util": { @@ -4150,21 +4160,21 @@ "packages": { "browserify>stream-browserify": true, "browserify>string_decoder": true, - "ethereumjs-wallet>safe-buffer": true, + "koa>content-disposition>safe-buffer": true, "pumpify>inherits": true } }, "ethereumjs-util>create-hash>md5.js": { "packages": { "ethereumjs-util>create-hash>md5.js>hash-base": true, - "ethereumjs-wallet>safe-buffer": true, + "koa>content-disposition>safe-buffer": true, "pumpify>inherits": true } }, "ethereumjs-util>create-hash>md5.js>hash-base": { "packages": { "ethereumjs-util>create-hash>md5.js>hash-base>readable-stream": true, - "ethereumjs-wallet>safe-buffer": true, + "koa>content-disposition>safe-buffer": true, "pumpify>inherits": true } }, @@ -4191,12 +4201,12 @@ "browserify>assert": true, "browserify>buffer": true, "browserify>crypto-browserify>create-hmac": true, + "ethereumjs-util>ethereum-cryptography>bs58check": true, "ethereumjs-util>ethereum-cryptography>hash.js": true, "ethereumjs-util>ethereum-cryptography>keccak": true, "ethereumjs-util>ethereum-cryptography>secp256k1": true, - "ethereumjs-wallet>bs58check": true, - "ethereumjs-wallet>randombytes": true, - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true, + "mocha>serialize-javascript>randombytes": true } }, "ethereumjs-util>ethereum-cryptography>browserify-aes": { @@ -4205,7 +4215,7 @@ "browserify>crypto-browserify>browserify-cipher>evp_bytestokey": true, "ethereumjs-util>create-hash>cipher-base": true, "ethereumjs-util>ethereum-cryptography>browserify-aes>buffer-xor": true, - "ethereumjs-wallet>safe-buffer": true, + "koa>content-disposition>safe-buffer": true, "pumpify>inherits": true } }, @@ -4214,6 +4224,18 @@ "browserify>buffer": true } }, + "ethereumjs-util>ethereum-cryptography>bs58check": { + "packages": { + "ethereumjs-util>create-hash": true, + "ethereumjs-util>ethereum-cryptography>bs58check>bs58": true, + "koa>content-disposition>safe-buffer": true + } + }, + "ethereumjs-util>ethereum-cryptography>bs58check>bs58": { + "packages": { + "@ensdomains/content-hash>multihashes>multibase>base-x": true + } + }, "ethereumjs-util>ethereum-cryptography>hash.js": { "packages": { "ganache>secp256k1>elliptic>minimalistic-assert": true, @@ -4265,78 +4287,9 @@ "browserify>browser-resolve": true } }, - "ethereumjs-wallet": { - "packages": { - "@truffle/codec>utf8": true, - "browserify>crypto-browserify": true, - "ethereumjs-wallet>aes-js": true, - "ethereumjs-wallet>bs58check": true, - "ethereumjs-wallet>ethereumjs-util": true, - "ethereumjs-wallet>randombytes": true, - "ethereumjs-wallet>safe-buffer": true, - "ethereumjs-wallet>scryptsy": true, - "ethereumjs-wallet>uuid": true - } - }, - "ethereumjs-wallet>aes-js": { - "globals": { - "define": true - } - }, - "ethereumjs-wallet>bs58check": { - "packages": { - "ethereumjs-util>create-hash": true, - "ethereumjs-wallet>bs58check>bs58": true, - "ethereumjs-wallet>safe-buffer": true - } - }, - "ethereumjs-wallet>bs58check>bs58": { - "packages": { - "ethereumjs-wallet>bs58check>bs58>base-x": true - } - }, - "ethereumjs-wallet>bs58check>bs58>base-x": { - "packages": { - "ethereumjs-wallet>safe-buffer": true - } - }, - "ethereumjs-wallet>ethereumjs-util": { - "packages": { - "bn.js": true, - "browserify>assert": true, - "browserify>buffer": true, - "eth-sig-util>ethereumjs-util>ethjs-util": true, - "ethereumjs-util>create-hash": true, - "ethereumjs-util>ethereum-cryptography": true, - "ethereumjs-util>rlp": true, - "ganache>secp256k1>elliptic": true - } - }, "ethereumjs-wallet>randombytes": { "globals": { - "crypto": true, - "msCrypto": true - }, - "packages": { - "browserify>process": true, - "ethereumjs-wallet>safe-buffer": true - } - }, - "ethereumjs-wallet>safe-buffer": { - "packages": { - "browserify>buffer": true - } - }, - "ethereumjs-wallet>scryptsy": { - "packages": { - "browserify>buffer": true, - "browserify>crypto-browserify>pbkdf2": true - } - }, - "ethereumjs-wallet>uuid": { - "globals": { - "crypto": true, - "msCrypto": true + "crypto.getRandomValues": true } }, "ethers>@ethersproject/random": { @@ -4562,6 +4515,11 @@ "readable-stream": true } }, + "koa>content-disposition>safe-buffer": { + "packages": { + "browserify>buffer": true + } + }, "koa>is-generator-function>has-tostringtag": { "packages": { "string.prototype.matchall>has-symbols": true @@ -4640,6 +4598,16 @@ "readable-stream>util-deprecate": true } }, + "mocha>serialize-javascript>randombytes": { + "globals": { + "crypto": true, + "msCrypto": true + }, + "packages": { + "browserify>process": true, + "koa>content-disposition>safe-buffer": true + } + }, "nanoid": { "globals": { "crypto": true, @@ -5395,4 +5363,4 @@ } } } -} \ No newline at end of file +} diff --git a/lavamoat/browserify/flask/policy.json b/lavamoat/browserify/flask/policy.json index 0de5f49f481a..48ca8fd9ca02 100644 --- a/lavamoat/browserify/flask/policy.json +++ b/lavamoat/browserify/flask/policy.json @@ -107,9 +107,14 @@ }, "@ensdomains/content-hash>multihashes>multibase": { "packages": { + "@ensdomains/content-hash>multihashes>multibase>base-x": true, "@ensdomains/content-hash>multihashes>web-encoding": true, - "browserify>buffer": true, - "ethereumjs-wallet>bs58check>bs58>base-x": true + "browserify>buffer": true + } + }, + "@ensdomains/content-hash>multihashes>multibase>base-x": { + "packages": { + "koa>content-disposition>safe-buffer": true } }, "@ensdomains/content-hash>multihashes>web-encoding": { @@ -513,7 +518,7 @@ "packages": { "@ngraveio/bc-ur": true, "browserify>buffer": true, - "ethereumjs-wallet>bs58check": true, + "ethereumjs-util>ethereum-cryptography>bs58check": true, "wait-on>rxjs>tslib": true } }, @@ -521,9 +526,9 @@ "packages": { "browserify>assert": true, "browserify>crypto-browserify": true, + "ethereumjs-util>ethereum-cryptography>bs58check": true, "ethereumjs-util>ethereum-cryptography>secp256k1": true, - "ethereumjs-wallet>bs58check": true, - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true } }, "@keystonehq/metamask-airgapped-keyring": { @@ -1121,7 +1126,7 @@ "@metamask/eth-snap-keyring>@metamask/eth-sig-util": true, "browserify>buffer": true, "browserify>events": true, - "ethereumjs-wallet>randombytes": true + "mocha>serialize-javascript>randombytes": true } }, "@metamask/eth-keyring-controller>@metamask/eth-simple-keyring>ethereum-cryptography": { @@ -1181,8 +1186,8 @@ "ethereumjs-util>create-hash": true, "ethereumjs-util>ethereum-cryptography": true, "ethereumjs-util>rlp": true, - "ethereumjs-wallet>safe-buffer": true, - "ganache>secp256k1>elliptic": true + "ganache>secp256k1>elliptic": true, + "koa>content-disposition>safe-buffer": true } }, "@metamask/eth-ledger-bridge-keyring>hdkey": { @@ -1191,7 +1196,7 @@ "@metamask/eth-trezor-keyring>hdkey>coinstring": true, "browserify>assert": true, "browserify>crypto-browserify": true, - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true } }, "@metamask/eth-ledger-bridge-keyring>hdkey>secp256k1": { @@ -1200,8 +1205,8 @@ "bn.js": true, "browserify>insert-module-globals>is-buffer": true, "ethereumjs-util>create-hash": true, - "ethereumjs-wallet>safe-buffer": true, - "ganache>secp256k1>elliptic": true + "ganache>secp256k1>elliptic": true, + "koa>content-disposition>safe-buffer": true } }, "@metamask/eth-snap-keyring": { @@ -1552,7 +1557,7 @@ "@metamask/eth-trezor-keyring>hdkey>secp256k1": true, "browserify>assert": true, "browserify>crypto-browserify": true, - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true } }, "@metamask/eth-trezor-keyring>hdkey>coinstring": { @@ -1568,13 +1573,13 @@ "bn.js": true, "browserify>insert-module-globals>is-buffer": true, "ethereumjs-util>create-hash": true, - "ethereumjs-wallet>safe-buffer": true, - "ganache>secp256k1>elliptic": true + "ganache>secp256k1>elliptic": true, + "koa>content-disposition>safe-buffer": true } }, "@metamask/eth-trezor-keyring>hdkey>secp256k1>bip66": { "packages": { - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true } }, "@metamask/etherscan-link": { @@ -1749,11 +1754,11 @@ "@truffle/codec>utf8": true, "browserify>buffer": true, "browserify>crypto-browserify": true, + "eth-lattice-keyring>gridplus-sdk>aes-js": true, "ethereumjs-util>ethereum-cryptography": true, + "ethereumjs-util>ethereum-cryptography>bs58check": true, "ethereumjs-util>ethereum-cryptography>scrypt-js": true, - "ethereumjs-wallet>aes-js": true, - "ethereumjs-wallet>bs58check": true, - "ethereumjs-wallet>randombytes": true, + "mocha>serialize-javascript>randombytes": true, "uuid": true } }, @@ -2995,9 +3000,9 @@ "@truffle/codec>web3-utils>ethereum-bloom-filters": true, "browserify>buffer": true, "ethereumjs-util": true, - "ethereumjs-wallet>randombytes": true, "ethjs>ethjs-unit": true, - "ethjs>number-to-bn": true + "ethjs>number-to-bn": true, + "mocha>serialize-javascript>randombytes": true } }, "@truffle/codec>web3-utils>bn.js": { @@ -3064,7 +3069,7 @@ "@truffle/decoder>@truffle/encoder>@ensdomains/ensjs>js-sha3": true, "browserify>buffer": true, "eth-ens-namehash": true, - "ethereumjs-wallet>bs58check>bs58": true + "ethereumjs-util>ethereum-cryptography>bs58check>bs58": true } }, "@truffle/decoder>@truffle/encoder>@ensdomains/ensjs>@ensdomains/address-encoder": { @@ -3097,8 +3102,8 @@ }, "@truffle/decoder>@truffle/encoder>@ensdomains/ensjs>content-hash>cids>multibase": { "packages": { - "browserify>buffer": true, - "ethereumjs-wallet>bs58check>bs58>base-x": true + "@ensdomains/content-hash>multihashes>multibase>base-x": true, + "browserify>buffer": true } }, "@truffle/decoder>@truffle/encoder>@ensdomains/ensjs>content-hash>cids>multicodec": { @@ -3122,8 +3127,8 @@ }, "@truffle/decoder>@truffle/encoder>@ensdomains/ensjs>content-hash>multihashes>multibase": { "packages": { - "browserify>buffer": true, - "ethereumjs-wallet>bs58check>bs58>base-x": true + "@ensdomains/content-hash>multihashes>multibase>base-x": true, + "browserify>buffer": true } }, "@truffle/decoder>@truffle/encoder>@ensdomains/ensjs>ethers": { @@ -3293,7 +3298,7 @@ }, "addons-linter>sha.js": { "packages": { - "ethereumjs-wallet>safe-buffer": true, + "koa>content-disposition>safe-buffer": true, "pumpify>inherits": true } }, @@ -3383,7 +3388,7 @@ "browserify>crypto-browserify>public-encrypt": true, "browserify>crypto-browserify>randomfill": true, "ethereumjs-util>create-hash": true, - "ethereumjs-wallet>randombytes": true + "mocha>serialize-javascript>randombytes": true } }, "browserify>crypto-browserify>browserify-cipher": { @@ -3410,7 +3415,7 @@ "browserify>crypto-browserify>browserify-cipher>evp_bytestokey": { "packages": { "ethereumjs-util>create-hash>md5.js": true, - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true } }, "browserify>crypto-browserify>browserify-sign": { @@ -3439,7 +3444,7 @@ "ethereumjs-util>create-hash": true, "ethereumjs-util>create-hash>cipher-base": true, "ethereumjs-util>create-hash>ripemd160": true, - "ethereumjs-wallet>safe-buffer": true, + "koa>content-disposition>safe-buffer": true, "pumpify>inherits": true } }, @@ -3448,7 +3453,7 @@ "bn.js": true, "browserify>buffer": true, "browserify>crypto-browserify>diffie-hellman>miller-rabin": true, - "ethereumjs-wallet>randombytes": true + "mocha>serialize-javascript>randombytes": true } }, "browserify>crypto-browserify>diffie-hellman>miller-rabin": { @@ -3470,7 +3475,7 @@ "browserify>process": true, "ethereumjs-util>create-hash": true, "ethereumjs-util>create-hash>ripemd160": true, - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true } }, "browserify>crypto-browserify>public-encrypt": { @@ -3480,14 +3485,14 @@ "browserify>crypto-browserify>public-encrypt>browserify-rsa": true, "browserify>crypto-browserify>public-encrypt>parse-asn1": true, "ethereumjs-util>create-hash": true, - "ethereumjs-wallet>randombytes": true + "mocha>serialize-javascript>randombytes": true } }, "browserify>crypto-browserify>public-encrypt>browserify-rsa": { "packages": { "bn.js": true, "browserify>buffer": true, - "ethereumjs-wallet>randombytes": true + "mocha>serialize-javascript>randombytes": true } }, "browserify>crypto-browserify>public-encrypt>parse-asn1": { @@ -3515,8 +3520,8 @@ }, "packages": { "browserify>process": true, - "ethereumjs-wallet>randombytes": true, - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true, + "mocha>serialize-javascript>randombytes": true } }, "browserify>events": { @@ -3601,7 +3606,7 @@ }, "browserify>string_decoder": { "packages": { - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true } }, "browserify>timers-browserify": { @@ -3877,6 +3882,7 @@ "browserify>buffer": true, "eth-lattice-keyring>gridplus-sdk>@ethereumjs/common": true, "eth-lattice-keyring>gridplus-sdk>@ethereumjs/tx": true, + "eth-lattice-keyring>gridplus-sdk>aes-js": true, "eth-lattice-keyring>gridplus-sdk>bech32": true, "eth-lattice-keyring>gridplus-sdk>bignumber.js": true, "eth-lattice-keyring>gridplus-sdk>bitwise": true, @@ -3886,9 +3892,8 @@ "eth-lattice-keyring>gridplus-sdk>rlp": true, "eth-lattice-keyring>gridplus-sdk>secp256k1": true, "eth-lattice-keyring>gridplus-sdk>uuid": true, + "ethereumjs-util>ethereum-cryptography>bs58check": true, "ethereumjs-util>ethereum-cryptography>hash.js": true, - "ethereumjs-wallet>aes-js": true, - "ethereumjs-wallet>bs58check": true, "ganache>secp256k1>elliptic": true, "lodash": true } @@ -3936,6 +3941,11 @@ "crypto": true } }, + "eth-lattice-keyring>gridplus-sdk>aes-js": { + "globals": { + "define": true + } + }, "eth-lattice-keyring>gridplus-sdk>bignumber.js": { "globals": { "crypto": true, @@ -4069,8 +4079,8 @@ "ethereumjs-util>create-hash": true, "ethereumjs-util>ethereum-cryptography": true, "ethereumjs-util>rlp": true, - "ethereumjs-wallet>safe-buffer": true, - "ganache>secp256k1>elliptic": true + "ganache>secp256k1>elliptic": true, + "koa>content-disposition>safe-buffer": true } }, "eth-sig-util>ethereumjs-util>ethjs-util": { @@ -4150,21 +4160,21 @@ "packages": { "browserify>stream-browserify": true, "browserify>string_decoder": true, - "ethereumjs-wallet>safe-buffer": true, + "koa>content-disposition>safe-buffer": true, "pumpify>inherits": true } }, "ethereumjs-util>create-hash>md5.js": { "packages": { "ethereumjs-util>create-hash>md5.js>hash-base": true, - "ethereumjs-wallet>safe-buffer": true, + "koa>content-disposition>safe-buffer": true, "pumpify>inherits": true } }, "ethereumjs-util>create-hash>md5.js>hash-base": { "packages": { "ethereumjs-util>create-hash>md5.js>hash-base>readable-stream": true, - "ethereumjs-wallet>safe-buffer": true, + "koa>content-disposition>safe-buffer": true, "pumpify>inherits": true } }, @@ -4191,12 +4201,12 @@ "browserify>assert": true, "browserify>buffer": true, "browserify>crypto-browserify>create-hmac": true, + "ethereumjs-util>ethereum-cryptography>bs58check": true, "ethereumjs-util>ethereum-cryptography>hash.js": true, "ethereumjs-util>ethereum-cryptography>keccak": true, "ethereumjs-util>ethereum-cryptography>secp256k1": true, - "ethereumjs-wallet>bs58check": true, - "ethereumjs-wallet>randombytes": true, - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true, + "mocha>serialize-javascript>randombytes": true } }, "ethereumjs-util>ethereum-cryptography>browserify-aes": { @@ -4205,7 +4215,7 @@ "browserify>crypto-browserify>browserify-cipher>evp_bytestokey": true, "ethereumjs-util>create-hash>cipher-base": true, "ethereumjs-util>ethereum-cryptography>browserify-aes>buffer-xor": true, - "ethereumjs-wallet>safe-buffer": true, + "koa>content-disposition>safe-buffer": true, "pumpify>inherits": true } }, @@ -4214,6 +4224,18 @@ "browserify>buffer": true } }, + "ethereumjs-util>ethereum-cryptography>bs58check": { + "packages": { + "ethereumjs-util>create-hash": true, + "ethereumjs-util>ethereum-cryptography>bs58check>bs58": true, + "koa>content-disposition>safe-buffer": true + } + }, + "ethereumjs-util>ethereum-cryptography>bs58check>bs58": { + "packages": { + "@ensdomains/content-hash>multihashes>multibase>base-x": true + } + }, "ethereumjs-util>ethereum-cryptography>hash.js": { "packages": { "ganache>secp256k1>elliptic>minimalistic-assert": true, @@ -4265,78 +4287,9 @@ "browserify>browser-resolve": true } }, - "ethereumjs-wallet": { - "packages": { - "@truffle/codec>utf8": true, - "browserify>crypto-browserify": true, - "ethereumjs-wallet>aes-js": true, - "ethereumjs-wallet>bs58check": true, - "ethereumjs-wallet>ethereumjs-util": true, - "ethereumjs-wallet>randombytes": true, - "ethereumjs-wallet>safe-buffer": true, - "ethereumjs-wallet>scryptsy": true, - "ethereumjs-wallet>uuid": true - } - }, - "ethereumjs-wallet>aes-js": { - "globals": { - "define": true - } - }, - "ethereumjs-wallet>bs58check": { - "packages": { - "ethereumjs-util>create-hash": true, - "ethereumjs-wallet>bs58check>bs58": true, - "ethereumjs-wallet>safe-buffer": true - } - }, - "ethereumjs-wallet>bs58check>bs58": { - "packages": { - "ethereumjs-wallet>bs58check>bs58>base-x": true - } - }, - "ethereumjs-wallet>bs58check>bs58>base-x": { - "packages": { - "ethereumjs-wallet>safe-buffer": true - } - }, - "ethereumjs-wallet>ethereumjs-util": { - "packages": { - "bn.js": true, - "browserify>assert": true, - "browserify>buffer": true, - "eth-sig-util>ethereumjs-util>ethjs-util": true, - "ethereumjs-util>create-hash": true, - "ethereumjs-util>ethereum-cryptography": true, - "ethereumjs-util>rlp": true, - "ganache>secp256k1>elliptic": true - } - }, "ethereumjs-wallet>randombytes": { "globals": { - "crypto": true, - "msCrypto": true - }, - "packages": { - "browserify>process": true, - "ethereumjs-wallet>safe-buffer": true - } - }, - "ethereumjs-wallet>safe-buffer": { - "packages": { - "browserify>buffer": true - } - }, - "ethereumjs-wallet>scryptsy": { - "packages": { - "browserify>buffer": true, - "browserify>crypto-browserify>pbkdf2": true - } - }, - "ethereumjs-wallet>uuid": { - "globals": { - "crypto": true, - "msCrypto": true + "crypto.getRandomValues": true } }, "ethers>@ethersproject/random": { @@ -4562,6 +4515,11 @@ "readable-stream": true } }, + "koa>content-disposition>safe-buffer": { + "packages": { + "browserify>buffer": true + } + }, "koa>is-generator-function>has-tostringtag": { "packages": { "string.prototype.matchall>has-symbols": true @@ -4640,6 +4598,16 @@ "readable-stream>util-deprecate": true } }, + "mocha>serialize-javascript>randombytes": { + "globals": { + "crypto": true, + "msCrypto": true + }, + "packages": { + "browserify>process": true, + "koa>content-disposition>safe-buffer": true + } + }, "nanoid": { "globals": { "crypto": true, @@ -5395,4 +5363,4 @@ } } } -} \ No newline at end of file +} diff --git a/lavamoat/browserify/main/policy.json b/lavamoat/browserify/main/policy.json index 85d4a5bf485a..f707e9c58a8b 100644 --- a/lavamoat/browserify/main/policy.json +++ b/lavamoat/browserify/main/policy.json @@ -107,9 +107,14 @@ }, "@ensdomains/content-hash>multihashes>multibase": { "packages": { + "@ensdomains/content-hash>multihashes>multibase>base-x": true, "@ensdomains/content-hash>multihashes>web-encoding": true, - "browserify>buffer": true, - "ethereumjs-wallet>bs58check>bs58>base-x": true + "browserify>buffer": true + } + }, + "@ensdomains/content-hash>multihashes>multibase>base-x": { + "packages": { + "koa>content-disposition>safe-buffer": true } }, "@ensdomains/content-hash>multihashes>web-encoding": { @@ -513,7 +518,7 @@ "packages": { "@ngraveio/bc-ur": true, "browserify>buffer": true, - "ethereumjs-wallet>bs58check": true, + "ethereumjs-util>ethereum-cryptography>bs58check": true, "wait-on>rxjs>tslib": true } }, @@ -521,9 +526,9 @@ "packages": { "browserify>assert": true, "browserify>crypto-browserify": true, + "ethereumjs-util>ethereum-cryptography>bs58check": true, "ethereumjs-util>ethereum-cryptography>secp256k1": true, - "ethereumjs-wallet>bs58check": true, - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true } }, "@keystonehq/metamask-airgapped-keyring": { @@ -1050,7 +1055,7 @@ "@metamask/eth-snap-keyring>@metamask/eth-sig-util": true, "browserify>buffer": true, "browserify>events": true, - "ethereumjs-wallet>randombytes": true + "mocha>serialize-javascript>randombytes": true } }, "@metamask/eth-keyring-controller>@metamask/eth-simple-keyring>ethereum-cryptography": { @@ -1110,8 +1115,8 @@ "ethereumjs-util>create-hash": true, "ethereumjs-util>ethereum-cryptography": true, "ethereumjs-util>rlp": true, - "ethereumjs-wallet>safe-buffer": true, - "ganache>secp256k1>elliptic": true + "ganache>secp256k1>elliptic": true, + "koa>content-disposition>safe-buffer": true } }, "@metamask/eth-ledger-bridge-keyring>hdkey": { @@ -1120,7 +1125,7 @@ "@metamask/eth-trezor-keyring>hdkey>coinstring": true, "browserify>assert": true, "browserify>crypto-browserify": true, - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true } }, "@metamask/eth-ledger-bridge-keyring>hdkey>secp256k1": { @@ -1129,8 +1134,8 @@ "bn.js": true, "browserify>insert-module-globals>is-buffer": true, "ethereumjs-util>create-hash": true, - "ethereumjs-wallet>safe-buffer": true, - "ganache>secp256k1>elliptic": true + "ganache>secp256k1>elliptic": true, + "koa>content-disposition>safe-buffer": true } }, "@metamask/eth-snap-keyring>@metamask/eth-sig-util": { @@ -1424,7 +1429,7 @@ "@metamask/eth-trezor-keyring>hdkey>secp256k1": true, "browserify>assert": true, "browserify>crypto-browserify": true, - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true } }, "@metamask/eth-trezor-keyring>hdkey>coinstring": { @@ -1440,13 +1445,13 @@ "bn.js": true, "browserify>insert-module-globals>is-buffer": true, "ethereumjs-util>create-hash": true, - "ethereumjs-wallet>safe-buffer": true, - "ganache>secp256k1>elliptic": true + "ganache>secp256k1>elliptic": true, + "koa>content-disposition>safe-buffer": true } }, "@metamask/eth-trezor-keyring>hdkey>secp256k1>bip66": { "packages": { - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true } }, "@metamask/etherscan-link": { @@ -1598,11 +1603,11 @@ "@truffle/codec>utf8": true, "browserify>buffer": true, "browserify>crypto-browserify": true, + "eth-lattice-keyring>gridplus-sdk>aes-js": true, "ethereumjs-util>ethereum-cryptography": true, + "ethereumjs-util>ethereum-cryptography>bs58check": true, "ethereumjs-util>ethereum-cryptography>scrypt-js": true, - "ethereumjs-wallet>aes-js": true, - "ethereumjs-wallet>bs58check": true, - "ethereumjs-wallet>randombytes": true, + "mocha>serialize-javascript>randombytes": true, "uuid": true } }, @@ -2499,9 +2504,9 @@ "@truffle/codec>web3-utils>ethereum-bloom-filters": true, "browserify>buffer": true, "ethereumjs-util": true, - "ethereumjs-wallet>randombytes": true, "ethjs>ethjs-unit": true, - "ethjs>number-to-bn": true + "ethjs>number-to-bn": true, + "mocha>serialize-javascript>randombytes": true } }, "@truffle/codec>web3-utils>bn.js": { @@ -2568,7 +2573,7 @@ "@truffle/decoder>@truffle/encoder>@ensdomains/ensjs>js-sha3": true, "browserify>buffer": true, "eth-ens-namehash": true, - "ethereumjs-wallet>bs58check>bs58": true + "ethereumjs-util>ethereum-cryptography>bs58check>bs58": true } }, "@truffle/decoder>@truffle/encoder>@ensdomains/ensjs>@ensdomains/address-encoder": { @@ -2601,8 +2606,8 @@ }, "@truffle/decoder>@truffle/encoder>@ensdomains/ensjs>content-hash>cids>multibase": { "packages": { - "browserify>buffer": true, - "ethereumjs-wallet>bs58check>bs58>base-x": true + "@ensdomains/content-hash>multihashes>multibase>base-x": true, + "browserify>buffer": true } }, "@truffle/decoder>@truffle/encoder>@ensdomains/ensjs>content-hash>cids>multicodec": { @@ -2626,8 +2631,8 @@ }, "@truffle/decoder>@truffle/encoder>@ensdomains/ensjs>content-hash>multihashes>multibase": { "packages": { - "browserify>buffer": true, - "ethereumjs-wallet>bs58check>bs58>base-x": true + "@ensdomains/content-hash>multihashes>multibase>base-x": true, + "browserify>buffer": true } }, "@truffle/decoder>@truffle/encoder>@ensdomains/ensjs>ethers": { @@ -2797,7 +2802,7 @@ }, "addons-linter>sha.js": { "packages": { - "ethereumjs-wallet>safe-buffer": true, + "koa>content-disposition>safe-buffer": true, "pumpify>inherits": true } }, @@ -2887,7 +2892,7 @@ "browserify>crypto-browserify>public-encrypt": true, "browserify>crypto-browserify>randomfill": true, "ethereumjs-util>create-hash": true, - "ethereumjs-wallet>randombytes": true + "mocha>serialize-javascript>randombytes": true } }, "browserify>crypto-browserify>browserify-cipher": { @@ -2914,7 +2919,7 @@ "browserify>crypto-browserify>browserify-cipher>evp_bytestokey": { "packages": { "ethereumjs-util>create-hash>md5.js": true, - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true } }, "browserify>crypto-browserify>browserify-sign": { @@ -2943,7 +2948,7 @@ "ethereumjs-util>create-hash": true, "ethereumjs-util>create-hash>cipher-base": true, "ethereumjs-util>create-hash>ripemd160": true, - "ethereumjs-wallet>safe-buffer": true, + "koa>content-disposition>safe-buffer": true, "pumpify>inherits": true } }, @@ -2952,7 +2957,7 @@ "bn.js": true, "browserify>buffer": true, "browserify>crypto-browserify>diffie-hellman>miller-rabin": true, - "ethereumjs-wallet>randombytes": true + "mocha>serialize-javascript>randombytes": true } }, "browserify>crypto-browserify>diffie-hellman>miller-rabin": { @@ -2974,7 +2979,7 @@ "browserify>process": true, "ethereumjs-util>create-hash": true, "ethereumjs-util>create-hash>ripemd160": true, - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true } }, "browserify>crypto-browserify>public-encrypt": { @@ -2984,14 +2989,14 @@ "browserify>crypto-browserify>public-encrypt>browserify-rsa": true, "browserify>crypto-browserify>public-encrypt>parse-asn1": true, "ethereumjs-util>create-hash": true, - "ethereumjs-wallet>randombytes": true + "mocha>serialize-javascript>randombytes": true } }, "browserify>crypto-browserify>public-encrypt>browserify-rsa": { "packages": { "bn.js": true, "browserify>buffer": true, - "ethereumjs-wallet>randombytes": true + "mocha>serialize-javascript>randombytes": true } }, "browserify>crypto-browserify>public-encrypt>parse-asn1": { @@ -3019,8 +3024,8 @@ }, "packages": { "browserify>process": true, - "ethereumjs-wallet>randombytes": true, - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true, + "mocha>serialize-javascript>randombytes": true } }, "browserify>events": { @@ -3105,7 +3110,7 @@ }, "browserify>string_decoder": { "packages": { - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true } }, "browserify>timers-browserify": { @@ -3381,6 +3386,7 @@ "browserify>buffer": true, "eth-lattice-keyring>gridplus-sdk>@ethereumjs/common": true, "eth-lattice-keyring>gridplus-sdk>@ethereumjs/tx": true, + "eth-lattice-keyring>gridplus-sdk>aes-js": true, "eth-lattice-keyring>gridplus-sdk>bech32": true, "eth-lattice-keyring>gridplus-sdk>bignumber.js": true, "eth-lattice-keyring>gridplus-sdk>bitwise": true, @@ -3390,9 +3396,8 @@ "eth-lattice-keyring>gridplus-sdk>rlp": true, "eth-lattice-keyring>gridplus-sdk>secp256k1": true, "eth-lattice-keyring>gridplus-sdk>uuid": true, + "ethereumjs-util>ethereum-cryptography>bs58check": true, "ethereumjs-util>ethereum-cryptography>hash.js": true, - "ethereumjs-wallet>aes-js": true, - "ethereumjs-wallet>bs58check": true, "ganache>secp256k1>elliptic": true, "lodash": true } @@ -3440,6 +3445,11 @@ "crypto": true } }, + "eth-lattice-keyring>gridplus-sdk>aes-js": { + "globals": { + "define": true + } + }, "eth-lattice-keyring>gridplus-sdk>bignumber.js": { "globals": { "crypto": true, @@ -3573,8 +3583,8 @@ "ethereumjs-util>create-hash": true, "ethereumjs-util>ethereum-cryptography": true, "ethereumjs-util>rlp": true, - "ethereumjs-wallet>safe-buffer": true, - "ganache>secp256k1>elliptic": true + "ganache>secp256k1>elliptic": true, + "koa>content-disposition>safe-buffer": true } }, "eth-sig-util>ethereumjs-util>ethjs-util": { @@ -3654,21 +3664,21 @@ "packages": { "browserify>stream-browserify": true, "browserify>string_decoder": true, - "ethereumjs-wallet>safe-buffer": true, + "koa>content-disposition>safe-buffer": true, "pumpify>inherits": true } }, "ethereumjs-util>create-hash>md5.js": { "packages": { "ethereumjs-util>create-hash>md5.js>hash-base": true, - "ethereumjs-wallet>safe-buffer": true, + "koa>content-disposition>safe-buffer": true, "pumpify>inherits": true } }, "ethereumjs-util>create-hash>md5.js>hash-base": { "packages": { "ethereumjs-util>create-hash>md5.js>hash-base>readable-stream": true, - "ethereumjs-wallet>safe-buffer": true, + "koa>content-disposition>safe-buffer": true, "pumpify>inherits": true } }, @@ -3695,12 +3705,12 @@ "browserify>assert": true, "browserify>buffer": true, "browserify>crypto-browserify>create-hmac": true, + "ethereumjs-util>ethereum-cryptography>bs58check": true, "ethereumjs-util>ethereum-cryptography>hash.js": true, "ethereumjs-util>ethereum-cryptography>keccak": true, "ethereumjs-util>ethereum-cryptography>secp256k1": true, - "ethereumjs-wallet>bs58check": true, - "ethereumjs-wallet>randombytes": true, - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true, + "mocha>serialize-javascript>randombytes": true } }, "ethereumjs-util>ethereum-cryptography>browserify-aes": { @@ -3709,7 +3719,7 @@ "browserify>crypto-browserify>browserify-cipher>evp_bytestokey": true, "ethereumjs-util>create-hash>cipher-base": true, "ethereumjs-util>ethereum-cryptography>browserify-aes>buffer-xor": true, - "ethereumjs-wallet>safe-buffer": true, + "koa>content-disposition>safe-buffer": true, "pumpify>inherits": true } }, @@ -3718,6 +3728,18 @@ "browserify>buffer": true } }, + "ethereumjs-util>ethereum-cryptography>bs58check": { + "packages": { + "ethereumjs-util>create-hash": true, + "ethereumjs-util>ethereum-cryptography>bs58check>bs58": true, + "koa>content-disposition>safe-buffer": true + } + }, + "ethereumjs-util>ethereum-cryptography>bs58check>bs58": { + "packages": { + "@ensdomains/content-hash>multihashes>multibase>base-x": true + } + }, "ethereumjs-util>ethereum-cryptography>hash.js": { "packages": { "ganache>secp256k1>elliptic>minimalistic-assert": true, @@ -3769,78 +3791,9 @@ "browserify>browser-resolve": true } }, - "ethereumjs-wallet": { - "packages": { - "@truffle/codec>utf8": true, - "browserify>crypto-browserify": true, - "ethereumjs-wallet>aes-js": true, - "ethereumjs-wallet>bs58check": true, - "ethereumjs-wallet>ethereumjs-util": true, - "ethereumjs-wallet>randombytes": true, - "ethereumjs-wallet>safe-buffer": true, - "ethereumjs-wallet>scryptsy": true, - "ethereumjs-wallet>uuid": true - } - }, - "ethereumjs-wallet>aes-js": { - "globals": { - "define": true - } - }, - "ethereumjs-wallet>bs58check": { - "packages": { - "ethereumjs-util>create-hash": true, - "ethereumjs-wallet>bs58check>bs58": true, - "ethereumjs-wallet>safe-buffer": true - } - }, - "ethereumjs-wallet>bs58check>bs58": { - "packages": { - "ethereumjs-wallet>bs58check>bs58>base-x": true - } - }, - "ethereumjs-wallet>bs58check>bs58>base-x": { - "packages": { - "ethereumjs-wallet>safe-buffer": true - } - }, - "ethereumjs-wallet>ethereumjs-util": { - "packages": { - "bn.js": true, - "browserify>assert": true, - "browserify>buffer": true, - "eth-sig-util>ethereumjs-util>ethjs-util": true, - "ethereumjs-util>create-hash": true, - "ethereumjs-util>ethereum-cryptography": true, - "ethereumjs-util>rlp": true, - "ganache>secp256k1>elliptic": true - } - }, "ethereumjs-wallet>randombytes": { "globals": { - "crypto": true, - "msCrypto": true - }, - "packages": { - "browserify>process": true, - "ethereumjs-wallet>safe-buffer": true - } - }, - "ethereumjs-wallet>safe-buffer": { - "packages": { - "browserify>buffer": true - } - }, - "ethereumjs-wallet>scryptsy": { - "packages": { - "browserify>buffer": true, - "browserify>crypto-browserify>pbkdf2": true - } - }, - "ethereumjs-wallet>uuid": { - "globals": { - "crypto": true, - "msCrypto": true + "crypto.getRandomValues": true } }, "ethers>@ethersproject/random": { @@ -4066,6 +4019,11 @@ "readable-stream": true } }, + "koa>content-disposition>safe-buffer": { + "packages": { + "browserify>buffer": true + } + }, "koa>is-generator-function>has-tostringtag": { "packages": { "string.prototype.matchall>has-symbols": true @@ -4126,6 +4084,16 @@ "Intl": true } }, + "mocha>serialize-javascript>randombytes": { + "globals": { + "crypto": true, + "msCrypto": true + }, + "packages": { + "browserify>process": true, + "koa>content-disposition>safe-buffer": true + } + }, "nanoid": { "globals": { "crypto": true, @@ -4757,4 +4725,4 @@ } } } -} \ No newline at end of file +} diff --git a/lavamoat/browserify/mmi/policy.json b/lavamoat/browserify/mmi/policy.json index 1694959e50f7..f3e937d2d1a3 100644 --- a/lavamoat/browserify/mmi/policy.json +++ b/lavamoat/browserify/mmi/policy.json @@ -107,9 +107,14 @@ }, "@ensdomains/content-hash>multihashes>multibase": { "packages": { + "@ensdomains/content-hash>multihashes>multibase>base-x": true, "@ensdomains/content-hash>multihashes>web-encoding": true, - "browserify>buffer": true, - "ethereumjs-wallet>bs58check>bs58>base-x": true + "browserify>buffer": true + } + }, + "@ensdomains/content-hash>multihashes>multibase>base-x": { + "packages": { + "koa>content-disposition>safe-buffer": true } }, "@ensdomains/content-hash>multihashes>web-encoding": { @@ -513,7 +518,7 @@ "packages": { "@ngraveio/bc-ur": true, "browserify>buffer": true, - "ethereumjs-wallet>bs58check": true, + "ethereumjs-util>ethereum-cryptography>bs58check": true, "wait-on>rxjs>tslib": true } }, @@ -521,9 +526,9 @@ "packages": { "browserify>assert": true, "browserify>crypto-browserify": true, + "ethereumjs-util>ethereum-cryptography>bs58check": true, "ethereumjs-util>ethereum-cryptography>secp256k1": true, - "ethereumjs-wallet>bs58check": true, - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true } }, "@keystonehq/metamask-airgapped-keyring": { @@ -926,7 +931,7 @@ "browserify>process": true, "browserify>stream-browserify": true, "browserify>util": true, - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true } }, "@metamask-institutional/sdk>jsonwebtoken>jws>jwa": { @@ -935,7 +940,7 @@ "@metamask-institutional/sdk>jsonwebtoken>jws>jwa>ecdsa-sig-formatter": true, "browserify>crypto-browserify": true, "browserify>util": true, - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true } }, "@metamask-institutional/sdk>jsonwebtoken>jws>jwa>buffer-equal-constant-time": { @@ -945,7 +950,7 @@ }, "@metamask-institutional/sdk>jsonwebtoken>jws>jwa>ecdsa-sig-formatter": { "packages": { - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true } }, "@metamask-institutional/transaction-update": { @@ -1278,7 +1283,7 @@ "@metamask/eth-snap-keyring>@metamask/eth-sig-util": true, "browserify>buffer": true, "browserify>events": true, - "ethereumjs-wallet>randombytes": true + "mocha>serialize-javascript>randombytes": true } }, "@metamask/eth-keyring-controller>@metamask/eth-simple-keyring>ethereum-cryptography": { @@ -1338,8 +1343,8 @@ "ethereumjs-util>create-hash": true, "ethereumjs-util>ethereum-cryptography": true, "ethereumjs-util>rlp": true, - "ethereumjs-wallet>safe-buffer": true, - "ganache>secp256k1>elliptic": true + "ganache>secp256k1>elliptic": true, + "koa>content-disposition>safe-buffer": true } }, "@metamask/eth-ledger-bridge-keyring>hdkey": { @@ -1348,7 +1353,7 @@ "@metamask/eth-trezor-keyring>hdkey>coinstring": true, "browserify>assert": true, "browserify>crypto-browserify": true, - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true } }, "@metamask/eth-ledger-bridge-keyring>hdkey>secp256k1": { @@ -1357,8 +1362,8 @@ "bn.js": true, "browserify>insert-module-globals>is-buffer": true, "ethereumjs-util>create-hash": true, - "ethereumjs-wallet>safe-buffer": true, - "ganache>secp256k1>elliptic": true + "ganache>secp256k1>elliptic": true, + "koa>content-disposition>safe-buffer": true } }, "@metamask/eth-snap-keyring>@metamask/eth-sig-util": { @@ -1652,7 +1657,7 @@ "@metamask/eth-trezor-keyring>hdkey>secp256k1": true, "browserify>assert": true, "browserify>crypto-browserify": true, - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true } }, "@metamask/eth-trezor-keyring>hdkey>coinstring": { @@ -1668,13 +1673,13 @@ "bn.js": true, "browserify>insert-module-globals>is-buffer": true, "ethereumjs-util>create-hash": true, - "ethereumjs-wallet>safe-buffer": true, - "ganache>secp256k1>elliptic": true + "ganache>secp256k1>elliptic": true, + "koa>content-disposition>safe-buffer": true } }, "@metamask/eth-trezor-keyring>hdkey>secp256k1>bip66": { "packages": { - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true } }, "@metamask/etherscan-link": { @@ -1826,11 +1831,11 @@ "@truffle/codec>utf8": true, "browserify>buffer": true, "browserify>crypto-browserify": true, + "eth-lattice-keyring>gridplus-sdk>aes-js": true, "ethereumjs-util>ethereum-cryptography": true, + "ethereumjs-util>ethereum-cryptography>bs58check": true, "ethereumjs-util>ethereum-cryptography>scrypt-js": true, - "ethereumjs-wallet>aes-js": true, - "ethereumjs-wallet>bs58check": true, - "ethereumjs-wallet>randombytes": true, + "mocha>serialize-javascript>randombytes": true, "uuid": true } }, @@ -2727,9 +2732,9 @@ "@truffle/codec>web3-utils>ethereum-bloom-filters": true, "browserify>buffer": true, "ethereumjs-util": true, - "ethereumjs-wallet>randombytes": true, "ethjs>ethjs-unit": true, - "ethjs>number-to-bn": true + "ethjs>number-to-bn": true, + "mocha>serialize-javascript>randombytes": true } }, "@truffle/codec>web3-utils>bn.js": { @@ -2796,7 +2801,7 @@ "@truffle/decoder>@truffle/encoder>@ensdomains/ensjs>js-sha3": true, "browserify>buffer": true, "eth-ens-namehash": true, - "ethereumjs-wallet>bs58check>bs58": true + "ethereumjs-util>ethereum-cryptography>bs58check>bs58": true } }, "@truffle/decoder>@truffle/encoder>@ensdomains/ensjs>@ensdomains/address-encoder": { @@ -2829,8 +2834,8 @@ }, "@truffle/decoder>@truffle/encoder>@ensdomains/ensjs>content-hash>cids>multibase": { "packages": { - "browserify>buffer": true, - "ethereumjs-wallet>bs58check>bs58>base-x": true + "@ensdomains/content-hash>multihashes>multibase>base-x": true, + "browserify>buffer": true } }, "@truffle/decoder>@truffle/encoder>@ensdomains/ensjs>content-hash>cids>multicodec": { @@ -2854,8 +2859,8 @@ }, "@truffle/decoder>@truffle/encoder>@ensdomains/ensjs>content-hash>multihashes>multibase": { "packages": { - "browserify>buffer": true, - "ethereumjs-wallet>bs58check>bs58>base-x": true + "@ensdomains/content-hash>multihashes>multibase>base-x": true, + "browserify>buffer": true } }, "@truffle/decoder>@truffle/encoder>@ensdomains/ensjs>ethers": { @@ -3025,7 +3030,7 @@ }, "addons-linter>sha.js": { "packages": { - "ethereumjs-wallet>safe-buffer": true, + "koa>content-disposition>safe-buffer": true, "pumpify>inherits": true } }, @@ -3115,7 +3120,7 @@ "browserify>crypto-browserify>public-encrypt": true, "browserify>crypto-browserify>randomfill": true, "ethereumjs-util>create-hash": true, - "ethereumjs-wallet>randombytes": true + "mocha>serialize-javascript>randombytes": true } }, "browserify>crypto-browserify>browserify-cipher": { @@ -3142,7 +3147,7 @@ "browserify>crypto-browserify>browserify-cipher>evp_bytestokey": { "packages": { "ethereumjs-util>create-hash>md5.js": true, - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true } }, "browserify>crypto-browserify>browserify-sign": { @@ -3171,7 +3176,7 @@ "ethereumjs-util>create-hash": true, "ethereumjs-util>create-hash>cipher-base": true, "ethereumjs-util>create-hash>ripemd160": true, - "ethereumjs-wallet>safe-buffer": true, + "koa>content-disposition>safe-buffer": true, "pumpify>inherits": true } }, @@ -3180,7 +3185,7 @@ "bn.js": true, "browserify>buffer": true, "browserify>crypto-browserify>diffie-hellman>miller-rabin": true, - "ethereumjs-wallet>randombytes": true + "mocha>serialize-javascript>randombytes": true } }, "browserify>crypto-browserify>diffie-hellman>miller-rabin": { @@ -3202,7 +3207,7 @@ "browserify>process": true, "ethereumjs-util>create-hash": true, "ethereumjs-util>create-hash>ripemd160": true, - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true } }, "browserify>crypto-browserify>public-encrypt": { @@ -3212,14 +3217,14 @@ "browserify>crypto-browserify>public-encrypt>browserify-rsa": true, "browserify>crypto-browserify>public-encrypt>parse-asn1": true, "ethereumjs-util>create-hash": true, - "ethereumjs-wallet>randombytes": true + "mocha>serialize-javascript>randombytes": true } }, "browserify>crypto-browserify>public-encrypt>browserify-rsa": { "packages": { "bn.js": true, "browserify>buffer": true, - "ethereumjs-wallet>randombytes": true + "mocha>serialize-javascript>randombytes": true } }, "browserify>crypto-browserify>public-encrypt>parse-asn1": { @@ -3247,8 +3252,8 @@ }, "packages": { "browserify>process": true, - "ethereumjs-wallet>randombytes": true, - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true, + "mocha>serialize-javascript>randombytes": true } }, "browserify>events": { @@ -3333,7 +3338,7 @@ }, "browserify>string_decoder": { "packages": { - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true } }, "browserify>timers-browserify": { @@ -3609,6 +3614,7 @@ "browserify>buffer": true, "eth-lattice-keyring>gridplus-sdk>@ethereumjs/common": true, "eth-lattice-keyring>gridplus-sdk>@ethereumjs/tx": true, + "eth-lattice-keyring>gridplus-sdk>aes-js": true, "eth-lattice-keyring>gridplus-sdk>bech32": true, "eth-lattice-keyring>gridplus-sdk>bignumber.js": true, "eth-lattice-keyring>gridplus-sdk>bitwise": true, @@ -3618,9 +3624,8 @@ "eth-lattice-keyring>gridplus-sdk>rlp": true, "eth-lattice-keyring>gridplus-sdk>secp256k1": true, "eth-lattice-keyring>gridplus-sdk>uuid": true, + "ethereumjs-util>ethereum-cryptography>bs58check": true, "ethereumjs-util>ethereum-cryptography>hash.js": true, - "ethereumjs-wallet>aes-js": true, - "ethereumjs-wallet>bs58check": true, "ganache>secp256k1>elliptic": true, "lodash": true } @@ -3668,6 +3673,11 @@ "crypto": true } }, + "eth-lattice-keyring>gridplus-sdk>aes-js": { + "globals": { + "define": true + } + }, "eth-lattice-keyring>gridplus-sdk>bignumber.js": { "globals": { "crypto": true, @@ -3801,8 +3811,8 @@ "ethereumjs-util>create-hash": true, "ethereumjs-util>ethereum-cryptography": true, "ethereumjs-util>rlp": true, - "ethereumjs-wallet>safe-buffer": true, - "ganache>secp256k1>elliptic": true + "ganache>secp256k1>elliptic": true, + "koa>content-disposition>safe-buffer": true } }, "eth-sig-util>ethereumjs-util>ethjs-util": { @@ -3882,21 +3892,21 @@ "packages": { "browserify>stream-browserify": true, "browserify>string_decoder": true, - "ethereumjs-wallet>safe-buffer": true, + "koa>content-disposition>safe-buffer": true, "pumpify>inherits": true } }, "ethereumjs-util>create-hash>md5.js": { "packages": { "ethereumjs-util>create-hash>md5.js>hash-base": true, - "ethereumjs-wallet>safe-buffer": true, + "koa>content-disposition>safe-buffer": true, "pumpify>inherits": true } }, "ethereumjs-util>create-hash>md5.js>hash-base": { "packages": { "ethereumjs-util>create-hash>md5.js>hash-base>readable-stream": true, - "ethereumjs-wallet>safe-buffer": true, + "koa>content-disposition>safe-buffer": true, "pumpify>inherits": true } }, @@ -3923,12 +3933,12 @@ "browserify>assert": true, "browserify>buffer": true, "browserify>crypto-browserify>create-hmac": true, + "ethereumjs-util>ethereum-cryptography>bs58check": true, "ethereumjs-util>ethereum-cryptography>hash.js": true, "ethereumjs-util>ethereum-cryptography>keccak": true, "ethereumjs-util>ethereum-cryptography>secp256k1": true, - "ethereumjs-wallet>bs58check": true, - "ethereumjs-wallet>randombytes": true, - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true, + "mocha>serialize-javascript>randombytes": true } }, "ethereumjs-util>ethereum-cryptography>browserify-aes": { @@ -3937,7 +3947,7 @@ "browserify>crypto-browserify>browserify-cipher>evp_bytestokey": true, "ethereumjs-util>create-hash>cipher-base": true, "ethereumjs-util>ethereum-cryptography>browserify-aes>buffer-xor": true, - "ethereumjs-wallet>safe-buffer": true, + "koa>content-disposition>safe-buffer": true, "pumpify>inherits": true } }, @@ -3946,6 +3956,18 @@ "browserify>buffer": true } }, + "ethereumjs-util>ethereum-cryptography>bs58check": { + "packages": { + "ethereumjs-util>create-hash": true, + "ethereumjs-util>ethereum-cryptography>bs58check>bs58": true, + "koa>content-disposition>safe-buffer": true + } + }, + "ethereumjs-util>ethereum-cryptography>bs58check>bs58": { + "packages": { + "@ensdomains/content-hash>multihashes>multibase>base-x": true + } + }, "ethereumjs-util>ethereum-cryptography>hash.js": { "packages": { "ganache>secp256k1>elliptic>minimalistic-assert": true, @@ -3997,78 +4019,9 @@ "browserify>browser-resolve": true } }, - "ethereumjs-wallet": { - "packages": { - "@truffle/codec>utf8": true, - "browserify>crypto-browserify": true, - "ethereumjs-wallet>aes-js": true, - "ethereumjs-wallet>bs58check": true, - "ethereumjs-wallet>ethereumjs-util": true, - "ethereumjs-wallet>randombytes": true, - "ethereumjs-wallet>safe-buffer": true, - "ethereumjs-wallet>scryptsy": true, - "ethereumjs-wallet>uuid": true - } - }, - "ethereumjs-wallet>aes-js": { - "globals": { - "define": true - } - }, - "ethereumjs-wallet>bs58check": { - "packages": { - "ethereumjs-util>create-hash": true, - "ethereumjs-wallet>bs58check>bs58": true, - "ethereumjs-wallet>safe-buffer": true - } - }, - "ethereumjs-wallet>bs58check>bs58": { - "packages": { - "ethereumjs-wallet>bs58check>bs58>base-x": true - } - }, - "ethereumjs-wallet>bs58check>bs58>base-x": { - "packages": { - "ethereumjs-wallet>safe-buffer": true - } - }, - "ethereumjs-wallet>ethereumjs-util": { - "packages": { - "bn.js": true, - "browserify>assert": true, - "browserify>buffer": true, - "eth-sig-util>ethereumjs-util>ethjs-util": true, - "ethereumjs-util>create-hash": true, - "ethereumjs-util>ethereum-cryptography": true, - "ethereumjs-util>rlp": true, - "ganache>secp256k1>elliptic": true - } - }, "ethereumjs-wallet>randombytes": { "globals": { - "crypto": true, - "msCrypto": true - }, - "packages": { - "browserify>process": true, - "ethereumjs-wallet>safe-buffer": true - } - }, - "ethereumjs-wallet>safe-buffer": { - "packages": { - "browserify>buffer": true - } - }, - "ethereumjs-wallet>scryptsy": { - "packages": { - "browserify>buffer": true, - "browserify>crypto-browserify>pbkdf2": true - } - }, - "ethereumjs-wallet>uuid": { - "globals": { - "crypto": true, - "msCrypto": true + "crypto.getRandomValues": true } }, "ethers>@ethersproject/random": { @@ -4294,6 +4247,11 @@ "readable-stream": true } }, + "koa>content-disposition>safe-buffer": { + "packages": { + "browserify>buffer": true + } + }, "koa>is-generator-function>has-tostringtag": { "packages": { "string.prototype.matchall>has-symbols": true @@ -4354,6 +4312,16 @@ "Intl": true } }, + "mocha>serialize-javascript>randombytes": { + "globals": { + "crypto": true, + "msCrypto": true + }, + "packages": { + "browserify>process": true, + "koa>content-disposition>safe-buffer": true + } + }, "nanoid": { "globals": { "crypto": true, @@ -4985,4 +4953,4 @@ } } } -} \ No newline at end of file +} diff --git a/lavamoat/build-system/policy.json b/lavamoat/build-system/policy.json index c06248a42fb5..a32709f36445 100644 --- a/lavamoat/build-system/policy.json +++ b/lavamoat/build-system/policy.json @@ -1730,7 +1730,7 @@ "@lavamoat/lavapack>umd": true, "browserify>JSONStream": true, "browserify>browser-pack>through2": true, - "ethereumjs-wallet>safe-buffer": true, + "koa>content-disposition>safe-buffer": true, "watchify>defined": true } }, @@ -1960,7 +1960,7 @@ }, "browserify>string_decoder": { "packages": { - "ethereumjs-wallet>safe-buffer": true + "koa>content-disposition>safe-buffer": true } }, "browserify>syntax-error": { @@ -3215,11 +3215,6 @@ "eslint>strip-ansi>ansi-regex": true } }, - "ethereumjs-wallet>safe-buffer": { - "builtin": { - "buffer": true - } - }, "fancy-log": { "builtin": { "console.Console": true @@ -6002,9 +5997,9 @@ }, "gulp>vinyl-fs>remove-bom-stream": { "packages": { - "ethereumjs-wallet>safe-buffer": true, "gulp>vinyl-fs>remove-bom-buffer": true, - "gulp>vinyl-fs>remove-bom-stream>through2": true + "gulp>vinyl-fs>remove-bom-stream>through2": true, + "koa>content-disposition>safe-buffer": true } }, "gulp>vinyl-fs>remove-bom-stream>through2": { @@ -6104,10 +6099,9 @@ "process": true } }, - "jsdom>acorn": { - "globals": { - "console": true, - "define": true + "koa>content-disposition>safe-buffer": { + "builtin": { + "buffer": true } }, "koa>is-generator-function>has-tostringtag": { @@ -8774,7 +8768,7 @@ "util.inherits": true }, "packages": { - "ethereumjs-wallet>safe-buffer": true, + "koa>content-disposition>safe-buffer": true, "readable-stream": true } }, @@ -9021,4 +9015,4 @@ } } } -} \ No newline at end of file +} diff --git a/package.json b/package.json index df0f17b4792d..c7751da090b8 100644 --- a/package.json +++ b/package.json @@ -308,7 +308,6 @@ "ethereum-ens-network-map": "^1.0.2", "ethereumjs-abi": "^0.6.4", "ethereumjs-util": "^7.0.10", - "ethereumjs-wallet": "^0.6.4", "ethjs": "^0.4.0", "ethjs-contract": "^0.2.3", "ethjs-query": "^0.3.4", diff --git a/ui/components/multichain/import-account/import-account.js b/ui/components/multichain/import-account/import-account.js index 478a2e3acba1..6b266425b0af 100644 --- a/ui/components/multichain/import-account/import-account.js +++ b/ui/components/multichain/import-account/import-account.js @@ -79,7 +79,7 @@ export const ImportAccount = ({ onActionComplete }) => { } function getLoadingMessage(strategy) { - if (strategy === 'JSON File') { + if (strategy === 'json') { return ( <> diff --git a/ui/components/multichain/import-account/json.js b/ui/components/multichain/import-account/json.js index 7dd9e0235502..8ba5538323e4 100644 --- a/ui/components/multichain/import-account/json.js +++ b/ui/components/multichain/import-account/json.js @@ -46,7 +46,7 @@ export default function JsonImportSubview({ if (isPrimaryDisabled) { displayWarning(t('needImportFile')); } else { - importAccountFunc('JSON File', [fileContents, password]); + importAccountFunc('json', [fileContents, password]); } } diff --git a/ui/components/multichain/import-account/json.test.tsx b/ui/components/multichain/import-account/json.test.tsx index 26795e830185..5798b68f30dd 100644 --- a/ui/components/multichain/import-account/json.test.tsx +++ b/ui/components/multichain/import-account/json.test.tsx @@ -63,7 +63,7 @@ describe('Json', () => { fireEvent.click(importButton); await waitFor(() => { - expect(mockImportFunc).toHaveBeenCalledWith('JSON File', ['0', '']); + expect(mockImportFunc).toHaveBeenCalledWith('json', ['0', '']); }); }); @@ -102,10 +102,7 @@ describe('Json', () => { fireEvent.click(importButton); await waitFor(() => { - expect(mockImportFunc).toHaveBeenCalledWith('JSON File', [ - '0', - 'password', - ]); + expect(mockImportFunc).toHaveBeenCalledWith('json', ['0', 'password']); }); }); }); diff --git a/ui/components/multichain/import-account/private-key.js b/ui/components/multichain/import-account/private-key.js index 958b4ca8746a..ba0640d2e5f6 100644 --- a/ui/components/multichain/import-account/private-key.js +++ b/ui/components/multichain/import-account/private-key.js @@ -31,7 +31,7 @@ export default function PrivateKeyImportView({ } function _importAccountFunc() { - importAccountFunc('Private Key', [privateKey]); + importAccountFunc('privateKey', [privateKey]); } return ( diff --git a/yarn.lock b/yarn.lock index 06d73141b494..48028f9057ed 100644 --- a/yarn.lock +++ b/yarn.lock @@ -16219,23 +16219,6 @@ __metadata: languageName: node linkType: hard -"ethereumjs-wallet@npm:^0.6.4": - version: 0.6.5 - resolution: "ethereumjs-wallet@npm:0.6.5" - dependencies: - aes-js: ^3.1.1 - bs58check: ^2.1.2 - ethereum-cryptography: ^0.1.3 - ethereumjs-util: ^6.0.0 - randombytes: ^2.0.6 - safe-buffer: ^5.1.2 - scryptsy: ^1.2.1 - utf8: ^3.0.0 - uuid: ^3.3.2 - checksum: 54a9cc8beb8ea55e9be9b024b6ed09349423145fd8c49b8662d60d9258039330163c830fec055f92becc71ea54b430d2ef29f6bd73fa49d93ea854af01d13e58 - languageName: node - linkType: hard - "ethereumjs-wallet@npm:^1.0.1": version: 1.0.2 resolution: "ethereumjs-wallet@npm:1.0.2" @@ -24423,7 +24406,6 @@ __metadata: ethereum-ens-network-map: ^1.0.2 ethereumjs-abi: ^0.6.4 ethereumjs-util: ^7.0.10 - ethereumjs-wallet: ^0.6.4 ethjs: ^0.4.0 ethjs-contract: ^0.2.3 ethjs-query: ^0.3.4 @@ -28640,7 +28622,7 @@ __metadata: languageName: node linkType: hard -"randombytes@npm:2.1.0, randombytes@npm:^2.0.0, randombytes@npm:^2.0.1, randombytes@npm:^2.0.5, randombytes@npm:^2.0.6, randombytes@npm:^2.1.0": +"randombytes@npm:2.1.0, randombytes@npm:^2.0.0, randombytes@npm:^2.0.1, randombytes@npm:^2.0.5, randombytes@npm:^2.1.0": version: 2.1.0 resolution: "randombytes@npm:2.1.0" dependencies: @@ -30761,15 +30743,6 @@ __metadata: languageName: node linkType: hard -"scryptsy@npm:^1.2.1": - version: 1.2.1 - resolution: "scryptsy@npm:1.2.1" - dependencies: - pbkdf2: ^3.0.3 - checksum: e09cf253b0974171bbcb77fa46405bb07cb8e241e2851fc5f23b38526a33105f0f7748a4d60027642f40bd4518ada30b1dce5005c05d17a25cbcefad371d4259 - languageName: node - linkType: hard - "scss-parser@npm:^1.0.4": version: 1.0.5 resolution: "scss-parser@npm:1.0.5"