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: pages/stack/interop/reading-logs.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ The process works through the [`CrossL2Inbox`](https://github.com/ethereum-optim
47
47
### Key components
48
48
49
49
***[Identifier](/stack/interop/tutorials/relay-messages-cast#message-identifier)**: A struct containing information about the log, including `chainId`, `origin` (contract address), and other log metadata
50
-
***validateMessage**: Function that verifies a log's authenticity before allowing its use
50
+
***[validateMessage](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts-bedrock/src/L2/CrossL2Inbox.sol#L79)**: Function that verifies a log's authenticity before allowing its use
51
51
52
52
## Example: cross-chain attestation verification
53
53
@@ -104,7 +104,7 @@ sequenceDiagram
104
104
105
105
2. The DeFi application calls a verification function on an attestation verifier contract, passing the attestation's identifier and event data.
106
106
107
-
3. The attestation verifier calls [`validateMessage()`](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts-bedrock/src/L2/CrossL2Inbox.sol#L79) on the `CrossL2Inbox` contract, passing the attestation identifier and a hash of the event data.
107
+
3. The attestation verifier calls `validateMessage()` on the `CrossL2Inbox` contract, passing the attestation identifier and a hash of the event data.
108
108
109
109
4. The [`CrossL2Inbox`](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts-bedrock/src/L2/CrossL2Inbox.sol) contract interacts with the [`OP-Supervisor`](/stack/interop/op-supervisor) service to check if the specified log exists on the source chain.
110
110
@@ -120,7 +120,7 @@ sequenceDiagram
120
120
121
121
When implementing an attestation verification system using `CrossL2Inbox`, you would need to:
122
122
123
-
1.**Create an [Identifier struct](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts-bedrock/src/L2/CrossL2Inbox.sol#L13)** that uniquely identifies the attestation event:
123
+
1.**Create an Identifier struct** that uniquely identifies the attestation event:
124
124
* Include the source chain ID where the attestation was created
125
125
* Specify the EAS contract address (origin) that emitted the event
126
126
* Include other necessary parameters to identify the specific log
0 commit comments