Skip to content

docs: add nitro & op#2297

Merged
jcstein merged 2 commits intodocs-glow-upfrom
jcs/op-nitro-docs
Nov 11, 2025
Merged

docs: add nitro & op#2297
jcstein merged 2 commits intodocs-glow-upfrom
jcs/op-nitro-docs

Conversation

@jcstein
Copy link
Copy Markdown
Member

@jcstein jcstein commented Nov 7, 2025

Overview

@jcstein jcstein requested review from gbarros and lukecd November 7, 2025 19:44
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @jcstein, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces new documentation pages that describe how two major rollup solutions, Arbitrum Nitro and OP Stack, can integrate with Celestia for data availability. The documentation outlines the mechanisms, benefits, and specific implementations for using Celestia as an alternative data availability layer, aiming to enhance scalability and reduce costs for these blockchain stacks.

Highlights

  • Arbitrum Nitro Documentation: Added comprehensive documentation for the integration of Arbitrum Nitro with Celestia for data availability, detailing its architecture, operational flow, and key features.
  • OP Stack Documentation: Introduced new documentation explaining the integration of OP Stack with Celestia for data availability, covering its workflow, Celestia fork specifics, and benefits.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds documentation for integrating Arbitrum Nitro and OP Stack with Celestia for Data Availability. The documentation is well-structured and provides a good technical overview. My feedback focuses on improving the long-term maintainability of the documentation by using permanent links to code references.

Nitro's batch poster coordinates with the Celestia DAS server to store batch data:

1. **Batch posting**: The [`MaybePostSequencerBatch`](https://github.com/celestiaorg/nitro/blob/v3.6.8/arbnode/batch_poster.go#L1675) method checks if a DAS writer is configured and acquires a lock before posting
2. **Data storage**: The DAS writer calls the Celestia server's [`Store`](https://github.com/celestiaorg/nitro-das-celestia/blob/main/daserver/celestia.go#L302) method, which:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For long-term stability of the documentation, it's better to link to a specific commit hash or tag instead of the main branch. The main branch can be updated, which might make the line number in the link point to incorrect or irrelevant code in the future. For example, the link on line 11 correctly uses a tag (v3.6.8).

Comment on lines +11 to +18
1. **Data submission**: The batcher calls [`publishTxToL1`](https://github.com/ethereum-optimism/optimism/blob/develop/op-batcher/batcher/driver.go#L931) which retrieves batch data from the channel manager
2. **Celestia storage**: For Celestia-enabled chains, [`celestia_storage.Put`](https://github.com/celestiaorg/op-alt-da/blob/main/celestia_storage.go#L200) submits the blob to Celestia using a configured namespace
3. **Commitment recording**: A commitment identifier (version byte + blob ID) is generated and recorded on Ethereum
4. **Data retrieval**: When `op-node` needs data, it reads the commitment from Ethereum, then fetches the actual blob from Celestia

## Celestia fork differences

The [Celestia fork](https://github.com/celestiaorg/optimism/blob/celestia-develop/op-batcher/batcher/driver.go#L1092) of OP Stack includes:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The links to code on lines 11, 12, and 18 point to mutable branches (develop, main, and celestia-develop). To ensure the documentation remains accurate and the links don't break or become misleading over time, it's a best practice to use permalinks that point to a specific commit hash or a tag. This guarantees that the link will always point to the exact version of the code being referenced.

Copy link
Copy Markdown
Contributor

@gbarros gbarros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, remember to rebase to get the previous PR merge

@jcstein jcstein merged commit ce46f48 into docs-glow-up Nov 11, 2025
2 of 4 checks passed
@jcstein jcstein deleted the jcs/op-nitro-docs branch November 11, 2025 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants