You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/solidity-guides/decryption/user-decryption.md
+1-54Lines changed: 1 addition & 54 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ User decryption is facilitated by the **Relayer** and the **Key Management Syste
25
25
26
26
## Step 1: retrieve the ciphertext
27
27
28
-
To retrieve the ciphertext that needs to be re-encrypted, you can implement a view function in your smart contract. Below is an example implementation:
28
+
To retrieve the ciphertext that needs to be decrypted, you can implement a view function in your smart contract. Below is an example implementation:
29
29
30
30
```solidity
31
31
import "@fhevm/solidity/lib/FHE.sol";
@@ -44,56 +44,3 @@ Here, `balanceOf` allows retrieval of the user’s encrypted balance stored on t
44
44
## Step 2: decrypt the ciphertext
45
45
46
46
User decryption is performed client-side using the `@fhevm/sdk` library. [Refer to the guide](../../frontend/webapp.md) to learn how to include `@fhevm/sdk` in your project.
47
-
Below is an example of how to implement user decryption in a dApp:
0 commit comments