feat: Private Offchain Cash using Chaumian Blind Signatures#13
Open
Pushkar111 wants to merge 1 commit intoBetterMoneyLabs:masterfrom
Open
feat: Private Offchain Cash using Chaumian Blind Signatures#13Pushkar111 wants to merge 1 commit intoBetterMoneyLabs:masterfrom
Pushkar111 wants to merge 1 commit intoBetterMoneyLabs:masterfrom
Conversation
Implements unlinkable redemptions for Basis protocol addressing critical privacy leaks in receiver identification and payment graph transparency. Features: - New ErgoScript contract (private-basis.es) with action BetterMoneyLabs#3 for private redemptions - Blind signature protocol using Schnorr signatures on Secp256k1 - Nullifier-based double-spend prevention via AVL tree - Comprehensive cryptographic specification - Privacy analysis and threat model documentation Privacy improvements: - Receiver anonymity: HIDDEN (was VISIBLE) - Unlinkability: ACHIEVED (was FULLY LINKED) - Timing privacy: DECORRELATED (was CORRELATED) - Privacy score: 7/10 (was 2/10) Scope: - Research-level PoC (not production-ready) - Minimal on-chain contract changes - Backward compatible with existing Basis - Opt-in privacy feature Files added: - contracts/privacy/private-basis.es - contracts/privacy/blind-signature-spec.md - contracts/privacy/README.md - docs/private-offchain-cash.md Limitations (documented): - Amount visibility (future work: Pedersen commitments) - Tracker transparency (acceptable trade-off) - Requires security audit before production use Fixes BetterMoneyLabs#12
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
PR: Private Offchain Cash - Chaumian Blind Signatures for Unlinkable Redemptions
Summary
This PR implements unlinkable redemptions for the Basis offchain cash protocol using Chaumian blind signatures. This is a research-level proof-of-concept that adds a critical privacy layer to prevent reserve owners and blockchain observers from tracking fund flows.
Issue: #12 - Private Offchain Cash
Type: Research + PoC Implementation
Scope: Minimal on-chain contract extension + comprehensive documentation
Problem Statement
Current Privacy Leaks in Basis
The existing Basis protocol (contracts/offchain/basis.es) has critical privacy vulnerabilities:
Receiver Linkability 🔴
Payment Graph Transparency 🔴
hash(AB) → (amount, timestamp)Blockchain Surveillance 🔴
Privacy Score: 2/10 (fully transparent)
Solution: Chaumian Blind Signatures
Core Idea
Use blind signatures to break the link between:
Protocol Flow
Privacy Property: Reserve owner cannot link Phase 1 to Phase 2
Changes Made
1. New Contract:
contracts/privacy/private-basis.esAction #3: Private Redemption
Key Features:
2. Documentation:
docs/private-offchain-cash.mdComprehensive research document including:
3. Cryptographic Spec:
contracts/privacy/blind-signature-spec.mdDetailed specification including:
Privacy Analysis
Properties Achieved ✅
Privacy Score: 7/10 (significant improvement from 2/10)
Limitations (Explicitly Documented)
Amounts Visible⚠️
Tracker Transparency⚠️
Reserve Linkability⚠️
Security Guarantees
Cryptographic Assumptions
Threat Model
Protects Against:
Does NOT Protect Against:
Implementation Status
✅ Completed (PoC Level)
🔄 Partial (Reference Only)
❌ Future Work
Why This is Valuable
1. First Privacy Layer for Basis
2. Minimal Complexity
3. Practical Deployment Path
4. Research Quality
Testing
Manual Verification
Future Testing
Deployment Considerations
Backward Compatibility
Migration Path
Scope and Limitations
Explicit Scope
This PR provides:
This PR does NOT provide:
Why PoC Level is Appropriate
References
Checklist
Team
Team Dev Engers - LNMIIT Open Source Hackathon 2025
Ready for review! 🚀
This PR provides a solid foundation for private offchain cash on Ergo, balancing privacy, efficiency, and practical deployability. We look forward to community feedback and collaboration on future enhancements.