## Overview
The Service module provides multiple specialized blockchain services within the Cellframe SDK. This module follows a modular architecture where each service operates independently while sharing common infrastructure. Each service is implemented as a separate subfolder with its own specialized functionality and protocols.
*Based on: `dap_chain_net_srv.h`, `dap_chain_net_srv.c`, `dap_chain_net_srv_order.h`, `dap_chain_net_srv_order.c`*
## Service Architecture
### Base Service Framework
All services inherit from the base service framework:
```c
typedef struct dap_chain_net_srv {
dap_chain_net_srv_uid_t uid; // Service unique identifier
char *name; // Service name
dap_chain_net_t *net; // Associated network
void *_inheritor; // Service-specific data
dap_chain_net_srv_callbacks_t callbacks; // Service callbacks
} dap_chain_net_srv_t;
```
## Available Services
### **[[Modules/Module Service - Exchange|Module Service - Exchange]]**
**Service UID:** 0x2 | **Type:** Trading Platform
Decentralized token exchange with order books, automated matching, and fee distribution.
### **[[Modules/Module Service - Voting|Module Service - Voting]]**
**Service UID:** 0x6 | **Type:** Governance System
Decentralized voting and governance with weighted votes and time-limited proposals.
### **[[Modules/Module Service - Staking|Module Service - Staking]]**
**Service UID:** 0x13 | **Type:** Validation Service
Proof-of-Stake delegation, validator management, and network validation participation.
### **[[Modules/Module Service - Bridge|Module Service - Bridge]]**
**Service UID:** TBD | **Type:** Interoperability
Cross-chain asset transfers and blockchain interoperability protocols.
### **[[Modules/Module Service - VPN|Module Service - VPN]]**
**Service UID:** TBD | **Type:** Privacy Network
Decentralized VPN infrastructure with node discovery and traffic routing.
### **[[Modules/Module Service - Mining Pool|Module Service - Mining Pool]]**
**Service UID:** TBD | **Type:** Mining Coordination
Collaborative mining infrastructure with hashrate aggregation and reward distribution.
### **[[Modules/Module Service - Application|Module Service - Application]]**
**Service UID:** TBD | **Type:** App Hosting
Distributed application hosting and lifecycle management platform.
### **[[Modules/Module Service - App Database|Module Service - App Database]]**
**Service UID:** TBD | **Type:** Database Service
Specialized database functionality for distributed applications.
### **[[Modules/Module Service - Data|Module Service - Data]]**
**Service UID:** TBD | **Type:** Storage Service
General-purpose distributed data storage and management.
## Service Comparison
| Service | Complexity | Primary Function | Network Impact | Status |
|---------|------------|------------------|----------------|--------|
| **Exchange** | High | Token Trading | High | Active |
| **Voting** | Medium | Governance | Medium | Active |
| **Staking** | High | Validation | High | Active |
| **Bridge** | High | Cross-chain | High | Development |
| **VPN** | Medium | Privacy | Medium | Development |
| **Mining Pool** | Medium | Mining | Medium | Development |
| **Application** | Medium | App Hosting | Variable | Development |
| **App Database** | Medium | Data Storage | Medium | Development |
| **Data** | Medium | General Storage | Medium | Development |
## Technical Considerations
### Service Registration
Services are registered with unique identifiers and managed through the common service framework.
### Inter-Service Communication
Services communicate through standardized protocols and shared infrastructure components.
### Extensibility
The modular architecture allows for easy addition of new services without affecting existing functionality.
---
*See also: [[Modules/Module Consensus|Module Consensus]], [[Modules/Module Chain|Module Chain]], [[ETC/Services Overview|Services Overview]]*