e.allow() or e.reveal() can be used in decryption.
Getting Started
Take this example contract:Basic Decryption
Here’s how to decrypt a handle using a wallet client:Understanding Reencryption vs Decryption
When using attested decrypt, you have two main options:- Decryption: Returns the plaintext value directly (as shown in the Basic Decryption examples above)
- Reencryption: Instead of returning plaintext, the decrypted value is re-encrypted with a different public key. This allows you to share decrypted data with third parties (delegates) without exposing the plaintext, or to decrypt it locally using your own keypair.