-
Notifications
You must be signed in to change notification settings - Fork 13
RIW2021_RFC_Optimistic ZKC(S)P #15
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
Open
daviddias
wants to merge
1
commit into
master
Choose a base branch
from
RIW2021_RFC_Optimistic-ZKC(S)P.md
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# RIW2021 | RFC: Optimistic ZKC(S)P | ||
|
||
_Status:_ **draft**; **~~ready for review~~**; **~~ready to publish~~ ** | ||
|
||
_Area of Improvement:_ Data Delivery Metering | ||
|
||
_Estimated Effort Needed:_ <?> | ||
|
||
_Prerequisite(s):_ <?> | ||
|
||
_Priority:_ <? P0, P1, P2> | ||
|
||
|
||
### Abstract | ||
|
||
In this RFC, we propose a way to rely on the ZKCP only for resolving a dispute when one of the parties decides to go rogue at the end, only incurring the cost of issuing the proofs in case of misbehavior. | ||
|
||
Note: Watch the full recording with Davidad’s presentation as it is a very complete description (LINK HERE) | ||
|
||
### **Proposal/Construction** | ||
|
||
* On a payment channel: | ||
* Agree on the query - both parties sign | ||
* In case the query is simply retrieving a CID, then privacy can be maintained even for a dispute, by revealing only the hash of the query to the chain | ||
* Agree on the prices | ||
* Buyer deposits enough coins for query execution + bandwidth + overhead | ||
* Seller executes query | ||
* If seller aborts at this point, query times out and coins return to buyer | ||
* Seller sends result, in encrypted chunks | ||
* If seller aborts at this point, buyer goes to on-chain dispute resolution | ||
* Buyer acknowledges receipt of encrypted chunks & pays per-chunk for bandwidth | ||
* If buyer aborts at this point, seller is out of luck - reputation risk | ||
* Possibly, buyer could also report the speed (timestamping the ACKs) | ||
* If buyer starts reporting slower than it actually is, the seller will throttle to match | ||
* Seller reveals decryption key | ||
* If seller aborts, buyer can go on-chain and claim a slash against the seller (and seller can reveal decryption key, with a proof, to “appeal” the slash) | ||
* Buyer verifies query satisfaction | ||
* Buyer acknowledges receipt of decryption key | ||
* If buyer aborts, seller goes to on-chain and makes a proof | ||
|
||
**Impact** | ||
|
||
TBWRITTEN | ||
|
||
### Pros and Cons | ||
|
||
TBWRITTEN | ||
|
||
### **Implementation **notes** | ||
|
||
TBWRITTEN | ||
|
||
### **Evaluation** | ||
|
||
TBWRITTEN | ||
|
||
### Prior work | ||
|
||
ZKCP, ZKCSP |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@davidad would you be ok in sharing presentation for this RFC?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just watched the recording of this talk on OZKCP. I’m happy to say I’m actually proud of it and would be happy for it to be published on YouTube or wherever as appropriate. (Btw big thanks to @daviddias for graciously letting me run almost 50% longer than the assigned slot!)