diff --git a/.pnp.cjs b/.pnp.cjs index b6252dea..ac57de13 100755 --- a/.pnp.cjs +++ b/.pnp.cjs @@ -32,6 +32,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@istanbuljs/nyc-config-typescript", "virtual:f7d0909feb02b646d27a0e896ef65deae6e18a1bdcdc256a3ced17da599c2096990b6685816541f07eefa020178992c6dd347b7d71e3628ea412034fefb1952a#npm:1.0.1"],\ ["@types/bn.js", "npm:5.1.0"],\ ["@types/chai", "npm:4.2.21"],\ + ["@types/human-crypto-keys", "npm:0.1.2"],\ ["@types/jwk-to-pem", "npm:2.0.0"],\ ["@types/lodash", "npm:4.14.182"],\ ["@types/mime-types", "npm:2.1.0"],\ @@ -48,7 +49,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@typescript-eslint/parser", "virtual:f7d0909feb02b646d27a0e896ef65deae6e18a1bdcdc256a3ced17da599c2096990b6685816541f07eefa020178992c6dd347b7d71e3628ea412034fefb1952a#npm:6.2.1"],\ ["arbundles", "npm:0.6.19"],\ ["arweave", "npm:1.11.4"],\ - ["arweave-mnemonic-keys", "npm:0.0.9"],\ ["axios", "npm:0.21.4"],\ ["axios-retry", "npm:3.6.0"],\ ["base64-js", "npm:1.5.1"],\ @@ -60,6 +60,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["eslint-plugin-prettier", "virtual:f7d0909feb02b646d27a0e896ef65deae6e18a1bdcdc256a3ced17da599c2096990b6685816541f07eefa020178992c6dd347b7d71e3628ea412034fefb1952a#npm:3.3.1"],\ ["espower-typescript", "virtual:f7d0909feb02b646d27a0e896ef65deae6e18a1bdcdc256a3ced17da599c2096990b6685816541f07eefa020178992c6dd347b7d71e3628ea412034fefb1952a#npm:10.0.0"],\ ["futoin-hkdf", "npm:1.3.3"],\ + ["human-crypto-keys", "https://github.com/ardriveapp/js-human-crypto-keys.git#commit=dcfde03a4d45fb390dc480950f6bf034a16b4cc9"],\ ["husky", "npm:6.0.0"],\ ["jwk-to-pem", "npm:2.0.4"],\ ["lint-staged", "npm:11.0.0"],\ @@ -1087,98 +1088,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["@protobufjs/aspromise", [\ - ["npm:1.1.2", {\ - "packageLocation": "./.yarn/cache/@protobufjs-aspromise-npm-1.1.2-71d00b938f-011fe7ef08.zip/node_modules/@protobufjs/aspromise/",\ - "packageDependencies": [\ - ["@protobufjs/aspromise", "npm:1.1.2"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ - ["@protobufjs/base64", [\ - ["npm:1.1.2", {\ - "packageLocation": "./.yarn/cache/@protobufjs-base64-npm-1.1.2-cd8ca6814a-67173ac34d.zip/node_modules/@protobufjs/base64/",\ - "packageDependencies": [\ - ["@protobufjs/base64", "npm:1.1.2"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ - ["@protobufjs/codegen", [\ - ["npm:2.0.4", {\ - "packageLocation": "./.yarn/cache/@protobufjs-codegen-npm-2.0.4-36e188bbe6-59240c850b.zip/node_modules/@protobufjs/codegen/",\ - "packageDependencies": [\ - ["@protobufjs/codegen", "npm:2.0.4"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ - ["@protobufjs/eventemitter", [\ - ["npm:1.1.0", {\ - "packageLocation": "./.yarn/cache/@protobufjs-eventemitter-npm-1.1.0-029cc7d431-0369163a3d.zip/node_modules/@protobufjs/eventemitter/",\ - "packageDependencies": [\ - ["@protobufjs/eventemitter", "npm:1.1.0"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ - ["@protobufjs/fetch", [\ - ["npm:1.1.0", {\ - "packageLocation": "./.yarn/cache/@protobufjs-fetch-npm-1.1.0-ca857b7df4-3fce7e09eb.zip/node_modules/@protobufjs/fetch/",\ - "packageDependencies": [\ - ["@protobufjs/fetch", "npm:1.1.0"],\ - ["@protobufjs/aspromise", "npm:1.1.2"],\ - ["@protobufjs/inquire", "npm:1.1.0"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ - ["@protobufjs/float", [\ - ["npm:1.0.2", {\ - "packageLocation": "./.yarn/cache/@protobufjs-float-npm-1.0.2-5678f64d08-5781e12412.zip/node_modules/@protobufjs/float/",\ - "packageDependencies": [\ - ["@protobufjs/float", "npm:1.0.2"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ - ["@protobufjs/inquire", [\ - ["npm:1.1.0", {\ - "packageLocation": "./.yarn/cache/@protobufjs-inquire-npm-1.1.0-3c7759e9ce-ca06f02eaf.zip/node_modules/@protobufjs/inquire/",\ - "packageDependencies": [\ - ["@protobufjs/inquire", "npm:1.1.0"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ - ["@protobufjs/path", [\ - ["npm:1.1.2", {\ - "packageLocation": "./.yarn/cache/@protobufjs-path-npm-1.1.2-641d08de76-856eeb532b.zip/node_modules/@protobufjs/path/",\ - "packageDependencies": [\ - ["@protobufjs/path", "npm:1.1.2"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ - ["@protobufjs/pool", [\ - ["npm:1.1.0", {\ - "packageLocation": "./.yarn/cache/@protobufjs-pool-npm-1.1.0-47a76f96a1-d6a34fbbd2.zip/node_modules/@protobufjs/pool/",\ - "packageDependencies": [\ - ["@protobufjs/pool", "npm:1.1.0"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ - ["@protobufjs/utf8", [\ - ["npm:1.1.0", {\ - "packageLocation": "./.yarn/cache/@protobufjs-utf8-npm-1.1.0-02c590807c-f9bf3163d1.zip/node_modules/@protobufjs/utf8/",\ - "packageDependencies": [\ - ["@protobufjs/utf8", "npm:1.1.0"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["@randlabs/communication-bridge", [\ ["npm:1.0.0", {\ "packageLocation": "./.yarn/cache/@randlabs-communication-bridge-npm-1.0.0-90958ec1f4-fe32ac0dcd.zip/node_modules/@randlabs/communication-bridge/",\ @@ -1419,6 +1328,15 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ + ["@types/human-crypto-keys", [\ + ["npm:0.1.2", {\ + "packageLocation": "./.yarn/cache/@types-human-crypto-keys-npm-0.1.2-13d56b7661-967ca0d91c.zip/node_modules/@types/human-crypto-keys/",\ + "packageDependencies": [\ + ["@types/human-crypto-keys", "npm:0.1.2"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ ["@types/inquirer", [\ ["npm:8.2.1", {\ "packageLocation": "./.yarn/cache/@types-inquirer-npm-8.2.1-b3593fd8cc-5362d0b1cb.zip/node_modules/@types/inquirer/",\ @@ -1457,15 +1375,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["@types/long", [\ - ["npm:4.0.1", {\ - "packageLocation": "./.yarn/cache/@types-long-npm-4.0.1-022c8b6e77-ff9653c33f.zip/node_modules/@types/long/",\ - "packageDependencies": [\ - ["@types/long", "npm:4.0.1"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["@types/mime-types", [\ ["npm:2.1.0", {\ "packageLocation": "./.yarn/cache/@types-mime-types-npm-2.1.0-33f410f277-69b593ae33.zip/node_modules/@types/mime-types/",\ @@ -2221,6 +2130,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@istanbuljs/nyc-config-typescript", "virtual:f7d0909feb02b646d27a0e896ef65deae6e18a1bdcdc256a3ced17da599c2096990b6685816541f07eefa020178992c6dd347b7d71e3628ea412034fefb1952a#npm:1.0.1"],\ ["@types/bn.js", "npm:5.1.0"],\ ["@types/chai", "npm:4.2.21"],\ + ["@types/human-crypto-keys", "npm:0.1.2"],\ ["@types/jwk-to-pem", "npm:2.0.0"],\ ["@types/lodash", "npm:4.14.182"],\ ["@types/mime-types", "npm:2.1.0"],\ @@ -2237,7 +2147,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@typescript-eslint/parser", "virtual:f7d0909feb02b646d27a0e896ef65deae6e18a1bdcdc256a3ced17da599c2096990b6685816541f07eefa020178992c6dd347b7d71e3628ea412034fefb1952a#npm:6.2.1"],\ ["arbundles", "npm:0.6.19"],\ ["arweave", "npm:1.11.4"],\ - ["arweave-mnemonic-keys", "npm:0.0.9"],\ ["axios", "npm:0.21.4"],\ ["axios-retry", "npm:3.6.0"],\ ["base64-js", "npm:1.5.1"],\ @@ -2249,6 +2158,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["eslint-plugin-prettier", "virtual:f7d0909feb02b646d27a0e896ef65deae6e18a1bdcdc256a3ced17da599c2096990b6685816541f07eefa020178992c6dd347b7d71e3628ea412034fefb1952a#npm:3.3.1"],\ ["espower-typescript", "virtual:f7d0909feb02b646d27a0e896ef65deae6e18a1bdcdc256a3ced17da599c2096990b6685816541f07eefa020178992c6dd347b7d71e3628ea412034fefb1952a#npm:10.0.0"],\ ["futoin-hkdf", "npm:1.3.3"],\ + ["human-crypto-keys", "https://github.com/ardriveapp/js-human-crypto-keys.git#commit=dcfde03a4d45fb390dc480950f6bf034a16b4cc9"],\ ["husky", "npm:6.0.0"],\ ["jwk-to-pem", "npm:2.0.4"],\ ["lint-staged", "npm:11.0.0"],\ @@ -2360,17 +2270,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["arweave-mnemonic-keys", [\ - ["npm:0.0.9", {\ - "packageLocation": "./.yarn/cache/arweave-mnemonic-keys-npm-0.0.9-d1e53ee8b7-9fda19e677.zip/node_modules/arweave-mnemonic-keys/",\ - "packageDependencies": [\ - ["arweave-mnemonic-keys", "npm:0.0.9"],\ - ["human-crypto-keys", "npm:0.1.4"],\ - ["libp2p-crypto", "npm:0.19.7"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["arweave-stream-tx", [\ ["npm:1.1.0", {\ "packageLocation": "./.yarn/cache/arweave-stream-tx-npm-1.1.0-a4a95cc9ed-86c9f76151.zip/node_modules/arweave-stream-tx/",\ @@ -2616,10 +2515,10 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { }]\ ]],\ ["bip39", [\ - ["npm:3.0.4", {\ - "packageLocation": "./.yarn/cache/bip39-npm-3.0.4-7c69c9182f-79ce1600a0.zip/node_modules/bip39/",\ + ["npm:3.0.2", {\ + "packageLocation": "./.yarn/cache/bip39-npm-3.0.2-32369862f4-71798582b4.zip/node_modules/bip39/",\ "packageDependencies": [\ - ["bip39", "npm:3.0.4"],\ + ["bip39", "npm:3.0.2"],\ ["@types/node", "npm:11.11.6"],\ ["create-hash", "npm:1.2.0"],\ ["pbkdf2", "npm:3.1.2"],\ @@ -3676,15 +3575,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["err-code", [\ - ["npm:3.0.1", {\ - "packageLocation": "./.yarn/cache/err-code-npm-3.0.1-3a0dc5fc51-aede1f1d5e.zip/node_modules/err-code/",\ - "packageDependencies": [\ - ["err-code", "npm:3.0.1"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["error-ex", [\ ["npm:1.3.2", {\ "packageLocation": "./.yarn/cache/error-ex-npm-1.3.2-5654f80c0f-c1c2b8b65f.zip/node_modules/error-ex/",\ @@ -4291,15 +4181,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["events", [\ - ["npm:3.3.0", {\ - "packageLocation": "./.yarn/cache/events-npm-3.3.0-c280bc7e48-f6f487ad21.zip/node_modules/events/",\ - "packageDependencies": [\ - ["events", "npm:3.3.0"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["execa", [\ ["npm:5.0.0", {\ "packageLocation": "./.yarn/cache/execa-npm-5.0.0-4ee568fb49-a044367ebd.zip/node_modules/execa/",\ @@ -5129,11 +5010,11 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { }]\ ]],\ ["human-crypto-keys", [\ - ["npm:0.1.4", {\ - "packageLocation": "./.yarn/cache/human-crypto-keys-npm-0.1.4-352fe0a6a6-bdfbdac9a8.zip/node_modules/human-crypto-keys/",\ + ["https://github.com/ardriveapp/js-human-crypto-keys.git#commit=dcfde03a4d45fb390dc480950f6bf034a16b4cc9", {\ + "packageLocation": "./.yarn/cache/human-crypto-keys-https-f38e7cd903-1b3cfe1723.zip/node_modules/human-crypto-keys/",\ "packageDependencies": [\ - ["human-crypto-keys", "npm:0.1.4"],\ - ["bip39", "npm:3.0.4"],\ + ["human-crypto-keys", "https://github.com/ardriveapp/js-human-crypto-keys.git#commit=dcfde03a4d45fb390dc480950f6bf034a16b4cc9"],\ + ["bip39", "npm:3.0.2"],\ ["crypto-key-composer", "npm:0.1.3"],\ ["hash.js", "npm:1.1.7"],\ ["hmac-drbg", "npm:1.0.1"],\ @@ -5639,17 +5520,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["iso-random-stream", [\ - ["npm:2.0.0", {\ - "packageLocation": "./.yarn/cache/iso-random-stream-npm-2.0.0-bbb11744dc-3e8d6ca953.zip/node_modules/iso-random-stream/",\ - "packageDependencies": [\ - ["iso-random-stream", "npm:2.0.0"],\ - ["events", "npm:3.3.0"],\ - ["readable-stream", "npm:3.6.0"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["isobject", [\ ["npm:3.0.1", {\ "packageLocation": "./.yarn/cache/isobject-npm-3.0.1-8145901fd2-db85c4c970.zip/node_modules/isobject/",\ @@ -6008,15 +5878,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["keypair", [\ - ["npm:1.0.4", {\ - "packageLocation": "./.yarn/cache/keypair-npm-1.0.4-799f370fdf-7c91627416.zip/node_modules/keypair/",\ - "packageDependencies": [\ - ["keypair", "npm:1.0.4"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["kind-of", [\ ["npm:6.0.3", {\ "packageLocation": "./.yarn/cache/kind-of-npm-6.0.3-ab15f36220-3ab01e7b1d.zip/node_modules/kind-of/",\ @@ -6046,26 +5907,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["libp2p-crypto", [\ - ["npm:0.19.7", {\ - "packageLocation": "./.yarn/cache/libp2p-crypto-npm-0.19.7-6963e32764-d533395309.zip/node_modules/libp2p-crypto/",\ - "packageDependencies": [\ - ["libp2p-crypto", "npm:0.19.7"],\ - ["err-code", "npm:3.0.1"],\ - ["is-typedarray", "npm:1.0.0"],\ - ["iso-random-stream", "npm:2.0.0"],\ - ["keypair", "npm:1.0.4"],\ - ["multiformats", "npm:9.4.10"],\ - ["node-forge", "npm:0.10.0"],\ - ["pem-jwk", "npm:2.0.0"],\ - ["protobufjs", "npm:6.11.2"],\ - ["secp256k1", "npm:4.0.2"],\ - ["uint8arrays", "npm:3.0.0"],\ - ["ursa-optional", "npm:0.10.2"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["lines-and-columns", [\ ["npm:1.1.6", {\ "packageLocation": "./.yarn/cache/lines-and-columns-npm-1.1.6-23e74fab67-198a5436b1.zip/node_modules/lines-and-columns/",\ @@ -6234,15 +6075,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["long", [\ - ["npm:4.0.0", {\ - "packageLocation": "./.yarn/cache/long-npm-4.0.0-ecd96a31ed-16afbe8f74.zip/node_modules/long/",\ - "packageDependencies": [\ - ["long", "npm:4.0.0"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["lru-cache", [\ ["npm:6.0.0", {\ "packageLocation": "./.yarn/cache/lru-cache-npm-6.0.0-b4c8668fe1-f97f499f89.zip/node_modules/lru-cache/",\ @@ -6540,15 +6372,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["multiformats", [\ - ["npm:9.4.10", {\ - "packageLocation": "./.yarn/cache/multiformats-npm-9.4.10-4fe8ac5e23-57093ef493.zip/node_modules/multiformats/",\ - "packageDependencies": [\ - ["multiformats", "npm:9.4.10"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["multistream", [\ ["npm:4.1.0", {\ "packageLocation": "./.yarn/cache/multistream-npm-4.1.0-0df2458b36-305c49a1aa.zip/node_modules/multistream/",\ @@ -6569,16 +6392,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["nan", [\ - ["npm:2.15.0", {\ - "packageLocation": "./.yarn/unplugged/nan-npm-2.15.0-505c98ef4d/node_modules/nan/",\ - "packageDependencies": [\ - ["nan", "npm:2.15.0"],\ - ["node-gyp", "npm:7.1.2"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["nanoid", [\ ["npm:3.1.20", {\ "packageLocation": "./.yarn/cache/nanoid-npm-3.1.20-3b284e9eb5-f6246023d5.zip/node_modules/nanoid/",\ @@ -6710,13 +6523,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { }]\ ]],\ ["node-forge", [\ - ["npm:0.10.0", {\ - "packageLocation": "./.yarn/cache/node-forge-npm-0.10.0-605ba7b28b-5aa6dc9922.zip/node_modules/node-forge/",\ - "packageDependencies": [\ - ["node-forge", "npm:0.10.0"]\ - ],\ - "linkType": "HARD"\ - }],\ ["npm:0.8.5", {\ "packageLocation": "./.yarn/cache/node-forge-npm-0.8.5-f18eb3b9a2-54d082233a.zip/node_modules/node-forge/",\ "packageDependencies": [\ @@ -7162,16 +6968,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["pem-jwk", [\ - ["npm:2.0.0", {\ - "packageLocation": "./.yarn/cache/pem-jwk-npm-2.0.0-4f6af502ec-63516b8ba4.zip/node_modules/pem-jwk/",\ - "packageDependencies": [\ - ["pem-jwk", "npm:2.0.0"],\ - ["asn1.js", "npm:5.4.1"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["performance-now", [\ ["npm:2.1.0", {\ "packageLocation": "./.yarn/cache/performance-now-npm-2.1.0-45e3ce7e49-534e641aa8.zip/node_modules/performance-now/",\ @@ -7424,28 +7220,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["protobufjs", [\ - ["npm:6.11.2", {\ - "packageLocation": "./.yarn/unplugged/protobufjs-npm-6.11.2-9b422ce98e/node_modules/protobufjs/",\ - "packageDependencies": [\ - ["protobufjs", "npm:6.11.2"],\ - ["@protobufjs/aspromise", "npm:1.1.2"],\ - ["@protobufjs/base64", "npm:1.1.2"],\ - ["@protobufjs/codegen", "npm:2.0.4"],\ - ["@protobufjs/eventemitter", "npm:1.1.0"],\ - ["@protobufjs/fetch", "npm:1.1.0"],\ - ["@protobufjs/float", "npm:1.0.2"],\ - ["@protobufjs/inquire", "npm:1.1.0"],\ - ["@protobufjs/path", "npm:1.1.2"],\ - ["@protobufjs/pool", "npm:1.1.0"],\ - ["@protobufjs/utf8", "npm:1.1.0"],\ - ["@types/long", "npm:4.0.1"],\ - ["@types/node", "npm:20.4.5"],\ - ["long", "npm:4.0.0"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["psl", [\ ["npm:1.8.0", {\ "packageLocation": "./.yarn/cache/psl-npm-1.8.0-226099d70e-6150048ed2.zip/node_modules/psl/",\ @@ -8784,16 +8558,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["uint8arrays", [\ - ["npm:3.0.0", {\ - "packageLocation": "./.yarn/cache/uint8arrays-npm-3.0.0-8a9076adb2-58470e6871.zip/node_modules/uint8arrays/",\ - "packageDependencies": [\ - ["uint8arrays", "npm:3.0.0"],\ - ["multiformats", "npm:9.4.10"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["unbox-primitive", [\ ["npm:1.0.2", {\ "packageLocation": "./.yarn/cache/unbox-primitive-npm-1.0.2-cb56a05066-b7a1cf5862.zip/node_modules/unbox-primitive/",\ @@ -8849,18 +8613,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["ursa-optional", [\ - ["npm:0.10.2", {\ - "packageLocation": "./.yarn/unplugged/ursa-optional-npm-0.10.2-2e11b3a5da/node_modules/ursa-optional/",\ - "packageDependencies": [\ - ["ursa-optional", "npm:0.10.2"],\ - ["bindings", "npm:1.5.0"],\ - ["nan", "npm:2.15.0"],\ - ["node-gyp", "npm:7.1.2"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["utf-8-validate", [\ ["npm:5.0.9", {\ "packageLocation": "./.yarn/unplugged/utf-8-validate-npm-5.0.9-ed88df348e/node_modules/utf-8-validate/",\ diff --git a/.yarn/cache/@protobufjs-aspromise-npm-1.1.2-71d00b938f-011fe7ef08.zip b/.yarn/cache/@protobufjs-aspromise-npm-1.1.2-71d00b938f-011fe7ef08.zip deleted file mode 100644 index fc9081b9..00000000 Binary files a/.yarn/cache/@protobufjs-aspromise-npm-1.1.2-71d00b938f-011fe7ef08.zip and /dev/null differ diff --git a/.yarn/cache/@protobufjs-base64-npm-1.1.2-cd8ca6814a-67173ac34d.zip b/.yarn/cache/@protobufjs-base64-npm-1.1.2-cd8ca6814a-67173ac34d.zip deleted file mode 100644 index cdc42f13..00000000 Binary files a/.yarn/cache/@protobufjs-base64-npm-1.1.2-cd8ca6814a-67173ac34d.zip and /dev/null differ diff --git a/.yarn/cache/@protobufjs-codegen-npm-2.0.4-36e188bbe6-59240c850b.zip b/.yarn/cache/@protobufjs-codegen-npm-2.0.4-36e188bbe6-59240c850b.zip deleted file mode 100644 index 2217a817..00000000 Binary files a/.yarn/cache/@protobufjs-codegen-npm-2.0.4-36e188bbe6-59240c850b.zip and /dev/null differ diff --git a/.yarn/cache/@protobufjs-eventemitter-npm-1.1.0-029cc7d431-0369163a3d.zip b/.yarn/cache/@protobufjs-eventemitter-npm-1.1.0-029cc7d431-0369163a3d.zip deleted file mode 100644 index 91729815..00000000 Binary files a/.yarn/cache/@protobufjs-eventemitter-npm-1.1.0-029cc7d431-0369163a3d.zip and /dev/null differ diff --git a/.yarn/cache/@protobufjs-fetch-npm-1.1.0-ca857b7df4-3fce7e09eb.zip b/.yarn/cache/@protobufjs-fetch-npm-1.1.0-ca857b7df4-3fce7e09eb.zip deleted file mode 100644 index 3f687b0b..00000000 Binary files a/.yarn/cache/@protobufjs-fetch-npm-1.1.0-ca857b7df4-3fce7e09eb.zip and /dev/null differ diff --git a/.yarn/cache/@protobufjs-float-npm-1.0.2-5678f64d08-5781e12412.zip b/.yarn/cache/@protobufjs-float-npm-1.0.2-5678f64d08-5781e12412.zip deleted file mode 100644 index d7027a9c..00000000 Binary files a/.yarn/cache/@protobufjs-float-npm-1.0.2-5678f64d08-5781e12412.zip and /dev/null differ diff --git a/.yarn/cache/@protobufjs-inquire-npm-1.1.0-3c7759e9ce-ca06f02eaf.zip b/.yarn/cache/@protobufjs-inquire-npm-1.1.0-3c7759e9ce-ca06f02eaf.zip deleted file mode 100644 index c7a6b3dc..00000000 Binary files a/.yarn/cache/@protobufjs-inquire-npm-1.1.0-3c7759e9ce-ca06f02eaf.zip and /dev/null differ diff --git a/.yarn/cache/@protobufjs-path-npm-1.1.2-641d08de76-856eeb532b.zip b/.yarn/cache/@protobufjs-path-npm-1.1.2-641d08de76-856eeb532b.zip deleted file mode 100644 index 27b166d2..00000000 Binary files a/.yarn/cache/@protobufjs-path-npm-1.1.2-641d08de76-856eeb532b.zip and /dev/null differ diff --git a/.yarn/cache/@protobufjs-pool-npm-1.1.0-47a76f96a1-d6a34fbbd2.zip b/.yarn/cache/@protobufjs-pool-npm-1.1.0-47a76f96a1-d6a34fbbd2.zip deleted file mode 100644 index 14babc22..00000000 Binary files a/.yarn/cache/@protobufjs-pool-npm-1.1.0-47a76f96a1-d6a34fbbd2.zip and /dev/null differ diff --git a/.yarn/cache/@protobufjs-utf8-npm-1.1.0-02c590807c-f9bf3163d1.zip b/.yarn/cache/@protobufjs-utf8-npm-1.1.0-02c590807c-f9bf3163d1.zip deleted file mode 100644 index 6e9fdd4c..00000000 Binary files a/.yarn/cache/@protobufjs-utf8-npm-1.1.0-02c590807c-f9bf3163d1.zip and /dev/null differ diff --git a/.yarn/cache/@types-human-crypto-keys-npm-0.1.2-13d56b7661-967ca0d91c.zip b/.yarn/cache/@types-human-crypto-keys-npm-0.1.2-13d56b7661-967ca0d91c.zip new file mode 100644 index 00000000..081ca6c1 Binary files /dev/null and b/.yarn/cache/@types-human-crypto-keys-npm-0.1.2-13d56b7661-967ca0d91c.zip differ diff --git a/.yarn/cache/@types-long-npm-4.0.1-022c8b6e77-ff9653c33f.zip b/.yarn/cache/@types-long-npm-4.0.1-022c8b6e77-ff9653c33f.zip deleted file mode 100644 index c88a2cb3..00000000 Binary files a/.yarn/cache/@types-long-npm-4.0.1-022c8b6e77-ff9653c33f.zip and /dev/null differ diff --git a/.yarn/cache/arweave-mnemonic-keys-npm-0.0.9-d1e53ee8b7-9fda19e677.zip b/.yarn/cache/arweave-mnemonic-keys-npm-0.0.9-d1e53ee8b7-9fda19e677.zip deleted file mode 100644 index 08fb0ce0..00000000 Binary files a/.yarn/cache/arweave-mnemonic-keys-npm-0.0.9-d1e53ee8b7-9fda19e677.zip and /dev/null differ diff --git a/.yarn/cache/bip39-npm-3.0.4-7c69c9182f-79ce1600a0.zip b/.yarn/cache/bip39-npm-3.0.2-32369862f4-71798582b4.zip similarity index 69% rename from .yarn/cache/bip39-npm-3.0.4-7c69c9182f-79ce1600a0.zip rename to .yarn/cache/bip39-npm-3.0.2-32369862f4-71798582b4.zip index d886db79..2400cf00 100644 Binary files a/.yarn/cache/bip39-npm-3.0.4-7c69c9182f-79ce1600a0.zip and b/.yarn/cache/bip39-npm-3.0.2-32369862f4-71798582b4.zip differ diff --git a/.yarn/cache/err-code-npm-3.0.1-3a0dc5fc51-aede1f1d5e.zip b/.yarn/cache/err-code-npm-3.0.1-3a0dc5fc51-aede1f1d5e.zip deleted file mode 100644 index 4eb20150..00000000 Binary files a/.yarn/cache/err-code-npm-3.0.1-3a0dc5fc51-aede1f1d5e.zip and /dev/null differ diff --git a/.yarn/cache/events-npm-3.3.0-c280bc7e48-f6f487ad21.zip b/.yarn/cache/events-npm-3.3.0-c280bc7e48-f6f487ad21.zip deleted file mode 100644 index 6f643482..00000000 Binary files a/.yarn/cache/events-npm-3.3.0-c280bc7e48-f6f487ad21.zip and /dev/null differ diff --git a/.yarn/cache/human-crypto-keys-https-f38e7cd903-1b3cfe1723.zip b/.yarn/cache/human-crypto-keys-https-f38e7cd903-1b3cfe1723.zip new file mode 100644 index 00000000..0be57820 Binary files /dev/null and b/.yarn/cache/human-crypto-keys-https-f38e7cd903-1b3cfe1723.zip differ diff --git a/.yarn/cache/human-crypto-keys-npm-0.1.4-352fe0a6a6-bdfbdac9a8.zip b/.yarn/cache/human-crypto-keys-npm-0.1.4-352fe0a6a6-bdfbdac9a8.zip deleted file mode 100644 index 996766a3..00000000 Binary files a/.yarn/cache/human-crypto-keys-npm-0.1.4-352fe0a6a6-bdfbdac9a8.zip and /dev/null differ diff --git a/.yarn/cache/iso-random-stream-npm-2.0.0-bbb11744dc-3e8d6ca953.zip b/.yarn/cache/iso-random-stream-npm-2.0.0-bbb11744dc-3e8d6ca953.zip deleted file mode 100644 index fb124613..00000000 Binary files a/.yarn/cache/iso-random-stream-npm-2.0.0-bbb11744dc-3e8d6ca953.zip and /dev/null differ diff --git a/.yarn/cache/keypair-npm-1.0.4-799f370fdf-7c91627416.zip b/.yarn/cache/keypair-npm-1.0.4-799f370fdf-7c91627416.zip deleted file mode 100644 index 51c6aebc..00000000 Binary files a/.yarn/cache/keypair-npm-1.0.4-799f370fdf-7c91627416.zip and /dev/null differ diff --git a/.yarn/cache/libp2p-crypto-npm-0.19.7-6963e32764-d533395309.zip b/.yarn/cache/libp2p-crypto-npm-0.19.7-6963e32764-d533395309.zip deleted file mode 100644 index 5ca05670..00000000 Binary files a/.yarn/cache/libp2p-crypto-npm-0.19.7-6963e32764-d533395309.zip and /dev/null differ diff --git a/.yarn/cache/long-npm-4.0.0-ecd96a31ed-16afbe8f74.zip b/.yarn/cache/long-npm-4.0.0-ecd96a31ed-16afbe8f74.zip deleted file mode 100644 index 228e6f99..00000000 Binary files a/.yarn/cache/long-npm-4.0.0-ecd96a31ed-16afbe8f74.zip and /dev/null differ diff --git a/.yarn/cache/multiformats-npm-9.4.10-4fe8ac5e23-57093ef493.zip b/.yarn/cache/multiformats-npm-9.4.10-4fe8ac5e23-57093ef493.zip deleted file mode 100644 index dd1318f2..00000000 Binary files a/.yarn/cache/multiformats-npm-9.4.10-4fe8ac5e23-57093ef493.zip and /dev/null differ diff --git a/.yarn/cache/nan-npm-2.15.0-505c98ef4d-33e1bb4dfc.zip b/.yarn/cache/nan-npm-2.15.0-505c98ef4d-33e1bb4dfc.zip deleted file mode 100644 index 51c58f13..00000000 Binary files a/.yarn/cache/nan-npm-2.15.0-505c98ef4d-33e1bb4dfc.zip and /dev/null differ diff --git a/.yarn/cache/node-forge-npm-0.10.0-605ba7b28b-5aa6dc9922.zip b/.yarn/cache/node-forge-npm-0.10.0-605ba7b28b-5aa6dc9922.zip deleted file mode 100644 index 1fb38139..00000000 Binary files a/.yarn/cache/node-forge-npm-0.10.0-605ba7b28b-5aa6dc9922.zip and /dev/null differ diff --git a/.yarn/cache/pem-jwk-npm-2.0.0-4f6af502ec-63516b8ba4.zip b/.yarn/cache/pem-jwk-npm-2.0.0-4f6af502ec-63516b8ba4.zip deleted file mode 100644 index 78084562..00000000 Binary files a/.yarn/cache/pem-jwk-npm-2.0.0-4f6af502ec-63516b8ba4.zip and /dev/null differ diff --git a/.yarn/cache/protobufjs-npm-6.11.2-9b422ce98e-80e9d9610c.zip b/.yarn/cache/protobufjs-npm-6.11.2-9b422ce98e-80e9d9610c.zip deleted file mode 100644 index f284ecb0..00000000 Binary files a/.yarn/cache/protobufjs-npm-6.11.2-9b422ce98e-80e9d9610c.zip and /dev/null differ diff --git a/.yarn/cache/uint8arrays-npm-3.0.0-8a9076adb2-58470e6871.zip b/.yarn/cache/uint8arrays-npm-3.0.0-8a9076adb2-58470e6871.zip deleted file mode 100644 index 2fdebdbb..00000000 Binary files a/.yarn/cache/uint8arrays-npm-3.0.0-8a9076adb2-58470e6871.zip and /dev/null differ diff --git a/.yarn/cache/ursa-optional-npm-0.10.2-2e11b3a5da-fd7b246352.zip b/.yarn/cache/ursa-optional-npm-0.10.2-2e11b3a5da-fd7b246352.zip deleted file mode 100644 index ad5a1a5f..00000000 Binary files a/.yarn/cache/ursa-optional-npm-0.10.2-2e11b3a5da-fd7b246352.zip and /dev/null differ diff --git a/package.json b/package.json index e05408a4..d26e9207 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ardrive-core-js", - "version": "2.0.0", + "version": "2.0.1", "description": "ArDrive Core contains the essential back end application features to support the ArDrive CLI and Desktop apps, such as file management, Permaweb upload/download, wallet management and other common functions.", "main": "./lib/exports.js", "types": "./lib/exports.d.ts", @@ -11,13 +11,13 @@ "@alexsasharegan/simple-cache": "^3.3.3", "arbundles": "^0.6.19", "arweave": "^1.11.4", - "arweave-mnemonic-keys": "^0.0.9", "axios": "^0.21.1", "axios-retry": "^3.6.0", "base64-js": "^1.5.1", "bignumber.js": "^9.0.1", "bn.js": "^5.2.1", "futoin-hkdf": "^1.3.3", + "human-crypto-keys": "git+https://github.com/ardriveapp/js-human-crypto-keys.git#expose_lib", "jwk-to-pem": "^2.0.4", "lodash": "^4.17.21", "mime-types": "^2.1.29", @@ -30,6 +30,7 @@ "@istanbuljs/nyc-config-typescript": "^1.0.1", "@types/bn.js": "^5", "@types/chai": "^4.2.15", + "@types/human-crypto-keys": "^0.1.2", "@types/jwk-to-pem": "^2.0.0", "@types/lodash": "^4", "@types/mime-types": "^2.1.0", diff --git a/src/wallet_dao.test.ts b/src/wallet_dao.test.ts new file mode 100644 index 00000000..412b82c8 --- /dev/null +++ b/src/wallet_dao.test.ts @@ -0,0 +1,19 @@ +import { expect } from 'chai'; +import { fakeArweave } from '../tests/stubs'; +import { SeedPhrase } from './exports'; +import { WalletDAO } from './wallet_dao'; + +// This test runs too slow to be included in the CI pipeline. But it provides a snapshot of the +// seed phrase to wallet functionality and should be run locally before a release +describe.skip('Wallet DAO', function () { + this.timeout(90_000); + const walletDAO = new WalletDAO(fakeArweave); + it('generateWallet from seedphrase function', async () => { + const seedPhrase = new SeedPhrase( + 'slender during cost problem tortoise extra deal walnut great oblige planet kid' + ); + const wallet = await walletDAO.generateJWKWallet(seedPhrase); + const address = await wallet.getAddress(); + expect(address.toString()).to.equal('FOKCJ1sz9XfFGy8KwVQczDPdavCEu6c5GkzTNfEbRI8'); + }); +}); diff --git a/src/wallet_dao.ts b/src/wallet_dao.ts index 5c82196e..cc8af73c 100644 --- a/src/wallet_dao.ts +++ b/src/wallet_dao.ts @@ -1,6 +1,5 @@ import Arweave from 'arweave'; import { CreateTransactionInterface } from 'arweave/node/common'; -import { JWKInterface } from 'arweave/node/lib/wallet'; import { JWKWallet } from './jwk_wallet'; import { TransactionID, @@ -14,10 +13,12 @@ import { GQLTagInterface, TxID } from './types'; -import * as mnemonicKeys from 'arweave-mnemonic-keys'; import { Wallet } from './wallet'; import { DEFAULT_APP_NAME, DEFAULT_APP_VERSION } from './utils/constants'; import assertTagLimits from './arfs/tags/tag_assertions'; +import { generateKeyPair, getKeyPairFromMnemonic } from 'human-crypto-keys'; +import nodeCrypto from 'node:crypto'; +import { JWKInterface } from 'arweave/node/lib/wallet'; export type ARTransferResult = { txID: TransactionID; @@ -25,6 +26,9 @@ export type ARTransferResult = { reward: NetworkReward; }; +const algorithm = { id: 'rsa', modulusLength: 4096 } as const; +const options = { privateKeyFormat: 'pkcs8-pem' } as const; + export class WalletDAO { constructor( private readonly arweave: Arweave, @@ -33,13 +37,17 @@ export class WalletDAO { ) {} async generateSeedPhrase(): Promise { - const seedPhrase: SeedPhrase = await mnemonicKeys.generateMnemonic(); - return Promise.resolve(seedPhrase); + const keys = await generateKeyPair(algorithm, options); + return new SeedPhrase(keys.mnemonic); } async generateJWKWallet(seedPhrase: SeedPhrase): Promise { - const jwkWallet: JWKInterface = await mnemonicKeys.getKeyFromMnemonic(seedPhrase.toString()); - return Promise.resolve(new JWKWallet(jwkWallet)); + const { privateKey } = await getKeyPairFromMnemonic(seedPhrase.toString(), algorithm, options); + + const pem = nodeCrypto.createPrivateKey({ key: privateKey, format: 'pem' }); + const jwk = pem.export({ format: 'jwk' }); + + return Promise.resolve(new JWKWallet(jwk as JWKInterface)); } async getWalletWinstonBalance(wallet: Wallet): Promise { diff --git a/yarn.lock b/yarn.lock index 57243449..67fd1ad8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -886,79 +886,6 @@ __metadata: languageName: node linkType: hard -"@protobufjs/aspromise@npm:^1.1.1, @protobufjs/aspromise@npm:^1.1.2": - version: 1.1.2 - resolution: "@protobufjs/aspromise@npm:1.1.2" - checksum: 011fe7ef0826b0fd1a95935a033a3c0fd08483903e1aa8f8b4e0704e3233406abb9ee25350ec0c20bbecb2aad8da0dcea58b392bbd77d6690736f02c143865d2 - languageName: node - linkType: hard - -"@protobufjs/base64@npm:^1.1.2": - version: 1.1.2 - resolution: "@protobufjs/base64@npm:1.1.2" - checksum: 67173ac34de1e242c55da52c2f5bdc65505d82453893f9b51dc74af9fe4c065cf4a657a4538e91b0d4a1a1e0a0642215e31894c31650ff6e3831471061e1ee9e - languageName: node - linkType: hard - -"@protobufjs/codegen@npm:^2.0.4": - version: 2.0.4 - resolution: "@protobufjs/codegen@npm:2.0.4" - checksum: 59240c850b1d3d0b56d8f8098dd04787dcaec5c5bd8de186fa548de86b86076e1c50e80144b90335e705a044edf5bc8b0998548474c2a10a98c7e004a1547e4b - languageName: node - linkType: hard - -"@protobufjs/eventemitter@npm:^1.1.0": - version: 1.1.0 - resolution: "@protobufjs/eventemitter@npm:1.1.0" - checksum: 0369163a3d226851682f855f81413cbf166cd98f131edb94a0f67f79e75342d86e89df9d7a1df08ac28be2bc77e0a7f0200526bb6c2a407abbfee1f0262d5fd7 - languageName: node - linkType: hard - -"@protobufjs/fetch@npm:^1.1.0": - version: 1.1.0 - resolution: "@protobufjs/fetch@npm:1.1.0" - dependencies: - "@protobufjs/aspromise": ^1.1.1 - "@protobufjs/inquire": ^1.1.0 - checksum: 3fce7e09eb3f1171dd55a192066450f65324fd5f7cc01a431df01bb00d0a895e6bfb5b0c5561ce157ee1d886349c90703d10a4e11a1a256418ff591b969b3477 - languageName: node - linkType: hard - -"@protobufjs/float@npm:^1.0.2": - version: 1.0.2 - resolution: "@protobufjs/float@npm:1.0.2" - checksum: 5781e1241270b8bd1591d324ca9e3a3128d2f768077a446187a049e36505e91bc4156ed5ac3159c3ce3d2ba3743dbc757b051b2d723eea9cd367bfd54ab29b2f - languageName: node - linkType: hard - -"@protobufjs/inquire@npm:^1.1.0": - version: 1.1.0 - resolution: "@protobufjs/inquire@npm:1.1.0" - checksum: ca06f02eaf65ca36fb7498fc3492b7fc087bfcc85c702bac5b86fad34b692bdce4990e0ef444c1e2aea8c034227bd1f0484be02810d5d7e931c55445555646f4 - languageName: node - linkType: hard - -"@protobufjs/path@npm:^1.1.2": - version: 1.1.2 - resolution: "@protobufjs/path@npm:1.1.2" - checksum: 856eeb532b16a7aac071cacde5c5620df800db4c80cee6dbc56380524736205aae21e5ae47739114bf669ab5e8ba0e767a282ad894f3b5e124197cb9224445ee - languageName: node - linkType: hard - -"@protobufjs/pool@npm:^1.1.0": - version: 1.1.0 - resolution: "@protobufjs/pool@npm:1.1.0" - checksum: d6a34fbbd24f729e2a10ee915b74e1d77d52214de626b921b2d77288bd8f2386808da2315080f2905761527cceffe7ec34c7647bd21a5ae41a25e8212ff79451 - languageName: node - linkType: hard - -"@protobufjs/utf8@npm:^1.1.0": - version: 1.1.0 - resolution: "@protobufjs/utf8@npm:1.1.0" - checksum: f9bf3163d13aaa3b6f5e6fbf37a116e094ea021c0e1f2a7ccd0e12a29e2ce08dafba4e8b36e13f8ed7397e1591610ce880ed1289af4d66cf4ace8a36a9557278 - languageName: node - linkType: hard - "@randlabs/communication-bridge@npm:^1.0.0": version: 1.0.0 resolution: "@randlabs/communication-bridge@npm:1.0.0" @@ -1171,6 +1098,13 @@ __metadata: languageName: node linkType: hard +"@types/human-crypto-keys@npm:^0.1.2": + version: 0.1.2 + resolution: "@types/human-crypto-keys@npm:0.1.2" + checksum: 967ca0d91ccc68d87c1144ddf1fe319968a4c6e5cf7f59f3488dadec04d0bf2b2ad87ea6580ff42ab4903c869a3ad683083c4ba37fe9269756f0c2657778f5bb + languageName: node + linkType: hard + "@types/inquirer@npm:^8.2.1": version: 8.2.1 resolution: "@types/inquirer@npm:8.2.1" @@ -1202,13 +1136,6 @@ __metadata: languageName: node linkType: hard -"@types/long@npm:^4.0.1": - version: 4.0.1 - resolution: "@types/long@npm:4.0.1" - checksum: ff9653c33f5000d0f131fd98a950a0343e2e33107dd067a97ac4a3b9678e1a2e39ea44772ad920f54ef6e8f107f76bc92c2584ba905a0dc4253282a4101166d0 - languageName: node - linkType: hard - "@types/mime-types@npm:^2.1.0": version: 2.1.0 resolution: "@types/mime-types@npm:2.1.0" @@ -1233,7 +1160,7 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:*, @types/node@npm:>=13.7.0": +"@types/node@npm:*": version: 20.4.5 resolution: "@types/node@npm:20.4.5" checksum: 36a0304a8dc346a1b2d2edac4c4633eecf70875793d61a5274d0df052d7a7af7a8e34f29884eac4fbd094c4f0201477dcb39c0ecd3307ca141688806538d1138 @@ -1803,6 +1730,7 @@ __metadata: "@istanbuljs/nyc-config-typescript": ^1.0.1 "@types/bn.js": ^5 "@types/chai": ^4.2.15 + "@types/human-crypto-keys": ^0.1.2 "@types/jwk-to-pem": ^2.0.0 "@types/lodash": ^4 "@types/mime-types": ^2.1.0 @@ -1819,7 +1747,6 @@ __metadata: "@typescript-eslint/parser": ^6.2.1 arbundles: ^0.6.19 arweave: ^1.11.4 - arweave-mnemonic-keys: ^0.0.9 axios: ^0.21.1 axios-retry: ^3.6.0 base64-js: ^1.5.1 @@ -1831,6 +1758,7 @@ __metadata: eslint-plugin-prettier: latest espower-typescript: ^10.0.0 futoin-hkdf: ^1.3.3 + human-crypto-keys: "git+https://github.com/ardriveapp/js-human-crypto-keys.git#expose_lib" husky: ^=6 jwk-to-pem: ^2.0.4 lint-staged: ^11.0.0 @@ -1914,16 +1842,6 @@ __metadata: languageName: node linkType: hard -"arweave-mnemonic-keys@npm:^0.0.9": - version: 0.0.9 - resolution: "arweave-mnemonic-keys@npm:0.0.9" - dependencies: - human-crypto-keys: ^0.1.4 - libp2p-crypto: ^0.19.0 - checksum: 9fda19e6778b2240538fd272e79afdcbc75848f98acf2943f4880f3e3fe12a419030949f6c51f17ff4baaa0c5fd2b6fbbb656f67a6b8892ee896f59aa0d38056 - languageName: node - linkType: hard - "arweave-stream-tx@npm:^1.1.0": version: 1.1.0 resolution: "arweave-stream-tx@npm:1.1.0" @@ -1950,7 +1868,7 @@ __metadata: languageName: node linkType: hard -"asn1.js@npm:^5.0.1, asn1.js@npm:^5.3.0, asn1.js@npm:^5.4.1": +"asn1.js@npm:^5.3.0, asn1.js@npm:^5.4.1": version: 5.4.1 resolution: "asn1.js@npm:5.4.1" dependencies: @@ -2126,7 +2044,7 @@ __metadata: languageName: node linkType: hard -"bindings@npm:^1.3.0, bindings@npm:^1.5.0": +"bindings@npm:^1.3.0": version: 1.5.0 resolution: "bindings@npm:1.5.0" dependencies: @@ -2135,15 +2053,15 @@ __metadata: languageName: node linkType: hard -"bip39@npm:^3.0.2": - version: 3.0.4 - resolution: "bip39@npm:3.0.4" +"bip39@npm:=3.0.2": + version: 3.0.2 + resolution: "bip39@npm:3.0.2" dependencies: "@types/node": 11.11.6 create-hash: ^1.1.0 pbkdf2: ^3.0.9 randombytes: ^2.0.1 - checksum: 79ce1600a03d1ba5053bdd4e6323f9463ec340764c7e52918b6c6b9dca81221940f2d9a65656447f108f9bc2c8d9ae8df319cca83bbd1dad63f53ef2768d9bae + checksum: 71798582b4d1cc7f20d11372413c4514f124d302e6b38e7f9126d4759fca3e9fbccb431429a6ab16130dd67193de3d781122fcd4bca0a653be654d4aa13490c5 languageName: node linkType: hard @@ -3052,13 +2970,6 @@ __metadata: languageName: node linkType: hard -"err-code@npm:^3.0.1": - version: 3.0.1 - resolution: "err-code@npm:3.0.1" - checksum: aede1f1d5ebe6d6b30b5e3175e3cc13e67de2e2e1ad99ce4917e957d7b59e8451ed10ee37dbc6493521920a47082c479b9097e5c39438d4aff4cc84438568a5a - languageName: node - linkType: hard - "error-ex@npm:^1.3.1": version: 1.3.2 resolution: "error-ex@npm:1.3.2" @@ -3602,13 +3513,6 @@ __metadata: languageName: node linkType: hard -"events@npm:^3.3.0": - version: 3.3.0 - resolution: "events@npm:3.3.0" - checksum: f6f487ad2198aa41d878fa31452f1a3c00958f46e9019286ff4787c84aac329332ab45c9cdc8c445928fc6d7ded294b9e005a7fce9426488518017831b272780 - languageName: node - linkType: hard - "execa@npm:^5.0.0": version: 5.0.0 resolution: "execa@npm:5.0.0" @@ -4334,17 +4238,17 @@ fsevents@~2.3.1: languageName: node linkType: hard -"human-crypto-keys@npm:^0.1.4": +"human-crypto-keys@git+https://github.com/ardriveapp/js-human-crypto-keys.git#expose_lib": version: 0.1.4 - resolution: "human-crypto-keys@npm:0.1.4" + resolution: "human-crypto-keys@https://github.com/ardriveapp/js-human-crypto-keys.git#commit=dcfde03a4d45fb390dc480950f6bf034a16b4cc9" dependencies: - bip39: ^3.0.2 + bip39: =3.0.2 crypto-key-composer: ^0.1.0 hash.js: ^1.1.7 hmac-drbg: ^1.0.1 node-forge: ^0.8.2 pify: ^4.0.1 - checksum: bdfbdac9a87730241fc0410c7d2f12b6e398eea98d90490c13fd7f5f9075fac25d49c70a1dd4fe4d726df032e8dd66f64ac02da7bdaa6a9bf91d33b56a035228 + checksum: 1b3cfe1723f8a5fce62c705a20248d8ca4c909d0ba3c6ae851535369e507d788112df5886a4f86c53544124f746cb0e7df7f18911642d670c89678e55d3f4a6f languageName: node linkType: hard @@ -4773,16 +4677,6 @@ fsevents@~2.3.1: languageName: node linkType: hard -"iso-random-stream@npm:^2.0.0": - version: 2.0.0 - resolution: "iso-random-stream@npm:2.0.0" - dependencies: - events: ^3.3.0 - readable-stream: ^3.4.0 - checksum: 3e8d6ca953df5707046c8aaca9cf3a8df9d21932951b2bacf2022f9287bd274c24a5430ae2ab279e94bc56886f320eb0d038323000a04187b1e6e42721c496c3 - languageName: node - linkType: hard - "isobject@npm:^3.0.1": version: 3.0.1 resolution: "isobject@npm:3.0.1" @@ -5097,13 +4991,6 @@ fsevents@~2.3.1: languageName: node linkType: hard -"keypair@npm:^1.0.1": - version: 1.0.4 - resolution: "keypair@npm:1.0.4" - checksum: 7c91627416ac43ce81013310cdf8a8f92b17a22b64066b21db96446da62414563783ebbfa822ead74de380ee9e7885d267f5f8c31528127ca8437ef690a5cdba - languageName: node - linkType: hard - "kind-of@npm:^6.0.2": version: 6.0.3 resolution: "kind-of@npm:6.0.3" @@ -5131,25 +5018,6 @@ fsevents@~2.3.1: languageName: node linkType: hard -"libp2p-crypto@npm:^0.19.0": - version: 0.19.7 - resolution: "libp2p-crypto@npm:0.19.7" - dependencies: - err-code: ^3.0.1 - is-typedarray: ^1.0.0 - iso-random-stream: ^2.0.0 - keypair: ^1.0.1 - multiformats: ^9.4.5 - node-forge: ^0.10.0 - pem-jwk: ^2.0.0 - protobufjs: ^6.11.2 - secp256k1: ^4.0.0 - uint8arrays: ^3.0.0 - ursa-optional: ^0.10.1 - checksum: d533395309cff7ebad3584e6ea3c34f35aa7eb0eb53a8e0914005bb8b0c7cbc5d4a3ee37ac3f941d642a9ced0bc5c7fdbae6458e2b2452d35726895df93761ea - languageName: node - linkType: hard - "lines-and-columns@npm:^1.1.6": version: 1.1.6 resolution: "lines-and-columns@npm:1.1.6" @@ -5292,13 +5160,6 @@ fsevents@~2.3.1: languageName: node linkType: hard -"long@npm:^4.0.0": - version: 4.0.0 - resolution: "long@npm:4.0.0" - checksum: 16afbe8f749c7c849db1f4de4e2e6a31ac6e617cead3bdc4f9605cb703cd20e1e9fc1a7baba674ffcca57d660a6e5b53a9e236d7b25a295d3855cca79cc06744 - languageName: node - linkType: hard - "lru-cache@npm:^6.0.0": version: 6.0.0 resolution: "lru-cache@npm:6.0.0" @@ -5566,13 +5427,6 @@ fsevents@~2.3.1: languageName: node linkType: hard -"multiformats@npm:^9.4.2, multiformats@npm:^9.4.5": - version: 9.4.10 - resolution: "multiformats@npm:9.4.10" - checksum: 57093ef493696122d3f843bc683167f535687d327a07a2488ac9b23ca555ca049db99c4f8344aac09646b515c8e48edac92ab5dccd6622b0437760f0b8effe27 - languageName: node - linkType: hard - "multistream@npm:^4.1.0": version: 4.1.0 resolution: "multistream@npm:4.1.0" @@ -5590,15 +5444,6 @@ fsevents@~2.3.1: languageName: node linkType: hard -"nan@npm:^2.14.2": - version: 2.15.0 - resolution: "nan@npm:2.15.0" - dependencies: - node-gyp: latest - checksum: 33e1bb4dfca447fe37d4bb5889be55de154828632c8d38646db67293a21afd61ed9909cdf1b886214a64707d935926c4e60e2b09de9edfc2ad58de31d6ce8f39 - languageName: node - linkType: hard - "nanoid@npm:3.1.20": version: 3.1.20 resolution: "nanoid@npm:3.1.20" @@ -5710,13 +5555,6 @@ fsevents@~2.3.1: languageName: node linkType: hard -"node-forge@npm:^0.10.0": - version: 0.10.0 - resolution: "node-forge@npm:0.10.0" - checksum: 5aa6dc9922e424a20ef101d2f517418e2bc9cfc0255dd22e0701c0fad1568445f510ee67f6f3fcdf085812c4ca1b847b8ba45683b34776828e41f5c1794e42e1 - languageName: node - linkType: hard - "node-forge@npm:^0.8.1, node-forge@npm:^0.8.2": version: 0.8.5 resolution: "node-forge@npm:0.8.5" @@ -6125,17 +5963,6 @@ fsevents@~2.3.1: languageName: node linkType: hard -"pem-jwk@npm:^2.0.0": - version: 2.0.0 - resolution: "pem-jwk@npm:2.0.0" - dependencies: - asn1.js: ^5.0.1 - bin: - pem-jwk: ./bin/pem-jwk.js - checksum: 63516b8ba44989bd68d1c7f8ee97ba1d965d0b63ef560ba784f1a19f88ee1f89b4bf7fcc9e5dc8f44dd0374acf874be0bf44c8cbcfe09dac11fd21137224b16d - languageName: node - linkType: hard - "performance-now@npm:^2.1.0": version: 2.1.0 resolution: "performance-now@npm:2.1.0" @@ -6358,30 +6185,6 @@ fsevents@~2.3.1: languageName: node linkType: hard -"protobufjs@npm:^6.11.2": - version: 6.11.2 - resolution: "protobufjs@npm:6.11.2" - dependencies: - "@protobufjs/aspromise": ^1.1.2 - "@protobufjs/base64": ^1.1.2 - "@protobufjs/codegen": ^2.0.4 - "@protobufjs/eventemitter": ^1.1.0 - "@protobufjs/fetch": ^1.1.0 - "@protobufjs/float": ^1.0.2 - "@protobufjs/inquire": ^1.1.0 - "@protobufjs/path": ^1.1.2 - "@protobufjs/pool": ^1.1.0 - "@protobufjs/utf8": ^1.1.0 - "@types/long": ^4.0.1 - "@types/node": ">=13.7.0" - long: ^4.0.0 - bin: - pbjs: bin/pbjs - pbts: bin/pbts - checksum: 80e9d9610c3eb66f9eae4e44a1ae30381cedb721b7d5f635d781fe4c507e2c77bb7c879addcd1dda79733d3ae589d9e66fd18d42baf99b35df7382a0f9920795 - languageName: node - linkType: hard - "psl@npm:^1.1.28": version: 1.8.0 resolution: "psl@npm:1.8.0" @@ -6709,7 +6512,7 @@ fsevents@~2.3.1: languageName: node linkType: hard -"secp256k1@npm:^4.0.0, secp256k1@npm:^4.0.2": +"secp256k1@npm:^4.0.2": version: 4.0.2 resolution: "secp256k1@npm:4.0.2" dependencies: @@ -7562,15 +7365,6 @@ fsevents@~2.3.1: languageName: node linkType: hard -"uint8arrays@npm:^3.0.0": - version: 3.0.0 - resolution: "uint8arrays@npm:3.0.0" - dependencies: - multiformats: ^9.4.2 - checksum: 58470e687140e64a7fa08ab66b64777b75f105bf78180324448dc798436beacf0bd322cd2b58d20ca4cfa2e091f58e4b52d008e95f21d0ade16c1102b5d23ad3 - languageName: node - linkType: hard - "unbox-primitive@npm:^1.0.2": version: 1.0.2 resolution: "unbox-primitive@npm:1.0.2" @@ -7620,17 +7414,6 @@ fsevents@~2.3.1: languageName: node linkType: hard -"ursa-optional@npm:^0.10.1": - version: 0.10.2 - resolution: "ursa-optional@npm:0.10.2" - dependencies: - bindings: ^1.5.0 - nan: ^2.14.2 - node-gyp: latest - checksum: fd7b246352750fd5032e058ab14220e389bc08bd98d72e9d9f01ac443390435ac354735fb67739d57bb505bfdaeeb2359cd7b8c5d57abc9b82b16455d1be09a3 - languageName: node - linkType: hard - "utf-8-validate@npm:^5.0.2": version: 5.0.9 resolution: "utf-8-validate@npm:5.0.9"