Skip to content

docs(common): update sdk docs for user and public decryption#1498

Open
manoranjith wants to merge 1 commit intomainfrom
mano/docs/update-user-decrypt-docs
Open

docs(common): update sdk docs for user and public decryption#1498
manoranjith wants to merge 1 commit intomainfrom
mano/docs/update-user-decrypt-docs

Conversation

@manoranjith
Copy link
Copy Markdown
Contributor

  • In both cases, add an info banner that the total bit length of ciphertexts being decrypted should not exceed 2048 bits.

  • In user decrypt, emphasize that API supports batch decryption.

- In both cases, add an info banner that the total bit length of
  ciphertexts being decrypted should not exceed 2048 bits.

- In user decrypt, emphasize that API supports batch decryption.
@manoranjith manoranjith requested a review from a team as a code owner December 6, 2025 23:25
@cla-bot cla-bot bot added the cla-signed label Dec 6, 2025
```

{% hint style="info" %}
The total bit length of all ciphertexts being decrypted in a single request must not exceed 2048 bits. Each encrypted type has a specific bit length, for instance `euint8` uses 8 bits and `euint16` uses 16 bits. For the full list of encrypted types and their corresponding bit lengths, refer to the [encrypted types documentation](../solidity-guides/types.md#list-of-encrypted-types).
Copy link
Copy Markdown
Member

@jatZama jatZama Dec 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should add a warning: there is an exception for ebool taking 2 bits instead of the expected 1 bit, due to a tfhe-rs quirk. I don't know exactly this is the case, we should ask tfhe-rs team.


const keypair = instance.generateKeypair();
// userDecrypt can take a batch of handles (with their corresponding contract addresses).
// In this example we only pass one handle.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should add a specific example with at least 2 handles at once.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants