-
Notifications
You must be signed in to change notification settings - Fork 0
docs: add research document on how to handle asyncrony with zk recursion #8
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
base: main
Are you sure you want to change the base?
Conversation
WalkthroughThis change introduces a new documentation file that explains an asynchronous interaction pattern using recursive zero-knowledge (ZK) computations. The document details a system where a dedicated ZK coprocessor handles recursive computations, proof generation, and blockchain submissions. It outlines a step-by-step flow starting from an on-chain commitment through multiple off-chain computations, culminating with user and trader interactions, and includes diagrams and tables describing roles, conditions, and verification processes. Changes
Sequence Diagram(s)sequenceDiagram
participant BC as Blockchain
participant CoOp as Coprocessor Operator
participant U as User
participant T as Trader
U->>BC: Submit on-chain commitment
BC->>CoOp: Trigger recursive ZK computation
CoOp->>CoOp: Perform computations & update zk-nonce
CoOp->>BC: Submit proof and updated state
BC->>U: Request signed transaction (market price trigger)
U->>BC: Send signed transaction
BC->>T: Notify trader of final transaction
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
Note 🎁 Summarized by CodeRabbit FreeYour organization has reached its limit of developer seats under the Pro Plan. For new users, CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please add seats to your subscription by visiting https://app.coderabbit.ai/login.If you believe this is a mistake and have available seats, please assign one to the pull request author through the subscription management page using the link above. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Made this mainly to sharpen my understanding of how this flow would work, but figured it would be nice to have as a shared document.
Review is low priority.
Summary by CodeRabbit