@twin.org/identity-cli 0.0.1-next.49 → 0.0.1-next.51

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.
@@ -1013,8 +1013,11 @@ async function actionCommandVerificationMethodAdd(opts) {
1013
1013
  const publicKeyHex = core.Is.uint8Array(keyPair.publicKey)
1014
1014
  ? core.Converter.bytesToHex(keyPair.publicKey, true)
1015
1015
  : "";
1016
+ const jwk = await web.Jwk.fromEd25519Private(keyPair.privateKey);
1017
+ const kid = await web.Jwk.generateKid(jwk);
1016
1018
  if (opts.console) {
1017
1019
  cliCore.CLIDisplay.value(core.I18n.formatMessage("commands.verification-method-add.labels.verificationMethodId"), verificationMethod.id);
1020
+ cliCore.CLIDisplay.value(core.I18n.formatMessage("commands.verification-method-add.labels.kid"), kid);
1018
1021
  cliCore.CLIDisplay.value(core.I18n.formatMessage("commands.verification-method-add.labels.privateKeyBase64"), privateKeyBase64);
1019
1022
  cliCore.CLIDisplay.value(core.I18n.formatMessage("commands.verification-method-add.labels.publicKeyBase64"), publicKeyBase64);
1020
1023
  cliCore.CLIDisplay.value(core.I18n.formatMessage("commands.verification-method-add.labels.privateKeyHex"), privateKeyHex);
@@ -1022,11 +1025,15 @@ async function actionCommandVerificationMethodAdd(opts) {
1022
1025
  cliCore.CLIDisplay.break();
1023
1026
  }
1024
1027
  if (core.Is.stringValue(opts?.json)) {
1025
- await cliCore.CLIUtils.writeJsonFile(opts.json, await web.Jwk.fromEd25519Private(keyPair.privateKey), opts.mergeJson);
1028
+ await cliCore.CLIUtils.writeJsonFile(opts.json, {
1029
+ kid,
1030
+ ...jwk
1031
+ }, opts.mergeJson);
1026
1032
  }
1027
1033
  if (core.Is.stringValue(opts?.env)) {
1028
1034
  await cliCore.CLIUtils.writeEnvFile(opts.env, [
1029
1035
  `DID_VERIFICATION_METHOD_ID="${verificationMethod.id}"`,
1036
+ `DID_VERIFICATION_METHOD_KID="${kid}"`,
1030
1037
  `DID_VERIFICATION_METHOD_PRIVATE_KEY="${privateKeyHex}"`,
1031
1038
  `DID_VERIFICATION_METHOD_PUBLIC_KEY="${publicKeyHex}"`
1032
1039
  ], opts.mergeEnv);
@@ -1139,7 +1146,7 @@ class CLI extends cliCore.CLIBase {
1139
1146
  return this.execute({
1140
1147
  title: "TWIN Identity",
1141
1148
  appName: "twin-identity",
1142
- version: "0.0.1-next.49", // x-release-please-version
1149
+ version: "0.0.1-next.51", // x-release-please-version
1143
1150
  icon: "🌍",
1144
1151
  supportsEnvFiles: true,
1145
1152
  overrideOutputWidth: options?.overrideOutputWidth
@@ -1010,8 +1010,11 @@ async function actionCommandVerificationMethodAdd(opts) {
1010
1010
  const publicKeyHex = Is.uint8Array(keyPair.publicKey)
1011
1011
  ? Converter.bytesToHex(keyPair.publicKey, true)
1012
1012
  : "";
1013
+ const jwk = await Jwk.fromEd25519Private(keyPair.privateKey);
1014
+ const kid = await Jwk.generateKid(jwk);
1013
1015
  if (opts.console) {
1014
1016
  CLIDisplay.value(I18n.formatMessage("commands.verification-method-add.labels.verificationMethodId"), verificationMethod.id);
1017
+ CLIDisplay.value(I18n.formatMessage("commands.verification-method-add.labels.kid"), kid);
1015
1018
  CLIDisplay.value(I18n.formatMessage("commands.verification-method-add.labels.privateKeyBase64"), privateKeyBase64);
1016
1019
  CLIDisplay.value(I18n.formatMessage("commands.verification-method-add.labels.publicKeyBase64"), publicKeyBase64);
1017
1020
  CLIDisplay.value(I18n.formatMessage("commands.verification-method-add.labels.privateKeyHex"), privateKeyHex);
@@ -1019,11 +1022,15 @@ async function actionCommandVerificationMethodAdd(opts) {
1019
1022
  CLIDisplay.break();
1020
1023
  }
1021
1024
  if (Is.stringValue(opts?.json)) {
1022
- await CLIUtils.writeJsonFile(opts.json, await Jwk.fromEd25519Private(keyPair.privateKey), opts.mergeJson);
1025
+ await CLIUtils.writeJsonFile(opts.json, {
1026
+ kid,
1027
+ ...jwk
1028
+ }, opts.mergeJson);
1023
1029
  }
1024
1030
  if (Is.stringValue(opts?.env)) {
1025
1031
  await CLIUtils.writeEnvFile(opts.env, [
1026
1032
  `DID_VERIFICATION_METHOD_ID="${verificationMethod.id}"`,
1033
+ `DID_VERIFICATION_METHOD_KID="${kid}"`,
1027
1034
  `DID_VERIFICATION_METHOD_PRIVATE_KEY="${privateKeyHex}"`,
1028
1035
  `DID_VERIFICATION_METHOD_PUBLIC_KEY="${publicKeyHex}"`
1029
1036
  ], opts.mergeEnv);
@@ -1136,7 +1143,7 @@ class CLI extends CLIBase {
1136
1143
  return this.execute({
1137
1144
  title: "TWIN Identity",
1138
1145
  appName: "twin-identity",
1139
- version: "0.0.1-next.49", // x-release-please-version
1146
+ version: "0.0.1-next.51", // x-release-please-version
1140
1147
  icon: "🌍",
1141
1148
  supportsEnvFiles: true,
1142
1149
  overrideOutputWidth: options?.overrideOutputWidth
@@ -300,7 +300,10 @@
300
300
  "packageObjectError": "Failed to fetch the package object \"{packageId}\"",
301
301
  "valueTransactionFailed": "The value transaction failed",
302
302
  "transactionFailed": "The transaction failed",
303
- "addressNotFound": "The address is missing could not be found from the seed \"{address}\""
303
+ "addressNotFound": "The address is missing could not be found from the seed \"{address}\"",
304
+ "gasStationTransactionFailed": "The gas station transaction failed",
305
+ "gasReservationFailed": "The gas reservation failed",
306
+ "gasStationExecutionFailed": "The gas station execution failed"
304
307
  },
305
308
  "vaultConnectorHelper": {
306
309
  "invalidSignature": "The JSON Web token signature could not be verified"
@@ -622,7 +625,8 @@
622
625
  "privateKeyBase64": "Private Key Base64",
623
626
  "publicKeyBase64": "Public Key Base64",
624
627
  "privateKeyHex": "Private Key Hex",
625
- "publicKeyHex": "Public Key Hex"
628
+ "publicKeyHex": "Public Key Hex",
629
+ "kid": "Key Id"
626
630
  }
627
631
  },
628
632
  "verification-method-remove": {
package/docs/changelog.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # @twin.org/identity-cli - Changelog
2
2
 
3
+ ## [0.0.1-next.51](https://github.com/twinfoundation/identity/compare/identity-cli-v0.0.1-next.50...identity-cli-v0.0.1-next.51) (2025-06-19)
4
+
5
+
6
+ ### Features
7
+
8
+ * support mainnet for alias extraction ([1114e0f](https://github.com/twinfoundation/identity/commit/1114e0f518070ef930d7d6ed73a616cce647206c))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/identity-models bumped from 0.0.1-next.50 to 0.0.1-next.51
16
+ * @twin.org/identity-connector-iota bumped from 0.0.1-next.50 to 0.0.1-next.51
17
+
18
+ ## [0.0.1-next.50](https://github.com/twinfoundation/identity/compare/identity-cli-v0.0.1-next.49...identity-cli-v0.0.1-next.50) (2025-06-19)
19
+
20
+
21
+ ### Features
22
+
23
+ * use new generateKid method ([f0fe779](https://github.com/twinfoundation/identity/commit/f0fe779323b675575bb9f80aa74f1957dc57a094))
24
+
25
+
26
+ ### Dependencies
27
+
28
+ * The following workspace dependencies were updated
29
+ * dependencies
30
+ * @twin.org/identity-models bumped from 0.0.1-next.49 to 0.0.1-next.50
31
+ * @twin.org/identity-connector-iota bumped from 0.0.1-next.49 to 0.0.1-next.50
32
+
3
33
  ## [0.0.1-next.49](https://github.com/twinfoundation/identity/compare/identity-cli-v0.0.1-next.48...identity-cli-v0.0.1-next.49) (2025-06-18)
4
34
 
5
35
 
package/locales/en.json CHANGED
@@ -78,7 +78,8 @@
78
78
  "privateKeyBase64": "Private Key Base64",
79
79
  "publicKeyBase64": "Public Key Base64",
80
80
  "privateKeyHex": "Private Key Hex",
81
- "publicKeyHex": "Public Key Hex"
81
+ "publicKeyHex": "Public Key Hex",
82
+ "kid": "Key Id"
82
83
  }
83
84
  },
84
85
  "verification-method-remove": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/identity-cli",
3
- "version": "0.0.1-next.49",
3
+ "version": "0.0.1-next.51",
4
4
  "description": "A command line interface for interacting with the identity connectors",
5
5
  "repository": {
6
6
  "type": "git",
@@ -21,8 +21,8 @@
21
21
  "@twin.org/data-json-ld": "next",
22
22
  "@twin.org/entity": "next",
23
23
  "@twin.org/entity-storage-connector-memory": "next",
24
- "@twin.org/identity-connector-iota": "0.0.1-next.49",
25
- "@twin.org/identity-models": "0.0.1-next.49",
24
+ "@twin.org/identity-connector-iota": "0.0.1-next.51",
25
+ "@twin.org/identity-models": "0.0.1-next.51",
26
26
  "@twin.org/nameof": "next",
27
27
  "@twin.org/standards-w3c-did": "next",
28
28
  "@twin.org/vault-connector-entity-storage": "next",