Replies: 5 comments 3 replies
-
Do you think it's worth trying to dig deeper into this? Please let me know. Thanks ! |
Beta Was this translation helpful? Give feedback.
-
Hi @fabohax this is great proposal, I have some doubts, why the reputation is inside the formula? the reputation need to be public because we need to have show it to the counterpart. Can you explain how can we integrate this proposal with the current gift wrap event, please use a non encrypted gift wrap example like we did here. I also have other questions:
Probably the more I understand this the more questions I will have, my first proposal was a chain of signatures, this reminds me a bit my proposal but ZK makes it more elegant. |
Beta Was this translation helpful? Give feedback.
-
ZKP-Based Selective Disclosure for Reputation in MostroTo balance privacy and verifiability, a Zero-Knowledge Proof (ZKP) can be used to implement selective disclosure of a user's reputation in Mostro. Here's how it works: How It Solves the Problem
Benefits of ZKP-Based Selective Disclosure
|
Beta Was this translation helpful? Give feedback.
-
Really really interesting @fabohax ! I am on code refactoring travel with mostrod, but I will take some time to understand better how this magic works! Can you show ( if you yet have in mind ) a basic example of the messages involved in a voting session? Now we simply let users vote at the end of the trade with a vote between 1 and 5. Let's say Alice and Bob have now a reputation of 4.1 for Alice and 3.8 for Bob they happily trade and the mostro ask them to vote for each other. What comes next? Can you show me a basic example? Really curious to know more about ZKP, but time is scarce! ;) |
Beta Was this translation helpful? Give feedback.
-
Thank you for the support! Regarding the voting session, I propose you to consider a Binary Rating Scheme. This approach simplifies computations, enhances efficiency, and is straightforward user-friendly. The binary scheme uses a pair ([0, 1]):
How the Binary Scheme Works1. Order Rating Flow
2. JSON Structure for Orders and RatingsOrder Object:{
"order_id": "abc123",
"buyer": "<Alice's public key>",
"seller": "<Bob's public key>",
"status": "Completed",
"buyer_rating": {
"commitment": "64108439878827100336420054642254933189834238606611862623819540493761014449685",
"proof": "<ZKP proving valid rating>"
},
"seller_rating": {
"commitment": "32848523890384583924582093845203984520394520348520398452039485039845039485398",
"proof": "<ZKP proving valid rating>"
},
"timestamp": "2025-01-16T21:30:00Z"
} 3. Commitment and ZKP for RatingsRating Commitment:Each trader submits a Pedersen commitment for their rating: Where:
Zero-Knowledge Proof:The ZKP ensures:
4. Verification and Reputation UpdateVerification of Ratings:
Reputation Update:
Additionally, to prevent attackers from tracking reputation, it is crucial that Rating Submits may be temporary. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Statements to Argue the Importance of This Proposal
Addressing the Security Flaw
index 0
). While offering a "full privacy mode" where the identity key is not sent to Mostro is good, users opting for privacy lose reputation entirely. This dichotomy may discourage privacy-conscious users.Current JSON Flaw Example
pubkey
field in the "seal" is directly tied to the identity key:Proposal Importance
Raw Blueprint for the Proposed Solution
Commitment Scheme with Pedersen Commitments
The commitment is defined as:
Where:
Key Rotation with Continuity
When the user rotates their key, the new commitment is:
To prove continuity of reputation, a ZKP must show that:
Zero-Knowledge Proof Objective
The ZKP verifies:
and:
without revealing ( K ), ( K{new} ), ( reputation ), or ( salt ).
Integration into Mostro Protocol
Benefits of This Approach
Final Argument
This proposal closes a critical security gap by replacing the direct exposure of identity keys with privacy-preserving cryptographic mechanisms. It also aligns with the broader principles of decentralized privacy and trust. Adopting Pedersen commitments and ZKPs ensures a future-proof protocol that protects users while maintaining reputation continuity.
Beta Was this translation helpful? Give feedback.
All reactions