celestiaorg / celestia-node

Celestia Data Availability Nodes
Apache License 2.0
900 stars 879 forks source link

[Feature Request]: Document about how to compute `SharePointer` after submitting data to celestia? #3363

Closed zhiqiangxu closed 4 weeks ago

zhiqiangxu commented 4 weeks ago

Implementation ideas

Here is the example to use blobstream, which is pretty nice.

But as can be seen, the SharePointer is hardcoded.

How should one compute SharePointer after submitting a tx(containing blobs in my case) on celestia?

ramin commented 4 weeks ago

@rach-id

rach-id commented 4 weeks ago

Hello @zhiqiangxu 👋 To prove the PFB transaction shares: https://docs.celestia.org/developers/blobstream-proof-queries#transaction-inclusion-proof-using-the-transaction-hash To prove the PFB blob shares: https://docs.celestia.org/developers/blobstream-proof-queries#blob-inclusion-proof-using-the-corresponding-pfb-transaction-hash To prove a specific range: https://docs.celestia.org/developers/blobstream-proof-queries#specific-share-range-inclusion-proof

Currently, querying the proofs is done using an RPC endpoint and not a Celestia node. However, we will be working on supporting that in node in the upcoming months.

zhiqiangxu commented 4 weeks ago

Hey @rach-id @ramin

Thanks a lot for the detailed answer, now I see how to query for proofs by a PFB transaction hash:)

What about the finality of celestia, after submitting a tx to celestia, how long can one consider it finalized? (So that resubmitting can be scheduled if reorg happens.)

rach-id commented 4 weeks ago

After the transaction is included in a block, it's considered final. There are no reorgs in Celestia.