fix: anchor EVM roots by multihash digest#760
Open
eloramirez1356 wants to merge 4 commits intoceramicnetwork:mainfrom
Open
fix: anchor EVM roots by multihash digest#760eloramirez1356 wants to merge 4 commits intoceramicnetwork:mainfrom
eloramirez1356 wants to merge 4 commits intoceramicnetwork:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix the EVM anchor root digest handling and expose persisted chain proof metadata through Flight SQL.
This PR now covers two related pieces:
ceramic.v0.chain_proofsTogether, these changes make anchoring both correct and externally verifiable.
Changes
EVM anchor root digest fix
Flight SQL chain proof exposure
ceramic.v0.chain_proofschain_idtransaction_hashtransaction_inputblock_hashtimestampevent-svcproof storage into the public query surfaceWhy
Ceramic already stores and uses chain proof metadata internally when validating anchors, but that metadata was not previously exposed through the public Flight SQL surface.
That made user-facing verification harder, because downstream consumers could confirm that anchoring happened, but could not easily retrieve the corresponding blockchain transaction metadata from the node itself.
With this PR:
Validation
Ran targeted tests for the new proof-exposure path:
cargo test -p ceramic-pipeline chain_proof -- --nocapturecargo test -p ceramic-flight chain_proofs -- --nocaptureAlso verified repository-wide checks:
make check-fmtmake buildAnd confirmed locally that the new table is exposed and queryable:
ceramic-one query tables ceramic --db-schema-filter v0ceramic-one query statement-query "SELECT chain_id, transaction_hash, transaction_input, block_hash, timestamp FROM ceramic.v0.chain_proofs ORDER BY timestamp DESC LIMIT 10"Notes
This PR exposes proof metadata that is already derived from public blockchain anchoring activity. It does not introduce new private application data, but it does make anchor verification materially easier for downstream consumers.