Skip to Content

decryptDataBytes

decryptDataBytes(encryptedHex: string, address: string, version: EncryptionKeyVersion): Promise<Uint8Array<ArrayBufferLike>>

Defined in: src/react/useEncryption.ts:600 

Decrypts data and returns as Uint8Array (for binary data)

Parameters

ParameterTypeDefault valueDescription

encryptedHex

string

undefined

Encrypted data as hex string (IV + ciphertext + auth tag)

address

string

undefined

‐

version

EncryptionKeyVersion

"v3"

‐

Returns

Promise<Uint8Array<ArrayBufferLike>>

Decrypted data as Uint8Array

Last updated on