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.
Parameters
Section titled “Parameters”crypto
Section titled “crypto”The crypto seam (real WASM or a fake).
commitment
Section titled “commitment”Uint8Array
The output’s 32-byte Pedersen commitment.
encryptedData
Section titled “encryptedData”Uint8Array
The raw ciphertext bytes.
options
Section titled “options”The sender public nonce, recipient view secret, and skipMemo flag.
Returns
Section titled “Returns”Promise<DecryptedData>
The decrypted value / mask / memo.