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
updateWalletEncryption sends 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
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
Related