Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Bridge Circuit #338

Open
Tracked by #337
ekrembal opened this issue Oct 14, 2024 · 0 comments
Open
Tracked by #337

Implement Bridge Circuit #338

ekrembal opened this issue Oct 14, 2024 · 0 comments

Comments

@ekrembal
Copy link
Member

Issue Description

With N watchtowers, Bridge circuit does this:

  1. Verify N groth16 header chain proofs, + 1 stark proof (this is the operators header chain proof)
  2. get kickoff_tx as input, calculate kickoff_txid
  3. get move_txid and operator_id from op_return of the kickoff_tx
  4. Decide on latest blockhash from given header chain proofs.
  5. Get Citrea lightclient proof with the given blockhash
  6. Get depositId using txIdToDepositId[move_txid]
  7. Get withdrawal utxo using withdrawalUTXOs[depositId]
  8. get withdrawal payment spv proof
  9. Verify that withdrawal tx has the same operator_id in its op_return

Tasks

No response

Deadline of the Issue

TBD

This was referenced Oct 14, 2024
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

No branches or pull requests

1 participant