Skip to Content
SdkReactEncryptiondecryptDataBatch

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

ParameterTypeDescription

encryptedValues

string[]

Array of encrypted hex strings

address

string

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