@ledgerhq/vault-cli 1.54.4 → 1.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
1
 
2
- > @ledgerhq/vault-cli@1.54.4 build /home/runner/work/vault-ts/vault-ts/apps/cli
2
+ > @ledgerhq/vault-cli@1.55.0 build /home/runner/work/vault-ts/vault-ts/apps/cli
3
3
  > tsc && chmod +x bin/index.js
4
4
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @ledgerhq/vault-cli
2
2
 
3
+ ## 1.55.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 4811dc6: feat: ability to deterministically generate keys pair
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [4811dc6]
12
+ - @ledgerhq/vault-common@1.72.0
13
+
14
+ ## 1.54.5
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies [3bfda65]
19
+ - @ledgerhq/vault-common@1.71.3
20
+
3
21
  ## 1.54.4
4
22
 
5
23
  ### Patch Changes
@@ -10,7 +10,7 @@ describe("genKeys", () => {
10
10
  });
11
11
  it("should generate priv/pub keys", () => {
12
12
  const spyConsole = jest.spyOn(console, "log").mockImplementation();
13
- genKeys_1.default.run();
13
+ genKeys_1.default.run({});
14
14
  expect(spyConsole).toHaveBeenCalledWith(expect.any(String));
15
15
  });
16
16
  });
@@ -1 +1 @@
1
- {"version":3,"file":"genKeys.test.js","sourceRoot":"","sources":["../../src/__tests__/genKeys.test.ts"],"names":[],"mappings":";;;;;AAAA,kEAA0C;AAE1C,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACvB,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,eAAe,EAAE,CAAC;IACzB,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,+BAA+B,EAAE,GAAG,EAAE;QACvC,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,kBAAkB,EAAE,CAAC;QACnE,iBAAO,CAAC,GAAG,EAAE,CAAC;QACd,MAAM,CAAC,UAAU,CAAC,CAAC,oBAAoB,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;IAC9D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"genKeys.test.js","sourceRoot":"","sources":["../../src/__tests__/genKeys.test.ts"],"names":[],"mappings":";;;;;AAAA,kEAA0C;AAE1C,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACvB,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,eAAe,EAAE,CAAC;IACzB,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,+BAA+B,EAAE,GAAG,EAAE;QACvC,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,kBAAkB,EAAE,CAAC;QACnE,iBAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAChB,MAAM,CAAC,UAAU,CAAC,CAAC,oBAAoB,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;IAC9D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,8 +1,14 @@
1
1
  declare const _default: {
2
2
  command: string;
3
3
  description: string;
4
- options: never[];
5
- run: () => void;
4
+ options: {
5
+ name: string;
6
+ type: StringConstructor;
7
+ description: string;
8
+ }[];
9
+ run: (options: {
10
+ entropy?: string;
11
+ }) => void;
6
12
  };
7
13
  export default _default;
8
14
  //# sourceMappingURL=genKeys.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"genKeys.d.ts","sourceRoot":"","sources":["../../src/commands/genKeys.ts"],"names":[],"mappings":";;;;;;AAEA,wBASE"}
1
+ {"version":3,"file":"genKeys.d.ts","sourceRoot":"","sources":["../../src/commands/genKeys.ts"],"names":[],"mappings":";;;;;;;;mBAYiB;QAAE,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE;;AAVrC,wBAeE"}
@@ -4,9 +4,15 @@ const utils_1 = require("@ledgerhq/vault-common/lib/crypto/utils");
4
4
  exports.default = {
5
5
  command: "genKeys",
6
6
  description: "Generate API user keys",
7
- options: [],
8
- run: () => {
9
- const keys = (0, utils_1.genKeys)();
7
+ options: [
8
+ {
9
+ name: "entropy",
10
+ type: String,
11
+ description: "Deterministic entropy (if not passed, keys pair will be randomly generated)",
12
+ },
13
+ ],
14
+ run: (options) => {
15
+ const keys = (0, utils_1.genKeys)(options.entropy);
10
16
  console.log(JSON.stringify(keys, null, 2));
11
17
  },
12
18
  };
@@ -1 +1 @@
1
- {"version":3,"file":"genKeys.js","sourceRoot":"","sources":["../../src/commands/genKeys.ts"],"names":[],"mappings":";;AAAA,mEAAkE;AAElE,kBAAe;IACb,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,wBAAwB;IACrC,OAAO,EAAE,EAAE;IACX,GAAG,EAAE,GAAG,EAAE;QACR,MAAM,IAAI,GAAG,IAAA,eAAO,GAAE,CAAC;QAEvB,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IAC7C,CAAC;CACF,CAAC"}
1
+ {"version":3,"file":"genKeys.js","sourceRoot":"","sources":["../../src/commands/genKeys.ts"],"names":[],"mappings":";;AAAA,mEAAkE;AAElE,kBAAe;IACb,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,wBAAwB;IACrC,OAAO,EAAE;QACP;YACE,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,6EAA6E;SAC3F;KACF;IACD,GAAG,EAAE,CAAC,OAA6B,EAAE,EAAE;QACrC,MAAM,IAAI,GAAG,IAAA,eAAO,EAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAEtC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IAC7C,CAAC;CACF,CAAC"}
@@ -599,8 +599,14 @@ declare const _default: {
599
599
  } | {
600
600
  command: string;
601
601
  description: string;
602
- options: never[];
603
- run: () => void;
602
+ options: {
603
+ name: string;
604
+ type: StringConstructor;
605
+ description: string;
606
+ }[];
607
+ run: (options: {
608
+ entropy?: string | undefined;
609
+ }) => void;
604
610
  } | {
605
611
  command: string;
606
612
  description: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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
- "version": "1.54.4",
3
+ "version": "1.55.0",
4
4
  "description": "A various utility command-line for Vault development",
5
5
  "homepage": "https://github.com/LedgerHQ/vault-ts",
6
6
  "license": "BSD-2-Clause",
@@ -35,7 +35,7 @@
35
35
  "qs": "^6.11.2",
36
36
  "@ledgerhq/coin-check": "0.4.1",
37
37
  "@ledgerhq/live-common-stub": "1.5.1",
38
- "@ledgerhq/vault-common": "1.71.2",
38
+ "@ledgerhq/vault-common": "1.72.0",
39
39
  "@ledgerhq/vault-utils": "1.0.0"
40
40
  },
41
41
  "devDependencies": {