getEncryptionKey
getEncryptionKey(
address:string):Promise<CryptoKey>
Defined in: src/react/useEncryption.ts:349
Gets the encryption key from in-memory storage and imports it as a CryptoKey. The key must have been previously requested via requestEncryptionKey. Uses a cache to avoid re-importing the same key on every call.
Parameters
| Parameter | Type | Description |
|---|---|---|
|
|
|
The wallet address |
Returns
Promise<CryptoKey>
The CryptoKey for AES-GCM encryption/decryption
Throws
Error if the key hasn’t been requested yet
Last updated on