Skip to content
docs

decrypt

decrypt(ciphertext, decryptionKey): Uint8Array

Defined in: crypto.ts:179

Decrypt with the identity’s decryption key (G1, 48 bytes compressed). Throws when the ciphertext does not open consistently under that key (wrong key, or a ciphertext changed after encryption).

BytesLike

BytesLike

Uint8Array