Usage
Parameters
The mutation accepts an object with:Return Value
UpdateWalletEncryptionResponse
How It Works
- The client re-encrypts the wallet private key with a new passkey or PIN
updateWalletEncryptionsends the new ciphertext to the Chipi backend- The backend replaces the stored encrypted private key
- The wallet query cache is automatically invalidated so subsequent reads return fresh data
Example Implementation
Related
- useMigrateWalletToPasskey — Migrate from PIN to passkey
- Use Passkeys Guide — Full passkey setup walkthrough
