decryptDataBatch
decryptDataBatch(
encryptedValues:string[],address:string):Promise<string[]>
Defined in: src/react/useEncryption.ts:678Â
Batch decrypt multiple values efficiently with a single key lookup. Much faster than calling decryptData for each value individually.
Parameters
| Parameter | Type | Description |
|---|---|---|
|
|
|
Array of encrypted hex strings |
|
|
|
The wallet address associated with the encryption key |
Returns
Promise<string[]>
Array of decrypted plaintext values
Throws
Error if encryption key is not found in memory or decryption fails
Example
const decrypted = await decryptDataBatch(
[encrypted1, encrypted2, encrypted3],
walletAddress
);Last updated on