Regarding error: "user error (cannot decrypt signing key with index 0: decryption failure: wrong password)"

Hello. I’m experiencing som issues with the signing key. I’m trying to run:

concordium-client module deploy dist/module.wasm.v1 --sender <ACCOUNT>  --name <NAME>  --grpc-port 20001

and I’m prompted to give password and signing key:

Enter password for credential with index 0 and signing key with index 0:` 

I get the error:

Vconcordium-client: user error (cannot decrypt signing key with index 0: decryption failure: wrong password)

I assume the password is for the wallet, but what is the signing key? And what is the format for returning both values in the terminal suppouse to be?

Thank you!

Hello jskjsk,

The error “cannot decrypt signing key with index 0: decryption failure: wrong password” suggests that the password entered is incorrect for decrypting the signing key, or the user keys are not present.

Ensure that you are using the correct password associated with your wallet or credential. Verify that the credential index is correct and the key file is accessible and not corrupted.

https://developer.concordium.software/en/mainnet/net/references/concordium-client.html

Hi Zoltan. Thank you for getting back to me.

I’m certain the password is correct since I’m able to deploy other modules using this password.

Following your link I’m trying to check the account with concordium-client config show. I do not have ‘cidx’ and ‘kidx’, they are just named ‘0’ and ‘0’. Do I need to set that with the steps here Concordium Client — Concordium documentation in order for it to work?

Thanks again

If you are certain the password is correct but still encountering issues, you may need to explicitly set the credential index (cidx) and key index (kidx). Use the following commands to ensure they are correctly configured:

  1. Check the current configuration:
concordium-client config show
  1. Set the credential and key indices:
concordium-client config set cidx 0
concordium-client config set kidx 0
  1. Deploy the module again:
concordium-client module deploy dist/module.wasm.v1 --sender <ACCOUNT> --name <NAME> --grpc-port 20001

For me, there is no set command for config:

cwd % concordium-client config -h  
Usage: concordium-client config COMMAND

  Commands for inspecting and changing local configuration.

Available options:
  -h,--help                Show this help text

Available commands:
  init                     Initialize configuration.
  show                     Show configuration.
  export-backup            Save config to backup file, optionally encrypted with a password
  import-backup            Import config backup file, requires password if encrypted
  account                  Commands for inspecting and changing account-specific configuration.

I’ve tried to add a new account to the wallet, but I have the same issue :frowning: Any other ideas?

Hi there
When you exported the keys from the wallet, did it ask you to provide a password for encrypting the backup?
If so, please try this password.

Hi limemloh. It asks for a password to show the private key, when I click on “Export private key”, but that is just the password to the wallet and with that, I’m able to do the export. But when I use the same password for deploying, it fails…