Blockchain-powered credential verification on Stacks.
# 1. Install
npm install
# 2. Setup
cp .env.example .env
# Edit .env with your Stacks address
# 3. Fund testnet (FREE)
# Visit: https://testnet.stacks.co/faucet
# 4. Deploy
npm run deploy
# 5. Use
npm run write- Visit: https://www.hiro.so/wallet
- Create wallet
- Copy address (starts with SP for testnet, SM for mainnet)
- Export private key
STACKS_NETWORK=testnet
DEPLOYER_KEY=your_private_key
DEPLOYER_ADDRESS=your_address
STUDENT_ADDRESS=your_address_or_different
VERIFIER_ADDRESS=verifier_address- Testnet: https://testnet.stacks.co/faucet (FREE)
- Mainnet: Buy STX from exchange
npm run test:run # Run tests
npm run deploy # Deploy contracts
npm run write # Execute write functions
npm run mainnet-interact # Read-only queries (FREE)
npm run interact # Interact with contracts
npm run addresses # View test addresses- certifi-institutions.clar - Institution management
- certifi-credentials.clar - Credential management
- Register institutions
- Issue credentials
- Verify credentials
- Revoke credentials
- Read-only queries
deploy.js- Deploy contractswrite-functions.js- State-changing operationsmainnet-interact.js- Read-only operationsinteract.js- Basic interactions
| Operation | Cost |
|---|---|
| Register Institution | 0.01-0.05 STX |
| Issue Credential | 0.01-0.05 STX |
| Verify Credential | 0.01-0.05 STX |
| Revoke Credential | 0.01-0.05 STX |
| Read-Only Calls | FREE |
# Edit scripts/write-functions.js
# Uncomment registerInstitution()
npm run write# Edit scripts/write-functions.js
# Uncomment issueCredential()
npm run write# Edit scripts/write-functions.js
# Uncomment verifyCredential()
npm run write- Testnet: https://testnet-explorer.alexgo.io/
- Mainnet: https://explorer.stacks.co/
- ✅ Private keys in .env (not committed)
- ✅ .env in .gitignore
- ✅ Address validation
- ✅ Error handling
- ✅ Immutable records
# Run all tests
npm run test:run
# Watch mode
npm run test
# Coverage
npm run test:report| File | Purpose |
|---|---|
| README.md | Project overview |
| GUIDE.md | This file - complete guide |
| ARCHITECTURE.md | System design |
| DEPLOYMENT.md | Deployment details |
| WRITE_FUNCTIONS_GUIDE.md | Write functions |
| MAINNET_INTERACTION.md | Mainnet operations |
| STACKS_ADDRESSES_GUIDE.md | Address guide |
| QUICK_REFERENCE.md | Quick lookup |
| SETUP_GUIDE.md | Setup instructions |
- Fund account with STX
- Use address starting with SP (testnet) or SM (mainnet)
- Wait 30+ minutes or check network status
- Verify deployment completed
- Check deployment.json for addresses
✅ 2 Smart Contracts ✅ 20+ Test Cases ✅ Gas-Optimized ✅ Testnet & Mainnet Support ✅ Read-Only & Write Functions ✅ Complete Documentation
.
├── contracts/ Smart contracts
├── tests/ Test suite
├── scripts/ Deployment & interaction
├── deployments/ Deployment records
├── .env.example Environment template
├── package.json Dependencies
└── [documentation] Guides
- Read: README.md
- Setup: GUIDE.md (this file)
- Deploy: DEPLOYMENT.md
- Use: WRITE_FUNCTIONS_GUIDE.md
- Check documentation
- Review error messages
- Check Stacks community
- File GitHub issue
Ready to start? Follow the Quick Start above!