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

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,9 @@ 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.Is.uint8Array(keyPair.publicKey) ? core.Converter.bytesToBase64(keyPair.publicKey) : "";
953
+ const publicKey = core.Is.uint8Array(keyPair.publicKey)
954
+ ? core.Converter.bytesToBase64(keyPair.publicKey)
955
+ : "";
954
956
  if (opts.console) {
955
957
  cliCore.CLIDisplay.value(core.I18n.formatMessage("commands.verification-method-add.labels.verificationMethodId"), verificationMethod.id);
956
958
  cliCore.CLIDisplay.value(core.I18n.formatMessage("commands.verification-method-add.labels.privateKey"), privateKey);
@@ -947,7 +947,9 @@ 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 = Is.uint8Array(keyPair.publicKey) ? Converter.bytesToBase64(keyPair.publicKey) : "";
950
+ const publicKey = Is.uint8Array(keyPair.publicKey)
951
+ ? Converter.bytesToBase64(keyPair.publicKey)
952
+ : "";
951
953
  if (opts.console) {
952
954
  CLIDisplay.value(I18n.formatMessage("commands.verification-method-add.labels.verificationMethodId"), verificationMethod.id);
953
955
  CLIDisplay.value(I18n.formatMessage("commands.verification-method-add.labels.privateKey"), privateKey);
@@ -207,7 +207,8 @@
207
207
  "stateControllerMissing": "The state controller address is missing from the metadata",
208
208
  "verificationMethodNotFound": "The verification method could not be found",
209
209
  "serviceNotFound": "The service could not be found",
210
- "publicKeyJwkMissing": "The verification method contains no publicKeyJwk",
210
+ "publicKeyJwkMissing": "The verification method contains no publicKeyJwk in method \"{method}\"",
211
+ "verificationKeyMissing": "The verification key is missing from the vault for method \"{method}\"",
211
212
  "createVerifiableCredentialFailed": "Creating the verifiable credential failed",
212
213
  "checkingVerifiableCredentialFailed": "Checking the verifiable credential failed",
213
214
  "createVerifiablePresentationFailed": "Creating the verifiable presentation failed",
@@ -215,7 +216,7 @@
215
216
  "expectingJwtCredential": "Expecting JWT credential in the presentation",
216
217
  "keyIndexOutOfRange": "The supplied keyIndex is not in the range of the key list",
217
218
  "createProofFailed": "Creating the signature for the data failed",
218
- "methodMissing": "The verification method specified does not exist",
219
+ "methodMissing": "The verification method specified does not exist \"{method}\"",
219
220
  "verifyProofFailed": "Verifying the signature for the data failed",
220
221
  "revokeVerifiableCredentialsFailed": "Revoking verifiable credentials failed",
221
222
  "unrevokeVerifiableCredentialsFailed": "Unrevoking verifiable credentials failed",
package/docs/changelog.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # @twin.org/identity-cli - Changelog
2
2
 
3
- ## v0.0.1-next.16
3
+ ## v0.0.1-next.18
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.16",
3
+ "version": "0.0.1-next.18",
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.16",
26
- "@twin.org/identity-models": "0.0.1-next.16",
25
+ "@twin.org/identity-connector-iota": "0.0.1-next.18",
26
+ "@twin.org/identity-models": "0.0.1-next.18",
27
27
  "@twin.org/nameof": "next",
28
28
  "@twin.org/standards-w3c-did": "next",
29
29
  "@twin.org/vault-connector-entity-storage": "next",