Encrypted Messaging Service
Component Detail
Service Layer
high complexity
mobilebackend
2
Dependencies
4
Dependents
3
Entities
0
Integrations
Description
Core service orchestrating the full lifecycle of encrypted assignment dispatch. Encrypts assignment payloads locally on the coordinator's device using the recipient's public key before transmission to the backend. Manages status transitions (dispatched → delivered → read → acknowledged) and coordinates push notification triggers without exposing content in notification payloads.
encrypted-messaging-service
Responsibilities
- Encrypt assignment payload with recipient public key (X25519 + AES-GCM)
- Dispatch ciphertext and metadata to backend REST API
- Update and retrieve assignment status transitions
- Trigger silent push notifications for new assignment alerts
- Submit and retrieve read/acknowledgement confirmations
Interfaces
dispatchAssignment(payload, recipientPublicKey)
getAssignments(filter)
getAssignmentById(assignmentId)
markDelivered(assignmentId)
markRead(assignmentId)
submitAcknowledgement(assignmentId)
getStatusLog(assignmentId)
fetchRecipientPublicKey(peerMentorId)
Relationships
Dependencies (2)
Components this component depends on
Dependents (4)
Components that depend on this component
Related Data Entities (3)
Data entities managed by this component