Skip to content

[tesseract]: Index ZK consensus proofs in the indexer PostgreSQL database #732

Open
dharjeezy wants to merge 12 commits intorelayer-v2from
dami/zk-proof-indexer-db
Open

[tesseract]: Index ZK consensus proofs in the indexer PostgreSQL database #732
dharjeezy wants to merge 12 commits intorelayer-v2from
dami/zk-proof-indexer-db

Conversation

@dharjeezy
Copy link
Copy Markdown
Contributor

@dharjeezy dharjeezy commented Mar 24, 2026

This PR introduces a proof-indexer crate that stores ZK BEEFY consensus proofs in the indexer PostgreSQL at proof generation time in the BEEFY prover, making them queryable via SubQuery GraphQL so applications can fetch and submit proofs themselves.

@dharjeezy dharjeezy changed the title Index ZK consensus proofs in the indexer PostgreSQL database [tesseract]: Index ZK consensus proofs in the indexer PostgreSQL database Mar 24, 2026
@dharjeezy dharjeezy requested a review from seunlanlege March 25, 2026 10:22
@dharjeezy dharjeezy requested a review from seunlanlege March 25, 2026 13:12
@dharjeezy dharjeezy requested a review from seunlanlege March 25, 2026 16:09
@dharjeezy dharjeezy marked this pull request as draft March 25, 2026 16:32
@dharjeezy dharjeezy requested a review from seunlanlege March 25, 2026 16:32
@seunlanlege seunlanlege marked this pull request as ready for review March 26, 2026 08:51
Base automatically changed from dami/introduce-handler-v2 to relayer-v2 March 26, 2026 09:39
…o dami/zk-proof-indexer-db

# Conflicts:
#	evm/src/consensus/BeefyV1.sol
#	evm/src/consensus/BeefyV1FiatShamir.sol
#	evm/src/consensus/ConsensusRouter.sol
#	evm/src/consensus/SP1Beefy.sol
#	evm/src/core/HandlerV2.sol
#	evm/test/HandlerV2Test.sol
#	evm/test/TestConsensusClientV2.sol
#	sdk/packages/core/contracts/interfaces/IConsensusV2.sol
and submit them on-chain via HandlerV2.handleConsensus().
"""
type ZkConsensusProof @entity {
id: ID!
Copy link
Copy Markdown
Member

@Wizdave97 Wizdave97 Mar 26, 2026

Choose a reason for hiding this comment

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

Unique constraint needed here or else the ON CONFLICT check in insertion will fail

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.

3 participants