Skip to content

Commit 25e3adc

Browse files
committed
update links
1 parent a65245c commit 25e3adc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pages/stack/interop/reading-logs.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ The process works through the [`CrossL2Inbox`](https://github.com/ethereum-optim
4747
### Key components
4848

4949
* **[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
5151

5252
## Example: cross-chain attestation verification
5353

@@ -104,7 +104,7 @@ sequenceDiagram
104104

105105
2. The DeFi application calls a verification function on an attestation verifier contract, passing the attestation's identifier and event data.
106106

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.
108108

109109
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.
110110

@@ -120,7 +120,7 @@ sequenceDiagram
120120

121121
When implementing an attestation verification system using `CrossL2Inbox`, you would need to:
122122

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:
124124
* Include the source chain ID where the attestation was created
125125
* Specify the EAS contract address (origin) that emitted the event
126126
* Include other necessary parameters to identify the specific log

0 commit comments

Comments
 (0)