@twin.org/identity-cli 0.0.1-next.15 → 0.0.1-next.17
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.
- package/dist/cjs/index.cjs +3 -1
- package/dist/esm/index.mjs +3 -1
- package/dist/locales/en.json +6 -3
- package/docs/changelog.md +1 -1
- package/package.json +3 -3
package/dist/cjs/index.cjs
CHANGED
|
@@ -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.
|
|
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);
|
package/dist/esm/index.mjs
CHANGED
|
@@ -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 =
|
|
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);
|
package/dist/locales/en.json
CHANGED
|
@@ -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",
|
|
@@ -232,7 +233,9 @@
|
|
|
232
233
|
"entityStorageVaultConnector": {
|
|
233
234
|
"keyAlreadyExists": "The key \"{existingId}\" already exists in the vault",
|
|
234
235
|
"keyNotFound": "The key \"{notFoundId}\" was not found in the vault",
|
|
235
|
-
"secretNotFound": "The secret \"{notFoundId}\" was not found in the vault"
|
|
236
|
+
"secretNotFound": "The secret \"{notFoundId}\" was not found in the vault",
|
|
237
|
+
"unsupportedKeyType": "The key type \"{keyType}\" is not supported",
|
|
238
|
+
"keyTypeMismatch": "The key type \"{keyType}\" does not match the requested encryption method \"{encryptionType}\""
|
|
236
239
|
},
|
|
237
240
|
"iotaWalletConnector": {
|
|
238
241
|
"transferFailed": "The wallet transfer failed.",
|
package/docs/changelog.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/identity-cli",
|
|
3
|
-
"version": "0.0.1-next.
|
|
3
|
+
"version": "0.0.1-next.17",
|
|
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.
|
|
26
|
-
"@twin.org/identity-models": "0.0.1-next.
|
|
25
|
+
"@twin.org/identity-connector-iota": "0.0.1-next.17",
|
|
26
|
+
"@twin.org/identity-models": "0.0.1-next.17",
|
|
27
27
|
"@twin.org/nameof": "next",
|
|
28
28
|
"@twin.org/standards-w3c-did": "next",
|
|
29
29
|
"@twin.org/vault-connector-entity-storage": "next",
|