@twin.org/identity-cli 0.0.1-next.15 → 0.0.1-next.16

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.
@@ -950,7 +950,7 @@ async function actionCommandVerificationMethodAdd(opts) {
950
950
  cliCore.CLIDisplay.spinnerStop();
951
951
  const keyPair = await vaultConnector.getKey(`${localIdentity}/${verificationMethod.id}`);
952
952
  const privateKey = core.Converter.bytesToBase64(keyPair.privateKey);
953
- const publicKey = core.Converter.bytesToBase64(keyPair.publicKey);
953
+ const publicKey = core.Is.uint8Array(keyPair.publicKey) ? core.Converter.bytesToBase64(keyPair.publicKey) : "";
954
954
  if (opts.console) {
955
955
  cliCore.CLIDisplay.value(core.I18n.formatMessage("commands.verification-method-add.labels.verificationMethodId"), verificationMethod.id);
956
956
  cliCore.CLIDisplay.value(core.I18n.formatMessage("commands.verification-method-add.labels.privateKey"), privateKey);
@@ -947,7 +947,7 @@ async function actionCommandVerificationMethodAdd(opts) {
947
947
  CLIDisplay.spinnerStop();
948
948
  const keyPair = await vaultConnector.getKey(`${localIdentity}/${verificationMethod.id}`);
949
949
  const privateKey = Converter.bytesToBase64(keyPair.privateKey);
950
- const publicKey = Converter.bytesToBase64(keyPair.publicKey);
950
+ const publicKey = Is.uint8Array(keyPair.publicKey) ? Converter.bytesToBase64(keyPair.publicKey) : "";
951
951
  if (opts.console) {
952
952
  CLIDisplay.value(I18n.formatMessage("commands.verification-method-add.labels.verificationMethodId"), verificationMethod.id);
953
953
  CLIDisplay.value(I18n.formatMessage("commands.verification-method-add.labels.privateKey"), privateKey);
@@ -232,7 +232,9 @@
232
232
  "entityStorageVaultConnector": {
233
233
  "keyAlreadyExists": "The key \"{existingId}\" already exists in the vault",
234
234
  "keyNotFound": "The key \"{notFoundId}\" was not found in the vault",
235
- "secretNotFound": "The secret \"{notFoundId}\" was not found in the vault"
235
+ "secretNotFound": "The secret \"{notFoundId}\" was not found in the vault",
236
+ "unsupportedKeyType": "The key type \"{keyType}\" is not supported",
237
+ "keyTypeMismatch": "The key type \"{keyType}\" does not match the requested encryption method \"{encryptionType}\""
236
238
  },
237
239
  "iotaWalletConnector": {
238
240
  "transferFailed": "The wallet transfer failed.",
package/docs/changelog.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # @twin.org/identity-cli - Changelog
2
2
 
3
- ## v0.0.1-next.15
3
+ ## v0.0.1-next.16
4
4
 
5
5
  - Initial Release
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/identity-cli",
3
- "version": "0.0.1-next.15",
3
+ "version": "0.0.1-next.16",
4
4
  "description": "A command line interface for interacting with the identity connectors",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,8 +22,8 @@
22
22
  "@twin.org/data-json-ld": "next",
23
23
  "@twin.org/entity": "next",
24
24
  "@twin.org/entity-storage-connector-memory": "next",
25
- "@twin.org/identity-connector-iota": "0.0.1-next.15",
26
- "@twin.org/identity-models": "0.0.1-next.15",
25
+ "@twin.org/identity-connector-iota": "0.0.1-next.16",
26
+ "@twin.org/identity-models": "0.0.1-next.16",
27
27
  "@twin.org/nameof": "next",
28
28
  "@twin.org/standards-w3c-did": "next",
29
29
  "@twin.org/vault-connector-entity-storage": "next",