@dxos/crypto 2.19.3-dev.cd87a074 → 2.19.4-dev.aac2d723

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,6 @@
1
1
  export * from './encrypt';
2
2
  export * from './hash';
3
+ export * from './human-hash';
3
4
  export * from './keys';
4
5
  export * from './seedphrase';
5
6
  export * from './validator';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC"}
package/dist/src/index.js CHANGED
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  __exportStar(require("./encrypt"), exports);
17
17
  __exportStar(require("./hash"), exports);
18
+ __exportStar(require("./human-hash"), exports);
18
19
  __exportStar(require("./keys"), exports);
19
20
  __exportStar(require("./seedphrase"), exports);
20
21
  __exportStar(require("./validator"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;AAEF,4CAA0B;AAC1B,yCAAuB;AACvB,yCAAuB;AACvB,+CAA6B;AAC7B,8CAA4B;AAC5B,+CAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;AAEF,4CAA0B;AAC1B,yCAAuB;AACvB,+CAA6B;AAC7B,yCAAuB;AACvB,+CAA6B;AAC7B,8CAA4B;AAC5B,+CAA6B"}
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- import { HumanHasher } from './humanhash';
2
+ import { HumanHasher } from './human-hash';
3
3
  import { PublicKeyLike } from './public-key';
4
4
  export declare const hasher: HumanHasher;
5
5
  export declare const PUBLIC_KEY_LENGTH = 32;
@@ -1 +1 @@
1
- {"version":3,"file":"keys.d.ts","sourceRoot":"","sources":["../../src/keys.ts"],"names":[],"mappings":";AAOA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAa,aAAa,EAAE,MAAM,cAAc,CAAC;AAExD,eAAO,MAAM,MAAM,aAAoB,CAAC;AAExC,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,gBAAgB,KAAK,CAAC;AAEnC,eAAO,MAAM,OAAO,kBAA2B,CAAC;AAOhD,MAAM,WAAW,OAAO;IACtB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,eAAO,MAAM,aAAa,iCAAoB,OAM7C,CAAC;AAEF,eAAO,MAAM,YAAY,QAAS,aAAa,KAAG,MAA6D,CAAC;AAEhH;;;GAGG;AACH,wBAAgB,WAAW,CAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAMhD;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAE,MAAM,EAAE,MAAM,GAAG,UAAU,GAAG,MAAM,CAOhE;AAED,wBAAgB,QAAQ,CAAE,KAAK,EAAE,MAAM,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,CAMrE;AAED;;;;GAIG;AACH,wBAAg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Q,IAAK,MAAM,CAElC;AAED;;;;;GAKG;AACH,wBAAgB,IAAI,CAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAKhE;AAED;;;;;;GAMG;AACH,wBAAgB,MAAM,CAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAMtF"}
package/dist/src/keys.js CHANGED
@@ -9,9 +9,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.verify = exports.sign = exports.createId = exports.randomBytes = exports.humanize = exports.keyToString = exports.keyToBuffer = exports.discoveryKey = exports.createKeyPair = exports.zeroKey = exports.SIGNATURE_LENGTH = exports.SECRET_KEY_LENGTH = exports.PUBLIC_KEY_LENGTH = exports.hasher = void 0;
10
10
  const assert_1 = __importDefault(require("assert"));
11
11
  const hypercore_crypto_1 = __importDefault(require("hypercore-crypto"));
12
- const humanhash_1 = require("./humanhash");
12
+ const human_hash_1 = require("./human-hash");
13
13
  const public_key_1 = require("./public-key");
14
- exports.hasher = new humanhash_1.HumanHasher();
14
+ exports.hasher = new human_hash_1.HumanHasher();
15
15
  exports.PUBLIC_KEY_LENGTH = 32;
16
16
  exports.SECRET_KEY_LENGTH = 64;
17
17
  exports.SIGNATURE_LENGTH = 64;
@@ -1 +1 @@
1
- {"version":3,"file":"keys.js","sourceRoot":"","sources":["../../src/keys.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;AAEF,oDAA4B;AAC5B,wEAAsC;AAEtC,2CAA0C;AAC1C,6CAAwD;AAE3C,QAAA,MAAM,GAAG,IAAI,uBAAW,EAAE,CAAC;AAE3B,QAAA,iBAAiB,GAAG,EAAE,CAAC;AACvB,QAAA,iBAAiB,GAAG,EAAE,CAAC;AACvB,QAAA,gBAAgB,GAAG,EAAE,CAAC;AAE5B,MAAM,OAAO,GAAG,GAAG,EAAE,CAAC,IAAI,UAAU,CAA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AAK,yBAAiB,CAAC,CAAC;IAE7E,OAAO,0BAAM,CAAC,IAAI,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;AACzC,CAAC;AALD,oBAKC;AAED;;;;;;GAMG;AACH,SAAgB,MAAM,CAAE,OAAe,EAAE,SAAiB,EAAE,SAAiB;IAC3E,IAAA,gBAAM,EAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;IACjC,IAAA,gBAAM,EAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,SAAS,CAAC,MAAM,KAAK,wBAAgB,CAAC,CAAC;IAC5E,IAAA,gBAAM,EAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,SAAS,CAAC,MAAM,KAAK,yBAAiB,CAAC,CAAC;IAE7E,OAAO,0BAAM,CAAC,MAAM,CAAC,OAAO,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;AACtD,CAAC;AAND,wBAMC"}
@@ -9,7 +9,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.PublicKey = void 0;
10
10
  const hypercore_crypto_1 = __importDefault(require("hypercore-crypto"));
11
11
  const util_1 = require("util");
12
- const humanhash_1 = require("./humanhash");
12
+ const human_hash_1 = require("./human-hash");
13
13
  class PublicKey {
14
14
  constructor(_value) {
15
15
  this._value = _value;
@@ -131,5 +131,5 @@ exports.PublicKey = PublicKey;
131
131
  * Length of a public key in bytes.
132
132
  */
133
133
  PublicKey.LENGTH = 32;
134
- const hasher = new humanhash_1.HumanHasher();
134
+ const hasher = new human_hash_1.HumanHasher();
135
135
  //# sourceMappingURL=public-key.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"public-key.js","sourceRoot":"","sources":["../../src/public-key.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;AAEF,wEAAsC;AACtC,+BAA+B;AAE/B,2CAA0C;AAE1C,MAAa,SAAS;IA2DpB,YACmB,MAAkB;QAA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AC,QAAQ,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACzC,CAAC;IAED;;OAEG;IACH,QAAQ;QACN,OAAO,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;IACvC,CAAC;IAED;;OAEG;IACH,QAAQ;QACN,OAAO,IAAI,CAAC,KAAK,EAAE,CAAC;IACtB,CAAC;IAED;;OAEG;IACH,MAAM;QACJ,OAAO,IAAI,CAAC,KAAK,EAAE,CAAC;IACtB,CAAC;IAED;;OAEG;IACH,CAAC,cAAO,CAAC,MAAM,CAAC;QACd,OAAO,cAAc,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC;IAC1C,CAAC;IAED;;OAEG;IACH,MAAM,CAAE,KAAoB;QAC1B,MAAM,cAAc,GAAG,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC7C,IAAI,KAAK,GAAG,IAAI,CAAC;QACjB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACzC,KAAK,KAAL,KAAK,GAAK,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC,EAAC;SACvD;QACD,OAAO,KAAK,CAAC;IACf,CAAC;;AAjIH,8BAkIC;AAjIC;;GAEG;AACI,gBAAM,GAAG,EAAE,CAAC;AA0IrB,MAAM,MAAM,GAAG,IAAI,wBAAW,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"program":{"fileNames":["../../../../common/temp/node_modules/.pnpm/typescript@4.5.2/node_modules/typescript/lib/lib.es5.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.2/node_modules/typescript/lib/lib.es2015.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.2/node_modules/typescript/lib/lib.es2016.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.2/node_modules/typescript/lib/lib.es2017.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.2/node_modules/typescript/lib/lib.es2018.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.2/node_modules/typescript/lib/lib.es2019.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.2/node_modules/typescript/lib/lib.es2020.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.2/node_modules/typescript/lib/lib.es2021.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.2/node_modules/typescript/lib/lib.esnext.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.2/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.2/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.2/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.2/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.2/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.2/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.2/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.2/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.2/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.2/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.2/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.2/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.2/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.2/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.2/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.2/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.2/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.2/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.2/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.2/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.2/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.2/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.2/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.2/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.2/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.2/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.2/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.2/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.2/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.2/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.2/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.2/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.2/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.2/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../../common/temp/node_modules/.pnpm/@types/crypto-js@4.0.2/node_modules/@types/crypto-js/index.d.ts","../src/encrypt.ts","../src/encrypt.test.ts","../src/hash.ts","../src/hash.test.ts","../src/humanhash.ts","../src/public-key.ts","../src/keys.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/globals.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/async_hooks.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/buffer.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/child_process.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/cluster.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/console.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/constants.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/crypto.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/dgram.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/dns.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/domain.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/events.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/fs.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/fs/promises.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/http.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/http2.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/https.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/inspector.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/module.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/net.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/os.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/path.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/perf_hooks.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/process.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/punycode.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/querystring.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/readline.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/repl.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/stream.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/string_decoder.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/timers.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/tls.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/trace_events.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/tty.d.ts","../../../../common/temp/node_modules/.pnpm/querystring@0.2.1/node_modules/querystring/decode.d.ts","../../../../common/temp/node_modules/.pnpm/querystring@0.2.1/node_modules/querystring/encode.d.ts","../../../../common/temp/node_modules/.pnpm/querystring@0.2.1/node_modules/querystring/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/url.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/util.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/v8.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/vm.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/worker_threads.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/zlib.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/globals.global.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/wasi.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/ts3.6/base.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/assert.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/base.d.ts","../../../../common/temp/node_modules/.pnpm/@types/node@14.14.45/node_modules/@types/node/index.d.ts","../../../../common/temp/node_modules/.pnpm/bip39@3.0.4/node_modules/bip39/types/_wordlists.d.ts","../../../../common/temp/node_modules/.pnpm/bip39@3.0.4/node_modules/bip39/types/index.d.ts","../src/seedphrase.ts","../src/validator.ts","../src/index.ts","../src/keys.test.ts","../src/public-key.test.ts","../src/seedphrase.test.ts","../src/shims.d.ts","../../../../common/temp/node_modules/.pnpm/jest-diff@26.6.2/node_modules/jest-diff/build/cleanupSemantic.d.ts","../../../../common/temp/node_modules/.pnpm/jest-diff@26.6.2/node_modules/jest-diff/build/types.d.ts","../../../../common/temp/node_modules/.pnpm/jest-diff@26.6.2/node_modules/jest-diff/build/diffLines.d.ts","../../../../common/temp/node_modules/.pnpm/jest-diff@26.6.2/node_modules/jest-diff/build/printDiffs.d.ts","../../../../common/temp/node_modules/.pnpm/jest-diff@26.6.2/node_modules/jest-diff/build/index.d.ts","../../../../common/temp/node_modules/.pnpm/pretty-format@26.6.2/node_modules/pretty-format/build/types.d.ts","../../../../common/temp/node_modules/.pnpm/pretty-format@26.6.2/node_modules/pretty-format/build/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types/jest@26.0.23/node_modules/@types/jest/index.d.ts"],"fileInfos":[{"version":"6adbf5efd0e374ff5f427a4f26a5a413e9734eee5067a0e86da69aea41910b52","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940","746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","2cc028cd0bdb35b1b5eb723d84666a255933fffbea607f72cbd0c7c7b4bee144",{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"4378fc8122ec9d1a685b01eb66c46f62aba6b239ca7228bb6483bcf8259ee493","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"d071129cba6a5f2700be09c86c07ad2791ab67d4e5ed1eb301d6746c62745ea4","affectsGlobalScope":true},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"e8c9f4e445a489991ca1a4232667de3ac36b07ba75ea335971fbeacf2d26fe67","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},{"version":"070fafc332546049324c5eb0559b40974f700aa78eee7a12d1486035baa39558","affectsGlobalScope":true},"207a026d2561e058b5c42264b02ad7b63f79d142c4ee8d41ecd81ed7643acdff","528215f3eec43ecbb2420cfde8d88672328129643a1586a13d86d5e80c415110","1127d47e6d5d89262545d064ee90a5ccef53a80f4d81eedb3221251198ec366f","e747a4ae9c8bed522f9c9c7738775ac50455ab182f09f70498e5a7ab1260a8aa","f101f1bd698e00c226b78f37cd8921188386f596ce9978ff951a28bf8cdc9e4a","e63417caac3d8ee1bd0af9bf598c17f3af2636f57f948ac7234b60c0ca1753b5","0ec34bf0000a6da09e67bd0fc19a7f583260927eaead43776b6eedc6b5714216",{"version":"25b4a0c4fab47c373ee49df4c239826ee3430019fc0c1b5e59edc3e398b7468d","affectsGlobalScope":true},"e23424b97418eca3226fd24de079f1203eb70360622e4e093af2aff14d4be6ec","a473cf45c3d9809518f8af913312139d9f4db6887dc554e0d06d0f4e52722e6b","a668dfae917097b30fc29bbebeeb869cee22529f2aa9976cea03c7e834a1b841","04eaa93bd75f937f9184dcb95a7983800c5770cf8ddd8ac0f3734dc02f5b20ef",{"version":"c8155caf28fc7b0a564156a5df28ad8a844a3bd32d331d148d8f3ce88025c870","affectsGlobalScope":true},"45ac321f2e15d268fd74a90ddaa6467dcaaff2c5b13f95b4b85831520fb7a491","0084b54e281a37c75079f92ca20603d5731de063e7a425852b2907de4dd19932","797a9d37eb1f76143311c3f0a186ce5c0d8735e94c0ca08ff8712a876c9b4f9e","bc31e01146eec89eb870b9ad8c55d759bcbc8989a894e6f0f81f832e0d10eb04",{"version":"2866a528b2708aa272ec3eaafd3c980abb23aec1ef831cfc5eb2186b98c37ce5","affectsGlobalScope":true},{"version":"153d835dc32985120790e10102834b0a5bd979bb5e42bfbb33c0ff6260cf03ce","affectsGlobalScope":true},"a44c87a409b60f211a240341905d818f5f173420dcf7f989ee6c8a1a3d812ae9","bdaf554ae2d9d09e2a42f58a29ef7f80e5b5c1d7b96bfb717243dc91a477216e","dce8672a79c7221c10a355b905940ab57505bc480a72a5da33ba24cbf82bb75c","321ea733ae7f611077a2d7b4bc378ac4a6b7e365e1a51c71a7e5b2818e1e310a","13257840c0850d4ebd7c2b17604a9e006f752de76c2400ebc752bc465c330452","42176966283d3835c34278b9b5c0f470d484c0c0c6a55c20a2c916a1ce69b6e8","0cff7901aedfe78e314f7d44088f07e2afa1b6e4f0473a4169b8456ca2fb245d","ae7b9d7ab1652cc1866ba6e269d0eeaf1708d07327714124ed2cbd059f5e4766","69640cc2e76dad52daeb9914e6b70c5c9a5591a3a65190a2d3ea432cf0015e16","21e64a125f65dff99cc3ed366c96e922b90daed343eb52ecdace5f220401dcda","4982d94cb6427263c8839d8d6324a8bbe129e931deb61a7380f8fad17ba2cfc0",{"version":"b0b00cf2e8107ab671243a73d2fbd6296a853bebe3fcfaaca293f65aaa245eaf","affectsGlobalScope":true},"7f77304372efe3c9967e5f9ea2061f1b4bf41dc3cda3c83cdd676f2e5af6b7e6","992c6f6be16c0a1d2eec13ece33adeea2c747ba27fcd078353a8f4bb5b4fea58","3b790d08129aca55fd5ae1672d1d26594147ac0d5f2eedc30c7575eb18daef7e","a6b0abdb67d63ebe964ba5fee31bc3daf10c12eecd46b24d778426010c04c67e","e7b5a3f40f19d9eea71890c70dfb37ac5dd82cbffe5f95bc8f23c536455732d0","4fd3c4debadce3e9ab9dec3eb45f7f5e2e3d4ad65cf975a6d938d883cfb25a50","0953427f9c2498f71dd912fdd8a81b19cf6925de3e1ad67ab9a77b9a0f79bf0b","f89a6d56f0267f6e73c707f8a89d2f38e9928e10bfa505f39a4f4bf954093aee","7df562288f949945cf69c21cd912100c2afedeeb7cdb219085f7f4b46cb7dde4","9d16690485ff1eb4f6fc57aebe237728fd8e03130c460919da3a35f4d9bd97f5","ad7e61eca7f2f8bf47e72695f9f6663b75e41d87ef49abdb17c0cb843862f8aa","ecba2e44af95b0599c269a92628cec22e752868bce37396740deb51a5c547a26","46a9fb41a8f3bc7539eeebc15a6e04b9e55d7537a081615ad3614220d34c3e0f","dcc6910d95a3625fd2b0487fda055988e46ab46c357a1b3618c27b4a8dd739c9","e649840284bab8c4d09cadc125cd7fbde7529690cc1a0881872b6a9cd202819b","a364b4a8a015ae377052fa4fac94204d79a69d879567f444c7ceff1b7a18482d","60c9e27816ec8ac8df7240598bb086e95b47edfb454c5cbf4003c812e0ed6e39","6c63cb179eda2be5ab45dc146fa4151bec8ce4781986935fe40adfc69cbbf214","4926467de88a92a4fc9971d8c6f21b91eca1c0e7fc2a46cc4638ab9440c73875",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"4e0a4d84b15692ea8669fe4f3d05a4f204567906b1347da7a58b75f45bae48d3","ae68a04912ee5a0f589276f9ec60b095f8c40d48128a4575b3fdd7d93806931c","b3593bd345ebea5e4d0a894c03251a3774b34df3d6db57075c18e089a599ba76","e61a21e9418f279bc480394a94d1581b2dee73747adcbdef999b6737e34d721b","6c137dee82a61e14a1eb6a0ba56925b66fd83abf15acf72fe59a10b15e80e319","b50dc1eb21ae0cf50fdad3a52298af07a6c5aa681c55ecc68b45362294dc3972","2403a8e0780ec6f1e95f3a4f922eafdda29da975f0bffe7e35cad640b333247c","33a3e0aa4c36477e20ff180c9552b78ceb3c5f320bc0c8ea8fc8f90237f320cc","7dcc90de23c417ea963789112cc023c68f2bcf6a648339dc6baaf40ca648c29d","e2a63ec1af6a5a4c35ba4161646b5703388bb23f69601e5b0f36223a3f0947de","cf0c4790c3404e84670821dfdf727fe1023ff2c9cbe1febf24f0b2a27509ccf8","cd88c4b65d1400248777e655e58258cab8e07986c3faf70f2c38d2968e7d992d","c67c641af9d44979f3e28f88e40f92290a964f8e9ef0ea8d66204c7c78032f4f","bc6a5524c9b408e1e310ba838b5af3790cb9bdb0d60dd0d8f594ff670e770455","d8aab31ba8e618cc3eea10b0945de81cb93b7e8150a013a482332263b9305322","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","561eca7a381b96d6ccac6e4061e6d2ae53f5bc44203f3fd9f5b26864c32ae6e9","62ea38627e3ebab429f7616812a9394d327c2bc271003dfba985de9b4137369f","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"bbc19287f48d4b3c753bd2c82dd9326af19cccbfa1506f859029dfcedc7c5522","affectsGlobalScope":true}],"options":{"composite":true,"declarationMap":true,"esModuleInterop":true,"experimentalDecorators":true,"jsx":2,"module":1,"noImplicitOverride":true,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"stripInternal":true,"target":5},"fileIdsList":[[115,117],[98,99],[64,65,72,81],[56,64,72],[91],[60,65,73],[81],[62,64,72],[64],[64,66,81,90],[65],[72,81,90],[64,65,67,72,81,84,90],[67,84,90],[100],[90],[62,64,81],[54],[86],[79,91,93],[72],[53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,90,91,92,93,94,95,96,97],[78],[64,66,81,90,93],[101,102],[111,112],[111,112,113,114],[116],[87,88],[46],[45,99],[48],[46,48,51,52,104,105],[52],[50,51,99,110],[51,52],[50,91,110],[52,103,104],[52,99,103],[52,110]],"referencedMap":[[118,1],[100,2],[56,3],[57,4],[58,5],[59,6],[60,7],[61,8],[63,9],[64,9],[65,10],[66,11],[67,12],[68,13],[69,14],[101,15],[70,9],[71,16],[72,17],[75,18],[76,19],[79,9],[80,20],[81,9],[84,21],[98,22],[86,21],[90,23],[92,7],[94,24],[95,7],[103,25],[113,26],[115,27],[114,26],[117,28],[89,29],[47,30],[46,31],[49,32],[48,31],[106,33],[107,34],[52,35],[108,36],[51,37],[109,38],[104,39],[105,40]],"exportedModulesMap":[[118,1],[100,2],[56,3],[57,4],[58,5],[59,6],[60,7],[61,8],[63,9],[64,9],[65,10],[66,11],[67,12],[68,13],[69,14],[101,15],[70,9],[71,16],[72,17],[75,18],[76,19],[79,9],[80,20],[81,9],[84,21],[98,22],[86,21],[90,23],[92,7],[94,24],[95,7],[103,25],[113,26],[115,27],[114,26],[117,28],[89,29],[47,30],[46,31],[49,32],[48,31],[106,33],[107,34],[52,35],[108,36],[51,37],[109,38],[104,39],[105,40]],"semanticDiagnosticsPerFile":[45,118,99,54,100,55,56,57,58,59,60,61,62,63,64,65,66,53,96,67,68,69,101,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,98,86,90,91,92,93,97,94,95,102,103,111,113,115,114,112,117,116,87,88,89,11,10,2,12,13,14,15,16,17,18,19,3,4,23,20,21,22,24,25,26,5,27,28,29,30,6,31,32,33,34,7,39,35,36,37,38,8,43,40,41,42,1,9,44,47,46,49,48,50,106,107,52,108,51,109,104,110,105]},"version":"4.5.2"}
1
+ {"program":{"fileNames":["../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es5.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2021.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.esnext.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../../common/temp/node_modules/.pnpm/@types+crypto-js@4.0.2/node_modules/@types/crypto-js/index.d.ts","../src/encrypt.ts","../src/encrypt.test.ts","../src/hash.ts","../src/hash.test.ts","../src/human-hash.ts","../src/public-key.ts","../src/keys.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/assert.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/globals.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/async_hooks.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/buffer.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/child_process.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/cluster.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/console.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/constants.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/crypto.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/dgram.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/dns.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/domain.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/events.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/fs.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/fs/promises.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/http.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/http2.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/https.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/inspector.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/module.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/net.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/os.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/path.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/perf_hooks.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/process.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/punycode.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/querystring.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/readline.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/repl.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/stream.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/string_decoder.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/timers.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/tls.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/trace_events.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/tty.d.ts","../../../../common/temp/node_modules/.pnpm/querystring@0.2.1/node_modules/querystring/decode.d.ts","../../../../common/temp/node_modules/.pnpm/querystring@0.2.1/node_modules/querystring/encode.d.ts","../../../../common/temp/node_modules/.pnpm/querystring@0.2.1/node_modules/querystring/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/url.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/util.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/v8.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/vm.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/wasi.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/worker_threads.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/zlib.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/globals.global.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@14.18.0/node_modules/@types/node/index.d.ts","../../../../common/temp/node_modules/.pnpm/bip39@3.0.4/node_modules/bip39/types/_wordlists.d.ts","../../../../common/temp/node_modules/.pnpm/bip39@3.0.4/node_modules/bip39/types/index.d.ts","../src/seedphrase.ts","../src/validator.ts","../src/index.ts","../src/keys.test.ts","../src/public-key.test.ts","../src/seedphrase.test.ts","../src/shims.d.ts","../../../../common/temp/node_modules/.pnpm/jest-diff@26.6.2/node_modules/jest-diff/build/cleanupSemantic.d.ts","../../../../common/temp/node_modules/.pnpm/jest-diff@26.6.2/node_modules/jest-diff/build/types.d.ts","../../../../common/temp/node_modules/.pnpm/jest-diff@26.6.2/node_modules/jest-diff/build/diffLines.d.ts","../../../../common/temp/node_modules/.pnpm/jest-diff@26.6.2/node_modules/jest-diff/build/printDiffs.d.ts","../../../../common/temp/node_modules/.pnpm/jest-diff@26.6.2/node_modules/jest-diff/build/index.d.ts","../../../../common/temp/node_modules/.pnpm/pretty-format@26.6.2/node_modules/pretty-format/build/types.d.ts","../../../../common/temp/node_modules/.pnpm/pretty-format@26.6.2/node_modules/pretty-format/build/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+jest@26.0.24/node_modules/@types/jest/index.d.ts"],"fileInfos":[{"version":"89f78430e422a0f06d13019d60d5a45b37ec2d28e67eb647f73b1b0d19a46b72","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940","746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","2cc028cd0bdb35b1b5eb723d84666a255933fffbea607f72cbd0c7c7b4bee144",{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"4378fc8122ec9d1a685b01eb66c46f62aba6b239ca7228bb6483bcf8259ee493","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"d071129cba6a5f2700be09c86c07ad2791ab67d4e5ed1eb301d6746c62745ea4","affectsGlobalScope":true},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"e8c9f4e445a489991ca1a4232667de3ac36b07ba75ea335971fbeacf2d26fe67","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},{"version":"070fafc332546049324c5eb0559b40974f700aa78eee7a12d1486035baa39558","affectsGlobalScope":true},"207a026d2561e058b5c42264b02ad7b63f79d142c4ee8d41ecd81ed7643acdff","528215f3eec43ecbb2420cfde8d88672328129643a1586a13d86d5e80c415110","1127d47e6d5d89262545d064ee90a5ccef53a80f4d81eedb3221251198ec366f","e747a4ae9c8bed522f9c9c7738775ac50455ab182f09f70498e5a7ab1260a8aa","f101f1bd698e00c226b78f37cd8921188386f596ce9978ff951a28bf8cdc9e4a","56954150557572b252055e0b30c5837697731f7480eeed25debad8bbcc59d3fe","2120df17ffdc1470500148ef8c3376fd7ccb3f101c369a3ab86db8a650949237","4c2c4f53e8eedd970f8afa369d7371544fb6231bf95e659f8602e09abe74d5a5",{"version":"dc5f6951bbf5b544349cbdef895c08dee6929818abd27d7d53c38cf1209091b3","affectsGlobalScope":true},"64e2803203b14d7f104f570f2152fde13abb6edc17b2ddb33d81ad86cf43d494","2c8d9e3331aec52d9a6d4040352c00282c3abaf48053ed0944528a4845c9caa3","9b2a8f604e7c0482a9061755f00b287cc99bd8718dc82d8207dd74c599b6dc43","d0fc76a91c828fbe3f0be5d683273634b7b101068333ceed975a8a9ac464137b",{"version":"1a048ff164b8d9609f5de3139d4e37f6e8a82af82087ac414b9208f52ef8aac7","affectsGlobalScope":true},"3111079f3cb5f2b9c812ca3f46161562bce5bfb355e915f46ed46c41714dc1c3","64576aba4ff801004122056ccd049f0597aa471dcfd7670a6a0b877ee8dd97c0","b32b6b16cb0bda68199582ad6f22242d07ee75fac9b1f28a98cd838afc5eea45","4441ee4119824bfaebc49308559edd7545978f9cb41a40f115074e1031dde75f",{"version":"60693a88462d0e97900123b5bf7c73e146ce0cc94da46a61fe6775b430d2ff05","affectsGlobalScope":true},{"version":"588c69eda58b9202676ec7ca11a72c3762819b46a0ed72462c769846153c447c","affectsGlobalScope":true},"cc829932ffaf5c49092f878bec18af1fa5d8591b45a45e2b7f757f793cb3b4ed","47db10fdc4e76c4f4598cf7c91ba6bfde6cf6d8082c51860fe751643bf359739","05d7d95e24bc2897bf20ce041c3dc3cca814e07148a93999145b1a0ad491094c","d1080e49778c0b2ce656042ebfa43f89dffb96ac00f86a34762188a21857ffd4","0ce99c641ea20b0c0c09d093fc28f18f5ab31dc80033707a1ac3154399de2559","f0c33a0b325d3499cc9aded7d32886f998c9a27b465097c6cc136944d0aafdaa","44e42ed6ec9c4451ebe89524e80ac8564e9dd0988c56e6c58f393c810730595d","03c91e8833eef54dc44db99d7deb469b5e3cec82f23054b4286a2380e0e00996","1606ea615c0a5ea9f5c1376a33e34c0e1112e8dee31a5b3b8a74ce781893aa6f","9fef9de633d01cb7f01f68195626a890ededd25cf96a1e785617d08c8668230d","4455c78d226d061b1203c7614c6c6eb5f4f9db5f00d44ff47d0112de8766fbc4",{"version":"bf89ceb26132596b859cd4d129ce3f447134b444dec87966ba65cd7e8e9e0cb0","affectsGlobalScope":true},"4465a636f5f6e9665a90e30691862c9e0a3ac2edc0e66296704f10865e924f2a","9af781f03d44f5635ed7844be0ce370d9d595d4b4ec67cad88f0fac03255257e","f9fd4c3ef6de27fa0e256f4e75b61711c4be05a3399f7714621d3edc832e36b0","e49290b7a927995c0d7e6b2b9c8296284b68a9036d9966531de65185269258d7","a11d4ba43bf0825d7285d54dec6cb951685cd458a4de3c5c1800f7cbf7799009","874ca809b79276460011480a2829f4c8d4db29416dd411f71efbf8f497f0ac09","82e1723b20fa0b15a7da0d1a03fec88348f82f640f7a2f308d6c0fac780cfc7c","e0202c3e09775b86b902f21623e55896cea98750efbdf0691ca7473af06fe551","23a28f834a078986bbf58f4e3705956983ff81c3c2493f3db3e5f0e8a9507779","4febdf7f3ec92706c58e0b4e8159cd6de718284ef384260b07c9641c13fc70ce","ad7e61eca7f2f8bf47e72695f9f6663b75e41d87ef49abdb17c0cb843862f8aa","ecba2e44af95b0599c269a92628cec22e752868bce37396740deb51a5c547a26","46a9fb41a8f3bc7539eeebc15a6e04b9e55d7537a081615ad3614220d34c3e0f","a2666b43d889b4882ac6ede1c48128bac351886854e94f832b20d3730e5062c5","7335933d9f30dcfd2c4b6080a8b78e81912a7fcefb1dafccb67ca4cb4b3ac23d","a6bfe9de9adef749010c118104b071d14943802ff0614732b47ce4f1c3e383cd","4c3d0e10396646db4a1e917fb852077ee77ae62e512913bef9cccc2bb0f8bd0e","3b220849d58140dcc6718f5b52dcd29fdb79c45bc28f561cbd29eb1cac6cce13","0ee22fce41f7417a24c808d266e91b850629113c104713a35854393d55994beb","22d1b1d965baba05766613e2e6c753bb005d4386c448cafd72c309ba689e8c24",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"2a7d39ea70e483d3ebcde44031b6552940f295349bee8d486e8bdf6380162302","b50dc1eb21ae0cf50fdad3a52298af07a6c5aa681c55ecc68b45362294dc3972","2403a8e0780ec6f1e95f3a4f922eafdda29da975f0bffe7e35cad640b333247c","33a3e0aa4c36477e20ff180c9552b78ceb3c5f320bc0c8ea8fc8f90237f320cc","7dcc90de23c417ea963789112cc023c68f2bcf6a648339dc6baaf40ca648c29d","3b326fc57d670a566069f16112543a537625a2a7addd2d31c6df95d8d0542609","cf0c4790c3404e84670821dfdf727fe1023ff2c9cbe1febf24f0b2a27509ccf8","cd88c4b65d1400248777e655e58258cab8e07986c3faf70f2c38d2968e7d992d","c67c641af9d44979f3e28f88e40f92290a964f8e9ef0ea8d66204c7c78032f4f","bc6a5524c9b408e1e310ba838b5af3790cb9bdb0d60dd0d8f594ff670e770455","d8aab31ba8e618cc3eea10b0945de81cb93b7e8150a013a482332263b9305322","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","561eca7a381b96d6ccac6e4061e6d2ae53f5bc44203f3fd9f5b26864c32ae6e9","62ea38627e3ebab429f7616812a9394d327c2bc271003dfba985de9b4137369f","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"516a426e3960379f310107635b8f3a7e8c307c6c665080b128039d9299ec4087","affectsGlobalScope":true}],"options":{"composite":true,"declarationMap":true,"esModuleInterop":true,"experimentalDecorators":true,"jsx":2,"module":1,"noImplicitOverride":true,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"stripInternal":true,"target":5},"fileIdsList":[[113,115],[53],[55],[56],[57,65,66,73,82],[57,58,65,73],[59,92],[60,61,66,74],[61,82],[62,63,65,73],[63],[64,65],[65],[65,66,67,82,91],[66,67],[68,73,82,91],[65,66,68,69,73,82,85,91],[68,70,82,85,91],[53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,91,92,93,94,95,96,97,98],[65,71],[72,91],[63,65,73,82],[74],[75],[55,76],[77,87],[78],[79],[65,80],[80,81,92,94],[65,82],[83],[84],[73,85],[86],[73,87],[79,91],[92],[82,93],[94],[95],[65,67,82,91,94,96],[82,97],[99,100],[109,110],[109,110,111,112],[114],[88,89],[46],[45,53],[48],[46,48,50,51,52,102,103],[52],[50,51,53,108],[51,52],[50,92,108],[52,101,102],[52,53,101],[52,108]],"referencedMap":[[116,1],[53,2],[55,3],[56,4],[57,5],[58,6],[59,7],[60,8],[61,9],[62,10],[63,11],[64,12],[65,13],[66,14],[67,15],[68,16],[69,17],[70,18],[99,19],[71,20],[72,21],[73,22],[74,23],[75,24],[76,25],[77,26],[78,27],[79,28],[80,29],[81,30],[82,31],[83,32],[84,33],[85,34],[86,35],[87,36],[91,37],[92,38],[93,39],[94,40],[95,41],[96,42],[97,43],[101,44],[111,45],[113,46],[112,45],[115,47],[90,48],[47,49],[46,50],[49,51],[48,50],[104,52],[105,53],[52,54],[106,55],[51,56],[107,57],[102,58],[103,59]],"exportedModulesMap":[[116,1],[53,2],[55,3],[56,4],[57,5],[58,6],[59,7],[60,8],[61,9],[62,10],[63,11],[64,12],[65,13],[66,14],[67,15],[68,16],[69,17],[70,18],[99,19],[71,20],[72,21],[73,22],[74,23],[75,24],[76,25],[77,26],[78,27],[79,28],[80,29],[81,30],[82,31],[83,32],[84,33],[85,34],[86,35],[87,36],[91,37],[92,38],[93,39],[94,40],[95,41],[96,42],[97,43],[101,44],[111,45],[113,46],[112,45],[115,47],[90,48],[47,49],[46,50],[49,51],[48,50],[104,52],[105,53],[52,54],[106,55],[51,56],[107,57],[102,58],[103,59]],"semanticDiagnosticsPerFile":[45,116,53,55,56,57,58,59,60,61,62,63,64,65,66,67,54,98,68,69,70,99,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,91,92,93,94,95,96,97,100,101,109,111,113,112,110,115,114,88,89,90,11,10,2,12,13,14,15,16,17,18,19,3,4,23,20,21,22,24,25,26,5,27,28,29,30,6,31,32,33,34,7,39,35,36,37,38,8,43,40,41,42,1,9,44,47,46,49,48,50,104,105,52,106,51,107,102,108,103]},"version":"4.5.3"}
package/package.json CHANGED
@@ -1,33 +1,34 @@
1
1
  {
2
- "name": "@dxos/crypto",
3
- "version": "2.19.3-dev.cd87a074",
4
- "description": "Basic crypto key utils",
5
- "license": "AGPL-3.0",
6
- "author": "DXOS.org",
7
- "main": "dist/src/index.js",
8
- "types": "dist/src/index.d.ts",
9
- "files": [
10
- "dist",
11
- "src"
12
- ],
13
- "scripts": {
14
- "build": "toolchain build",
15
- "build:test": "toolchain build:test",
16
- "lint": "toolchain lint",
17
- "test": "toolchain test"
18
- },
19
- "dependencies": {
20
- "bip39": "^3.0.2",
21
- "crypto-js": "^3.1.9-1",
22
- "hypercore-crypto": "^2.3.0"
23
- },
24
- "devDependencies": {
25
- "@dxos/toolchain-node-library": "2.19.2",
26
- "@types/crypto-js": "~4.0.2",
27
- "@types/jest": "^26.0.7",
28
- "@types/node": "^14.0.9"
29
- },
30
- "publishConfig": {
31
- "access": "public"
32
- }
33
- }
2
+ "name": "@dxos/crypto",
3
+ "version": "2.19.4-dev.aac2d723",
4
+ "description": "Basic crypto key utils",
5
+ "license": "AGPL-3.0",
6
+ "author": "DXOS.org",
7
+ "main": "dist/src/index.js",
8
+ "types": "dist/src/index.d.ts",
9
+ "files": [
10
+ "dist",
11
+ "src"
12
+ ],
13
+ "dependencies": {
14
+ "bip39": "^3.0.2",
15
+ "crypto-js": "^3.1.9-1",
16
+ "hypercore-crypto": "^2.3.0"
17
+ },
18
+ "devDependencies": {
19
+ "@dxos/toolchain-node-library": "2.19.3",
20
+ "@types/crypto-js": "~4.0.2",
21
+ "@types/jest": "^26.0.7",
22
+ "@types/node": "^14.0.9"
23
+ },
24
+ "publishConfig": {
25
+ "access": "public"
26
+ },
27
+ "scripts": {
28
+ "build": "toolchain build",
29
+ "build:test": "toolchain build:test",
30
+ "lint": "toolchain lint",
31
+ "test": "toolchain test"
32
+ },
33
+ "readme": "# Crypto\n\n[![Build Status](https://travis-ci.com/dxos/crypto.svg?branch=master)](https://travis-ci.com/dxos/crypto)\n[![Coverage Status](https://coveralls.io/repos/github/dxos/crypto/badge.svg?branch=master)](https://coveralls.io/github/dxos/crypto?branch=master)\n[![Greenkeeper badge](https://badges.greenkeeper.io/dxos/crypto.svg)](https://greenkeeper.io/)\n[![js-semistandard-style](https://img.shields.io/badge/code%20style-semistandard-brightgreen.svg?style=flat-square)](https://github.com/standard/semistandard)\n[![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n\n## Install\n\n```\n$ npm install @dxos/crypto\n```\n\n## Usage\n\n```\nimport { createKeyPair } from '@dxos/crypto';\n\nconst { publicKey, secretKey } = createKeyPair();\n```\n\n## Contributing\n\nPRs accepted.\n\n## License\n\nGPL-3.0 © dxos\n"
34
+ }
File without changes
package/src/index.ts CHANGED
@@ -4,6 +4,7 @@
4
4
 
5
5
  export * from './encrypt';
6
6
  export * from './hash';
7
+ export * from './human-hash';
7
8
  export * from './keys';
8
9
  export * from './seedphrase';
9
10
  export * from './validator';
package/src/keys.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  import assert from 'assert';
6
6
  import crypto from 'hypercore-crypto';
7
7
 
8
- import { HumanHasher } from './humanhash';
8
+ import { HumanHasher } from './human-hash';
9
9
  import { PublicKey, PublicKeyLike } from './public-key';
10
10
 
11
11
  export const hasher = new HumanHasher();
package/src/public-key.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  import crypto from 'hypercore-crypto';
6
6
  import { inspect } from 'util';
7
7
 
8
- import { HumanHasher } from './humanhash';
8
+ import { HumanHasher } from './human-hash';
9
9
 
10
10
  export class PublicKey {
11
11
  /**
@@ -1,39 +0,0 @@
1
- /**
2
- * humanhash: Human-readable representations of digests.
3
- */
4
- export declare class HumanHasher {
5
- private readonly wordlist;
6
- /**
7
- * Transforms hex digests to human-readable strings.
8
- *
9
- * The format of these strings will look something like:
10
- * `victor-bacon-zulu-lima`. The output is obtained by compressing the input
11
- * digest to a fixed number of bytes, then mapping those bytes to one of 256
12
- * words. A default wordlist is provided, but you can override this if you
13
- * prefer.
14
- * As long as you use the same wordlist, the output will be consistent (i.e.
15
- * the same digest will always render the same representation).
16
- *
17
- * @param wordlist A list of exactly 256 words to choose from
18
- */
19
- constructor(wordlist?: string[]);
20
- /**
21
- * Humanize a given hexadecimal digest.
22
- *
23
- * Change the number of words output by specifying `words`. Change the
24
- * word separator with `separator`.
25
- *
26
- * @param hexdigest A string of hexadecimal characters to humanize
27
- * @param words How many words to output (more = safer)
28
- * @param separator The string used to seperate the words
29
- */
30
- humanize(hexdigest: string, words?: number, separator?: string): string;
31
- /**
32
- * Compress a list of byte values to a fixed target length.
33
- *
34
- * @param bytes A list of bytes (numbers from 0-254)
35
- * @param target The number of bytes to return / compress to
36
- */
37
- _compress(bytes: number[], target: number): number[];
38
- }
39
- //# sourceMappingURL=humanhash.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"humanhash.d.ts","sourceRoot":"","sources":["../../src/humanhash.ts"],"names":[],"mappings":"AA4CA;;GAEG;AAEH,qBAAa,WAAW;IAcT,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAbtC;;;;;;;;;;;;OAYG;gBAC2B,QAAQ,WAAmB;IAOzD;;;;;;;;;OASG;IACH,QAAQ,CAAE,SAAS,EAAE,MAAM,EAAE,KAAK,SAAI,EAAE,SAAS,SAAM;IAYvD;;;;;OAKG;IACH,SAAS,CAAE,KAAK,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,MAAM;CAqB3C"}
@@ -1,114 +0,0 @@
1
- "use strict";
2
- //
3
- // Copyright 2021 DXOS.org
4
- //
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.HumanHasher = void 0;
7
- // From https://github.com/SEBv15/humanhash/blob/166c1a6f70d854fe6767cdd76be1237112d4eaf1/index.js
8
- const DEFAULT_WORDLIST = [
9
- 'ack', 'alabama', 'alanine', 'alaska', 'alpha', 'angel', 'apart', 'april',
10
- 'arizona', 'arkansas', 'artist', 'asparagus', 'aspen', 'august', 'autumn',
11
- 'avocado', 'bacon', 'bakerloo', 'batman', 'beer', 'berlin', 'beryllium',
12
- 'black', 'blossom', 'blue', 'bluebird', 'bravo', 'bulldog', 'burger',
13
- 'butter', 'california', 'carbon', 'cardinal', 'carolina', 'carpet', 'cat',
14
- 'ceiling', 'charlie', 'chicken', 'coffee', 'cola', 'cold', 'colorado',
15
- 'comet', 'connecticut', 'crazy', 'cup', 'dakota', 'december', 'delaware',
16
- 'delta', 'diet', 'don', 'double', 'early', 'earth', 'east', 'echo',
17
- 'edward', 'eight', 'eighteen', 'eleven', 'emma', 'enemy', 'equal',
18
- 'failed', 'fanta', 'fifteen', 'fillet', 'finch', 'fish', 'five', 'fix',
19
- 'floor', 'florida', 'football', 'four', 'fourteen', 'foxtrot', 'freddie',
20
- 'friend', 'fruit', 'gee', 'georgia', 'glucose', 'golf', 'green', 'grey',
21
- 'hamper', 'happy', 'harry', 'hawaii', 'helium', 'high', 'hot', 'hotel',
22
- 'hydrogen', 'idaho', 'illinois', 'india', 'indigo', 'ink', 'iowa',
23
- 'island', 'item', 'jersey', 'jig', 'johnny', 'juliet', 'july', 'jupiter',
24
- 'kansas', 'kentucky', 'kilo', 'king', 'kitten', 'lactose', 'lake', 'lamp',
25
- 'lemon', 'leopard', 'lima', 'lion', 'lithium', 'london', 'louisiana',
26
- 'low', 'magazine', 'magnesium', 'maine', 'mango', 'march', 'mars',
27
- 'maryland', 'massachusetts', 'may', 'mexico', 'michigan', 'mike',
28
- 'minnesota', 'mirror', 'mississippi', 'missouri', 'mobile', 'mockingbird',
29
- 'monkey', 'montana', 'moon', 'mountain', 'muppet', 'music', 'nebraska',
30
- 'neptune', 'network', 'nevada', 'nine', 'nineteen', 'nitrogen', 'north',
31
- 'november', 'nuts', 'october', 'ohio', 'oklahoma', 'one', 'orange',
32
- 'oranges', 'oregon', 'oscar', 'oven', 'oxygen', 'papa', 'paris', 'pasta',
33
- 'pennsylvania', 'pip', 'pizza', 'pluto', 'potato', 'princess', 'purple',
34
- 'quebec', 'queen', 'quiet', 'red', 'river', 'robert', 'robin', 'romeo',
35
- 'rugby', 'sad', 'salami', 'saturn', 'september', 'seven', 'seventeen',
36
- 'shade', 'sierra', 'single', 'sink', 'six', 'sixteen', 'skylark', 'snake',
37
- 'social', 'sodium', 'solar', 'south', 'spaghetti', 'speaker', 'spring',
38
- 'stairway', 'steak', 'stream', 'summer', 'sweet', 'table', 'tango', 'ten',
39
- 'tennessee', 'tennis', 'texas', 'thirteen', 'three', 'timing', 'triple',
40
- 'twelve', 'twenty', 'two', 'uncle', 'undress', 'uniform', 'uranus', 'utah',
41
- 'vegan', 'venus', 'vermont', 'victor', 'video', 'violet', 'virginia',
42
- 'washington', 'west', 'whiskey', 'white', 'william', 'winner', 'winter',
43
- 'wisconsin', 'wolfram', 'wyoming', 'xray', 'yankee', 'yellow', 'zebra', 'zulu'
44
- ];
45
- /**
46
- * humanhash: Human-readable representations of digests.
47
- */
48
- // TODO(wittjosiah): Is this needed still?
49
- class HumanHasher {
50
- /**
51
- * Transforms hex digests to human-readable strings.
52
- *
53
- * The format of these strings will look something like:
54
- * `victor-bacon-zulu-lima`. The output is obtained by compressing the input
55
- * digest to a fixed number of bytes, then mapping those bytes to one of 256
56
- * words. A default wordlist is provided, but you can override this if you
57
- * prefer.
58
- * As long as you use the same wordlist, the output will be consistent (i.e.
59
- * the same digest will always render the same representation).
60
- *
61
- * @param wordlist A list of exactly 256 words to choose from
62
- */
63
- constructor(wordlist = DEFAULT_WORDLIST) {
64
- this.wordlist = wordlist;
65
- if (wordlist.length !== 256) {
66
- throw new Error('Wordlist must have exactly 256 items');
67
- }
68
- this.wordlist = wordlist;
69
- }
70
- /**
71
- * Humanize a given hexadecimal digest.
72
- *
73
- * Change the number of words output by specifying `words`. Change the
74
- * word separator with `separator`.
75
- *
76
- * @param hexdigest A string of hexadecimal characters to humanize
77
- * @param words How many words to output (more = safer)
78
- * @param separator The string used to seperate the words
79
- */
80
- humanize(hexdigest, words = 4, separator = '-') {
81
- const pairs = hexdigest.match(/(..?)/g);
82
- if (!pairs) {
83
- throw Error('');
84
- }
85
- const bytes = pairs.map((x) => parseInt(x, 16));
86
- const compressed = this._compress(bytes, words);
87
- return compressed.map((x) => this.wordlist[x]).join(separator);
88
- }
89
- /**
90
- * Compress a list of byte values to a fixed target length.
91
- *
92
- * @param bytes A list of bytes (numbers from 0-254)
93
- * @param target The number of bytes to return / compress to
94
- */
95
- _compress(bytes, target) {
96
- const length = bytes.length;
97
- if (target > length) {
98
- throw new Error('Fewer input bytes than requested output');
99
- }
100
- // Calculate the segment size (divide and round down)
101
- const segSize = length / target >> 0;
102
- // Split 'bytes' array into 'target' number of segments.
103
- const segments = [];
104
- for (let i = 0; i < segSize * target; i += segSize) {
105
- segments.push(bytes.slice(i, i + segSize));
106
- }
107
- // Catch any left-over bytes in the last segment.
108
- segments[segments.length - 1] = segments[segments.length - 1].concat(bytes.slice(target * segSize));
109
- const checksums = segments.map((x) => x.reduce((acc, curr) => acc ^ curr));
110
- return checksums;
111
- }
112
- }
113
- exports.HumanHasher = HumanHasher;
114
- //# sourceMappingURL=humanhash.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"humanhash.js","sourceRoot":"","sources":["../../src/humanhash.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAEF,kGAAkG;AAElG,MAAM,gBAAgB,GAAG;IACvB,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO;IACzE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ;IACzE,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW;IACvE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ;IACpE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK;IACzE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU;IACrE,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU;IACxE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM;IAClE,QAAQ,EAAE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