Shield and unshield CCD on an account#

Accounts on the Concordium blockchain have two balances, the Balance and the shielded balance. You can move funds between these two balances using either a shield CCD transaction or an unshield CCD transaction.

When you shield an amount on an account, only the account’s credential holder can see the shielded amounts. Other participants in the network will be able to see the shielding transaction, but can’t see the shielded balance or any shielded transfers going in or out of the account. You can’t make shielded transfers on multi-signature accounts, only on accounts with a single credential.

If you have an account with CCD in the shielded balance, you can’t add new credentials to that account. Furthermore, once a shielded transfer has been logged on an account, you’ll no longer be able to add more credentials to that account. This is also the case even if you unshield all CCD in the shielded balance.

Warning

Do not shield all of your funds or you will not have enough funds to cover transaction fees for unshielding or sending them.

Note

The amount contained in the Balance is publicly visible, while the amount on the Shielded balance is encrypted and is only visible for the account holder. Moving funds between the balances is also publicly visible, including the amount. Only shielded transfers between two different accounts have their amounts encrypted.

Note

All transfers and transactions cost a fee, including shielding and unshielding transactions. The fee is based on the set NRG for that transaction and the current exchange rate. The cost of transaction fees is stable in Euros, and therefore the price in CCD varies depending on the CCD to EUR exchange rate. The fee will always be deducted from the Balance of the account, so it is important to have some available CCDs to cover fees. You can see the fee in the transaction log.

Note

On Testnet you can request CCDs for testing purposes. Use the button in either Desktop Wallet, Concordium Wallet for Android, or Concordium Legacy Wallet to request 2000 CCDs.

  1. Go to Accounts and select the relevant account.

  2. Select Shield.

    ../../_images/dw-shield.png
  3. Enter the amount of CCD that you want to shield. If the amount you want to transfer including the transfer fee exceeds the amount in your account, you’ll see a message saying Insufficient funds. This means that there’s not enough CCD in the account and you’ll have to change the amount. Also, the amount must be greater than zero. Select Continue.

    ../../_images/dw-shield-ccd.png
  4. There’s a message saying Waiting for device. Please connect your Ledger. Connect the Ledger to the computer and enter your PIN on Ledger.

  5. Press the right button to navigate to the Concordium app, and then press both buttons to open the app. The Ledger says Concordium is ready. Wait for the message in the Desktop Wallet saying Ledger Nano S is ready or Ledger Nano S Plus is ready and select Submit.

  6. Press both buttons on the Ledger to confirm the decryption.

  7. Review the transaction on the Ledger and verify that the information matches the Transaction details in the Desktop Wallet. Navigate to the right and verify the sender address is correct. Continue navigating to the right and verify that the amount and the recipient address are correct.

  8. Press both buttons to sign the transaction. In the Desktop Wallet, you can see that the transfer has been submitted to the chain. Select Finish. When the transaction has been finalized, you can see the shielded balance on the account overview.