How saikrishna-bathina/blockchain-based-drm works
This is a web and desktop DRM platform for creator asset registration, originality checks, encrypted storage, licensing, and protected delivery. The main workflow runs from creator upload through backend processing and originality verification, then storage and rights registration; consumers browse assets, obtain licenses, and stream protected content. The README documents blockchain and media-processing integrations, while sampled source confirms application wiring, authentication, and individual engine endpoints. Some domain-controller and contract internals were not sampled, so those links rely on README documentation rather than inspected implementation.
Main entry points: app.js Express API · asset.js Asset processing · originalityService.js Originality dispatch · server.py Video verification
Components 33
Client apps
- DRM web app
frontend/src/App.jsx - Web3 authentication
frontend/src/context/AuthContext.jsx - Protected desktop
desktop/main.js
Backend services
- Express API
backend/src/app.js - Auth routes
backend/src/routes/auth.js - Asset routes
backend/src/routes/asset.js - License routes
backend/src/routes/license.js - Dashboard routes
backend/src/routes/dashboard.js - Notification routes
backend/src/routes/notification.js - Asset processing
backend/src/controllers/asset.js - Gated streaming
backend/src/controllers/stream.js - Identity service
backend/src/controllers/auth.js - User records
backend/src/models/User.js - Asset records
backend/src/models/Asset.js - License records
backend/src/models/License.js - Notifications
backend/src/services/notificationService.js - File encryption
backend/src/services/encryptionService.js - IPFS service
backend/src/services/ipfsService.js - Originality dispatch
backend/src/services/originalityService.js
Originality engines
- Image verification
originality-engine/imageFiles/main.py - Image matching
originality-engine/imageFiles/originality.py - Text verification
originality-engine/textFiles/server.py - Text matching
originality-engine/textFiles/originality.py - Video verification
originality-engine/videoFiles/server.py - Video matching
originality-engine/videoFiles/originality.py - Audio verification
originality-engine/audioFiles/main.go - Audio fingerprinting
originality-engine/audioFiles/shazam/spectrogram.go
Rights and storage
- MongoDB
- IPFS storage
- DRM smart contracts
Other components
- Creator
- Consumer
- Ethereum Sepolia
Connections 38
- Creator → DRM web app: uses
README.md - Consumer → DRM web app: uses
README.md - DRM web app → Express API: calls REST
README.md - Protected desktop → Express API: requests streams
README.md - DRM web app → Web3 authentication: renders with
frontend/src/main.jsx - Web3 authentication → Express API: calls
frontend/src/context/AuthContext.jsx - Express API → Auth routes: mounts
backend/src/app.js - Express API → Asset routes: mounts
backend/src/app.js - Express API → License routes: mounts
backend/src/app.js - Express API → Dashboard routes: mounts
backend/src/app.js - Express API → Notification routes: mounts
backend/src/app.js - Express API → Asset processing: handles assets
- Express API → Gated streaming: serves streams
README.md - Express API → Identity service: handles identity
README.md - Identity service → User records: reads and updates
backend/src/controllers/auth.js - Identity service → Notifications: creates login alert
backend/src/controllers/auth.js - Asset processing → Originality dispatch: checks originality
README.md - Asset processing → File encryption: encrypts asset
README.md - Asset processing → IPFS service: pins asset
README.md - Asset processing → Asset records: stores metadata
README.md - Originality dispatch → Image verification: dispatches checks
backend/src/services/originalityService.js - Originality dispatch → Text verification: dispatches checks
backend/src/services/originalityService.js - Originality dispatch → Video verification: dispatches checks
backend/src/services/originalityService.js - Originality dispatch → Audio verification: dispatches checks
backend/src/services/originalityService.js - Image verification → Image matching: calls
originality-engine/imageFiles/main.py - Text verification → Text matching: calls
originality-engine/textFiles/server.py - Video verification → Video matching: calls
originality-engine/videoFiles/server.py - Video verification → Image verification: sends keyframes
README.md - Video verification → Audio verification: sends audio track
README.md - Audio verification → Audio fingerprinting: fingerprints audio
README.md - Asset processing → DRM smart contracts: registers rights
README.md - License routes → License records: manages licenses
README.md - License routes → DRM smart contracts: checks licensing
README.md - DRM smart contracts → Ethereum Sepolia: executes on
README.md - IPFS service → IPFS storage: uploads and fetches
backend/src/services/ipfsService.js - Express API → MongoDB: persists application data
README.md - Gated streaming → IPFS service: fetches encrypted media
README.md - Gated streaming → DRM smart contracts: verifies license
README.md