The TxCommitment is the commitment of the data Blob.
The format for serializedBlobPointerData the const CelestiaMessageHeaderFlag byte = 0x63 plus the serialized blob pointer data: celestia msg header flag | height | start | length | commitment | data root
We need to work with the celestia nitro integration version v3.2.1-rc.1 and nitro-contracts celestia fork v2.1.0
The method that the celestia DA client use to read and write from celestia are implemented in another repo: https://github.com/celestiaorg/nitro-das-celestia
Store:
https://github.com/celestiaorg/nitro-das-celestia/blob/56804d494c88c39bbf91d65a241245cb9f18aa33/das/celestia.go#L221
This method
Submit
API to send the data to celestiaDataRoot
)serializedBlobPointerData
that will become thesequencerMsg
in nitroThe return value of this
Store
methodserializedBlobPointerData
, is thesequencerMsg
that will be sent to L1:https://github.com/celestiaorg/nitro-das-celestia/blob/56804d494c88c39bbf91d65a241245cb9f18aa33/das/celestia.go#L374-L394
The BlobPointer is
The
TxCommitment
is the commitment of the data Blob.The format for
serializedBlobPointerData
theconst CelestiaMessageHeaderFlag byte = 0x63
plus the serialized blob pointer data:celestia msg header flag | height | start | length | commitment | data root
The RPC method to
Read
from DA ishttps://github.com/celestiaorg/nitro-das-celestia/blob/56804d494c88c39bbf91d65a241245cb9f18aa33/das/celestia.go#L397