Merge pull request #453 from zama-ai/fd0r/chore/small_fix_handle_doc_0_5_x

chore: fix small typo in the documentation about re-encryption
This commit is contained in:
Luis Montero
2024-08-01 09:29:26 +02:00
committed by GitHub

View File

@@ -19,9 +19,9 @@ You can read about an actual implemention in [our decryption guide](../guides/de
Reencryption is performed on the client side by calling the gateway service using the [fhevmjs](https://github.com/zama-ai/fhevmjs/) library. To do this, you need to provide a view function that returns the ciphertext to be reencrypted.
1. The dApp retrieves the ciphertext from the view function (e.g., balanceOf).
1. The dApp retrieves the handle from the view function (e.g., balanceOf).
2. The dApp generates a keypair for the user and requests the user to sign the public key.
3. The dApp calls the gateway, providing the ciphertext, public key, user address, contract address, and the user's signature.
3. The dApp calls the gateway, providing the handle, public key, user address, contract address, and the user's signature.
4. The dApp decrypts the received value with the private key.
You can read [our guide explaining how to use it](../guides/reencryption.md).