A decentralized health credential platform built on the Stellar Soroban Smart Contract Platform. ValidFi issues tamper-proof, encrypted health credentials and enables users to prove vaccination status with zero-knowledge proofs β no names, no birthdates, and no medical history exposed to anyone but you.
- Tamper-Proof Health Credentials: Encrypted vaccination records stored on-chain with cryptographic verification
- Privacy-Preserving zk Proofs: Prove vaccination status without revealing names, birthdates, or medical history
- Zero-Knowledge Vaccination Verification: Share proof of vaccination without exposing any personal health information
- Wallet-Based Authentication: Secure authentication using Stellar wallets (Freighter, Albedo, LOBSTR)
- Encrypted Health Data Storage: Medical credentials encrypted and stored on IPFS with Pinata integration
- User-Controlled Access: Complete control over who can verify your health credentials
- Instant Credential Verification: Share vaccination proof with venues, employers, or travel authorities securely
- Immutable Health Records: All credential issuances and verifications recorded on-chain for auditability
- Selective Disclosure: Choose exactly what information to reveal in each verification
- Time-Limited Proofs: Set expiration dates for vaccination status proofs
- Revocable Credentials: Revoke access to your health credentials at any time
- Multi-Vaccine Support: Support for multiple vaccination types and boosters
- Batch Verification: Verify multiple credentials simultaneously for venues and organizations
- Health Authority Integration: Integration with certified health authorities for credential issuance
- Cross-Border Recognition: Standardized format for international travel and compliance
- Manages vaccination credentials and health records
- Stores encrypted credential metadata and verification status
- Links wallet addresses to health credential records
- Enables credential lookup and verification
- Handles vaccination status verification requests
- Validates zero-knowledge proofs for vaccination status
- Stores verification results on-chain
- Manages credential status updates and revocations
- Manages permissions for health credential access
- Controls who can verify vaccination status
- Implements time-based access controls for proofs
- Handles credential access revocation
- Manages authorized health authority issuers
- Validates credential issuance from certified authorities
- Stores health authority public keys and signatures
- Enables credential authority verification
- RESTful API for health credential management
- Business logic for vaccination verification and credential sharing
- Integration with external services (IPFS, AI, Soroban)
- Authentication and authorization middleware
- Database management with PostgreSQL
- Caching with Redis
- Modern, responsive health credential interface
- Wallet connection and management
- Health credential vault for vaccination records
- Verification center for tracking vaccination status
- Secure proof sharing interface
- Real-time updates and notifications
- Decentralized health credential storage
- Pinata gateway for reliable access
- Content-addressed storage
- Automatic deduplication
- Encrypted medical data storage
- Health credential document analysis
- Vaccination record verification
- Fraud detection for health credentials
- Automated compliance checks
- Circom for vaccination proof circuits
- SnarkJS for proof generation
- Groth16 proving system
- Privacy-preserving vaccination verification
- Framework: Next.js 15.1.0
- Language: TypeScript
- Styling: TailwindCSS
- UI Components: Shadcn UI, Radix UI
- Animations: Framer Motion
- Forms: React Hook Form, Zod
- Icons: Lucide React
- HTTP Client: Axios
- Wallet Integration: @stellar/freighter-api
- Framework: NestJS
- Language: TypeScript
- Database: PostgreSQL with TypeORM
- Caching: Redis
- Authentication: JWT, Passport
- Validation: class-validator, class-transformer
- Blockchain: Soroban SDK
- Storage: IPFS, Pinata SDK
- AI: Groq SDK
- Language: Rust
- Platform: Stellar Soroban
- Build Tool: Cargo
- Testing: Soroban SDK
- Version Control: Git
- Containerization: Docker
- CI/CD: GitHub Actions
- Deployment: Vercel (frontend), Docker (backend)
GuardZero/
βββ contracts/ # Soroban smart contracts (Rust)
β βββ src/ # Contract source code
β βββ Cargo.toml # Rust dependencies
βββ backend/ # NestJS backend
β βββ src/
β β βββ auth/ # Authentication module
β β βββ data-sharing/ # Credential sharing module
β β βββ health-credential/ # Health credential module
β β βββ ipfs/ # IPFS integration
β β βββ ai/ # AI service for health verification
β β βββ soroban/ # Soroban integration
β β βββ verification/ # Vaccination verification module
β βββ .env.example # Environment variables template
β βββ package.json # Backend dependencies
βββ frontend/ # Next.js 15 frontend
β βββ src/
β β βββ app/ # Next.js app directory
β β βββ components/ # React components
β βββ public/ # Static assets
β βββ .env.local # Frontend environment variables
β βββ package.json # Frontend dependencies
βββ zk/ # Zero-Knowledge proof infrastructure
β βββ README.md # ZK proof documentation
βββ scripts/ # Deployment and utility scripts
β βββ deploy-contracts.sh # Smart contract deployment
β βββ deploy-backend.sh # Backend deployment
βββ .gitignore # Git ignore rules
βββ DEPLOYMENT.md # Deployment guide
βββ README.md # This file
- Node.js: 18.0 or higher
- Rust: 1.70 or higher
- Cargo: Latest version
- Soroban CLI: Latest version
- PostgreSQL: 14 or higher
- Redis: 7 or higher
- Git: Latest version
git clone https://github.com/GuardZero144/SureData.git
cd GuardZerocd contracts
cargo build --releasecd ../backend
npm install
cp .env.example .env
# Edit .env with your configuration
npm run start:devcd ../frontend
npm install
cp .env.local.example .env.local
# Edit .env.local with your configuration
npm run devNODE_ENV=development
PORT=3001
API_PREFIX=api/v1
# Database
DB_HOST=localhost
DB_PORT=5432
DB_USERNAME=postgres
DB_PASSWORD=your_password
DB_DATABASE=securedata
# Redis
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=
# Stellar Soroban
SOROBAN_NETWORK_URL=https://soroban-testnet.stellar.org
SOROBAN_NETWORK_PASSPHRASE=Test SDF Network ; September 2015
IDENTITY_REGISTRY_CONTRACT_ID=your_contract_id
VERIFICATION_CONTRACT_ID=your_contract_id
ACCESS_CONTROL_CONTRACT_ID=your_contract_id
DATA_SHARING_CONTRACT_ID=your_contract_id
# IPFS / Pinata
PINATA_API_KEY=your_pinata_api_key
PINATA_API_SECRET=your_pinata_api_secret
PINATA_GATEWAY=https://gateway.pinata.cloud/ipfs/
# Groq AI
GROQ_API_KEY=your_groq_api_key
# JWT
JWT_SECRET=your_secret_key
JWT_EXPIRES_IN=7d
# Encryption
ENCRYPTION_KEY=your_32_byte_encryption_keyNEXT_PUBLIC_API_URL=http://localhost:3001/api/v1- Install a Stellar wallet (Freighter, Albedo, or LOBSTR)
- Click "Connect Wallet" on the homepage
- Approve the connection request in your wallet
- Your wallet address will be displayed
- Navigate to the "Health Credential Vault" tab
- Click "Upload Credential" to add vaccination records
- The credential will be encrypted and uploaded to IPFS
- The hash will be registered on-chain
- Track verification status in the "Verification Center"
- Navigate to the "Vaccination Proof" tab
- Select the vaccination credential you want to prove
- Choose what information to disclose (optional)
- Generate a zero-knowledge proof of vaccination status
- Share the proof with venues, employers, or travel authorities
- No personal health information is revealed
- Navigate to the "Secure Sharing" tab
- Enter the recipient's wallet address (venue, employer, etc.)
- Select the vaccination credential you want to share
- Set the access duration
- Click "Share Credential"
- The recipient will receive access for the specified duration
Login with wallet signature
Verify wallet signature
Get user profile (requires authentication)
Create new health credential
Get health credential by ID
Update health credential
Delete health credential
List all health credentials for user
Submit vaccination credential for verification
Get vaccination verification status
Generate zero-knowledge proof of vaccination status
List all vaccination verifications
Share health credential with another user
Get sharing details
Revoke shared access
Extend sharing duration
cd contracts
cargo testcd backend
npm run testcd frontend
npm run test./scripts/deploy-contracts.sh testnet GYOUR_WALLET_ADDRESS./scripts/deploy-backend.sh productionThe frontend can be deployed to Vercel:
cd frontend
vercel deployFor detailed deployment instructions, see DEPLOYMENT.md.
- Never commit
.envfiles to version control - Use strong secrets for JWT and encryption keys
- Enable HTTPS in production environments
- Implement rate limiting on API endpoints
- Use a reverse proxy (nginx) for production
- Regularly update dependencies to patch vulnerabilities
- Monitor for suspicious activity and implement alerts
- Encrypt all sensitive data before storage
- Use hardware wallets for production accounts
We welcome contributions to SecureData! Please follow these guidelines:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Follow the existing code style
- Write tests for new features
- Update documentation as needed
- Ensure all tests pass before submitting
- Use meaningful commit messages
This project is licensed under the MIT License - see the LICENSE file for details.
- GitHub Issues: https://github.com/GuardZero144/SureData/issues
- Documentation: https://github.com/GuardZero144/SureData/wiki
- Discord: [Join our Discord server]
- Stellar Development Foundation for Soroban
- Groq for AI services
- Pinata for IPFS hosting
- The open-source community
- β Smart contract development
- β Backend API implementation
- β Frontend UI development
- β Basic wallet integration
- β IPFS integration
- β AI-powered verification
- π Health credential-specific zk-proof circuits
- π Vaccination verification workflows
- π Health authority integration
- π Cross-border compliance features
- π Mobile app for health credentials
- π Multi-vaccine support
- π Travel verification integration
- π Enterprise health credential management
Built with β€οΈ for the decentralized future