Skip to content

Commit 1f4df86

Browse files
committed
chore: apply PR suggestions
1 parent 9e0962f commit 1f4df86

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

content/relayer/1.4.x/guides/zama-fhevm-counter-guide.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ npx ts-node examples/relayers/zama/counter.ts
157157
The script should:
158158

159159
1. Read the encrypted counter handle from the contract.
160-
2. Attempt decryption (public first, then user decryption with an OpenZeppelin Relayer-signed EIP-712 payload).
160+
2. Attempt decryption (public first, then user decryption with an OpenZeppelin Relayer signed EIP-712 payload).
161161
3. Submit an encrypted `increment()` through the OpenZeppelin Relayer and poll until the transaction is mined or confirmed.
162162
4. Re-read and decrypt the updated counter value.
163163

@@ -172,12 +172,12 @@ npx ts-node examples/relayers/zama/generate-keypair.ts
172172
Copy the printed `ZAMA_PUBLIC_KEY` and `ZAMA_PRIVATE_KEY` values into your `.env` file.
173173

174174
<Callout>
175-
The decryption keypair is an application-side secret. Do not pass the private key to the OpenZeppelin Relayer; it is only used by the Zama Relayer SDK to decrypt results returned by the Zama Relayer.
175+
The decryption keypair is an application side secret. Do not pass the private key to the OpenZeppelin Relayer; it is only used by the Zama Relayer SDK to decrypt results returned by the Zama Relayer.
176176
</Callout>
177177

178178
## Walkthrough
179179

180-
The following snippets show the OpenZeppelin Relayer-specific integration points from `counter.ts`. Full code is in the [SDK repository](https://github.com/OpenZeppelin/openzeppelin-relayer-sdk/tree/main/examples/relayers/zama).
180+
The following snippets show the OpenZeppelin Relayer's specific integration points from `counter.ts`. Full code is in the [SDK repository](https://github.com/OpenZeppelin/openzeppelin-relayer-sdk/tree/main/examples/relayers/zama).
181181

182182
### 1. Initialize the OpenZeppelin Relayer client and Zama SDK
183183

@@ -291,7 +291,7 @@ const result = await instance.publicDecrypt([encryptedHandle]);
291291
const clear = result.clearValues[encryptedHandle as `0x${string}`];
292292
```
293293

294-
### 2. User Decryption (OpenZeppelin Relayer-signed EIP-712)
294+
### 2. User Decryption (OpenZeppelin Relayer's signed EIP-712)
295295

296296
When decryption requires authorization, the Zama Relayer SDK builds an EIP-712 payload and the **OpenZeppelin Relayer** signs it via `signTypedData`. The resulting signature is passed to `userDecrypt`, which uses it to authorize the Zama Relayer to return the cleartext.
297297

content/relayer/guides/zama-fhevm-counter-guide.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ npx ts-node examples/relayers/zama/counter.ts
157157
The script should:
158158

159159
1. Read the encrypted counter handle from the contract.
160-
2. Attempt decryption (public first, then user decryption with an OpenZeppelin Relayer-signed EIP-712 payload).
160+
2. Attempt decryption (public first, then user decryption with an OpenZeppelin Relayer's signed EIP-712 payload).
161161
3. Submit an encrypted `increment()` through the OpenZeppelin Relayer and poll until the transaction is mined or confirmed.
162162
4. Re-read and decrypt the updated counter value.
163163

@@ -172,12 +172,12 @@ npx ts-node examples/relayers/zama/generate-keypair.ts
172172
Copy the printed `ZAMA_PUBLIC_KEY` and `ZAMA_PRIVATE_KEY` values into your `.env` file.
173173

174174
<Callout>
175-
The decryption keypair is an application-side secret. Do not pass the private key to the OpenZeppelin Relayer; it is only used by the Zama Relayer SDK to decrypt results returned by the Zama Relayer.
175+
The decryption keypair is an application side secret. Do not pass the private key to the OpenZeppelin Relayer; it is only used by the Zama Relayer SDK to decrypt results returned by the Zama Relayer.
176176
</Callout>
177177

178178
## Walkthrough
179179

180-
The following snippets show the OpenZeppelin Relayer-specific integration points from `counter.ts`. Full code is in the [SDK repository](https://github.com/OpenZeppelin/openzeppelin-relayer-sdk/tree/main/examples/relayers/zama).
180+
The following snippets show the OpenZeppelin Relayer's specific integration points from `counter.ts`. Full code is in the [SDK repository](https://github.com/OpenZeppelin/openzeppelin-relayer-sdk/tree/main/examples/relayers/zama).
181181

182182
### 1. Initialize the OpenZeppelin Relayer client and Zama SDK
183183

@@ -291,7 +291,7 @@ const result = await instance.publicDecrypt([encryptedHandle]);
291291
const clear = result.clearValues[encryptedHandle as `0x${string}`];
292292
```
293293

294-
### 2. User Decryption (OpenZeppelin Relayer-signed EIP-712)
294+
### 2. User Decryption (OpenZeppelin Relayer's signed EIP-712)
295295

296296
When decryption requires authorization, the Zama Relayer SDK builds an EIP-712 payload and the **OpenZeppelin Relayer** signs it via `signTypedData`. The resulting signature is passed to `userDecrypt`, which uses it to authorize the Zama Relayer to return the cleartext.
297297

0 commit comments

Comments
 (0)