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 the printed `ZAMA_PUBLIC_KEY` and `ZAMA_PRIVATE_KEY` values into your `.env` file.
173
173
174
174
<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 applicationside 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.
176
176
</Callout>
177
177
178
178
## Walkthrough
179
179
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).
181
181
182
182
### 1. Initialize the OpenZeppelin Relayer client and Zama SDK
183
183
@@ -291,7 +291,7 @@ const result = await instance.publicDecrypt([encryptedHandle]);
### 2. User Decryption (OpenZeppelin Relayer-signed EIP-712)
294
+
### 2. User Decryption (OpenZeppelin Relayer's signed EIP-712)
295
295
296
296
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.
Copy the printed `ZAMA_PUBLIC_KEY` and `ZAMA_PRIVATE_KEY` values into your `.env` file.
173
173
174
174
<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 applicationside 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.
176
176
</Callout>
177
177
178
178
## Walkthrough
179
179
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).
181
181
182
182
### 1. Initialize the OpenZeppelin Relayer client and Zama SDK
183
183
@@ -291,7 +291,7 @@ const result = await instance.publicDecrypt([encryptedHandle]);
### 2. User Decryption (OpenZeppelin Relayer-signed EIP-712)
294
+
### 2. User Decryption (OpenZeppelin Relayer's signed EIP-712)
295
295
296
296
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.
0 commit comments