Skip to content

decryptInputData

decryptInputData(crypto, commitment, encryptedData, options): Promise<DecryptedData>

Defined in: ootle/src/stealth/wallet-helpers.ts:45

Decrypt an output’s encrypted data given its raw commitment + ciphertext bytes.

Derives the AEAD key (deriveAeadKey(viewSecret, senderPublicNonce)) and unblinds. Throws (via unblindOutput) when the output is not owned — callers that scan a batch should prefer decryptOwnedUtxo, which swallows that throw.

StealthCryptoProvider

The crypto seam (real WASM or a fake).

Uint8Array

The output’s 32-byte Pedersen commitment.

Uint8Array

The raw ciphertext bytes.

DecryptInputOptions

The sender public nonce, recipient view secret, and skipMemo flag.

Promise<DecryptedData>

The decrypted value / mask / memo.