feat: SilverCents Demo - Silver-Backed Offchain Cash CLI #3
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: SilverCents Demo - Silver-Backed Offchain Cash CLI
Summary
This PR implements a complete demo CLI for SilverCents - silver-backed offchain cash using the Basis protocol for local circular economies like farmers markets and small businesses.
Issue: #2 - SilverCents demo implementation
Type: Feature + Demo + Documentation
Difficulty: Medium
Problem Statement
The Basis protocol needed a practical demonstration showing:
Solution: SilverCents Demo
What is SilverCents?
From
chaincash/docs/silvercents.md:Implementation
4 CLI Scripts (~1,500 lines):
2 Documentation Files (~800 lines):
Changes Made
Files Added
Key Features
1. Silver-Backed Reserves ✅
Collateralization Monitoring:
2. Silver Coin Redemption ✅
Conversion Logic:
3. Complete Workflow ✅
Vendor Commands:
init- Initialize vendor accountcreate-reserve- Create silver-backed reserveissue- Issue SilverCents to customersstatus- Check collateralization and creditredeem- Process redemption requestsCustomer Commands:
init- Initialize customer accountbalance- Check total SilverCentslist- View received notesredeem- Request silver redemptiontransfer- Peer-to-peer transfers4. Interactive Demo ✅
Portland Farmers Market Scenario:
Demo Output Examples
Creating a Reserve
Issuing SilverCents
Checking Status
Technical Highlights
Collateralization Formula
Data Structures
Reserve:
Note:
Testing
Manual Testing
Demo Scenario
The interactive demo runs a complete 9-step workflow:
Documentation
README.md
SILVERCENTS_ARCHITECTURE.md
Scope and Limitations
What This Demo Provides ✅
Demo Limitations⚠️
Production Requirements
For real deployment:
Why This is Valuable
1. Demonstrates Basis Protocol
2. Real-World Use Case
3. Educational Value
4. Template for Deployment
Future Enhancements
Phase 1: Production Readiness
Phase 2: User Experience
Phase 3: Advanced Features
Checklist
Team
Team Dev Engers - LNMIIT Open Source Hackathon 2025
Ready for review! 🚀
This PR provides a complete, production-quality demo of SilverCents that showcases the Basis protocol with a practical, real-world use case for local circular economies.