Skip to main content
Attested flows (attestedDecrypt, attestedCompute, attestedReveal) allow wallets to convert an encrypted handle into plaintext or a computed result. This page shows how to plug those responses into Solidity, verify the covalidator signatures, and bind attestations to the expected handles.

DecryptionAttestation Structure

Attested Decrypt

Off-chain (JS SDK):
On-chain (Solidity):

Attested Reveal

Off-chain (JS SDK):
On-chain (Solidity):

Attested Compute

Attested compute first produces a computed handle (for example handleB = handleA.ge(700)), and then returns a decryption attestation for that result handle. On-chain you verify that:
  • the attestation is valid,
  • the decryption.handle matches the expected computed handle (e.g. handleB),
  • and the decrypted value of handleB satisfies your predicate.
Off-chain (JS SDK):
On-chain (Solidity):