Skip to main content

Usage

Parameters

The mutation accepts an object with:

Return Value

UpdateWalletEncryptionResponse

How It Works

  1. The client re-encrypts the wallet private key with a new passkey or PIN
  2. updateWalletEncryption sends the new ciphertext to the Chipi backend
  3. The backend replaces the stored encrypted private key
  4. The wallet query cache is automatically invalidated so subsequent reads return fresh data
After calling this hook, any previous passkey or PIN used to encrypt the private key will no longer work. Make sure the new encryption is persisted before discarding the old key material.

Example Implementation