Blockchain-Enabled Metaverse IoT Communication Platform

Ensuring Data Integrity and Real-time Synchronization between Virtual Environments and Physical IoT Devices

2022.10 ~ 2023.12
1 people Main programmer, paper writer

Overview

This project focuses on developing a decentralized platform for secure and efficient data communication between metaverse environments and physical IoT devices. By integrating Decentralized Identifier (DID) based identity verification with the MQTT protocol, the system achieves robust data integrity and low-latency interaction. The platform leverages Hyperledger Indy to manage decentralized identities, ensuring trusted identification and verifiable credential management for all participating entities.

System Overview Architecture
Figure 1. High-level System Architecture

Technical Stack

CategoryTechnologies
Blockchain / DID LedgerHyperledger Indy
IoT CommunicationMQTT (Mosquitto Broker)
Metaverse EngineUnity 3D
BackendNode.js, Express.js
FrontendReact.js
DatabaseMongoDBal Engine 5 (UE5)
LanguageC#, Ptthon

Key Features

1. Decentralized Identity Management (DID/VC) via Hyperledger Indy

“Establishing User-Centric Identity Sovereignty and Device Ownership”

  • Self-Sovereign Identity (SSI): Developed a DID system based on Hyperledger Indy, allowing users to own and control their identities without reliance on a centralized authority.
  • Trust-Based Interaction: Utilized Verifiable Credentials (VC) to authenticate the ownership relationship between metaverse avatars and physical IoT devices, ensuring privacy-preserving data communication.
VonNet DID Ledger
Figure 2. Verified Device DIDs and Public Keys on VonNet

2. DPKI-Based IoT Data Integrity Framework

  • Hierarchical Topic Design: Designed a structured MQTT topic schema (home/devices/{DID}/{Sensor_Name}) to embed the device’s Decentralized Identifier (DID) directly within the message routing path.
  • Real-Time Integrity Verification: The Unity client extracts the DID from incoming topics and performs real-time lookups of the corresponding Public Key on the blockchain to verify digital signatures.
  • Secure Architecture: Established a Decentralized PKI (DPKI) structure that eliminates Man-in-the-Middle (MITM) vulnerabilities and ensures the absolute reliability of data.
Sensor TypeTopic Structure
Ultrasonic Sensorhome/devices/{device_DID}/ultrasonic
LED Modulehome/devices/{device_DID}/led
Temperature Sensorhome/devices/{device_DID}/tem

Figure 3. Sensors used in the implementation


3. Custom Packet Protocol based on MQTT Standards

  • Standard Compliance: Adhered to the MQTT v3.1.1 specification (Fixed/Variable Header, Payload) to ensure full interoperability with existing broker infrastructures.
  • Automated Source Provenance: Positioned the DID within the Topic Name of the Variable Header, enabling immediate source identification before the data parsing stage.
  • Security Packaging: Structured the payload as [Raw Data + Digital Signature], allowing the receiver to validate the authenticity of each individual message instantaneously.
Message Packet Format
Figure 4. Proposed Message Packet Structure

4. Immersive Metaverse Integration Interface

“Digital Twin-Based Intuitive IoT Control Environment”

  • Unity Engine Integration: Achieved real-time synchronization and visualization of physical IoT device states within a 3D metaverse environment.
  • Intuitive UI/UX: Implemented avatar-based device control and data flow visualization, providing users with an immersive monitoring experience as if interacting with physical objects.
Unity Metaverse Environment
Figure 5. Real-time Monitoring in Unity Environment

Technical Problem Solving

1. High-Performance Asynchronous Verification Pipeline

  • Problem: Frequent blockchain lookups (I/O) and cryptographic signature verification (CPU) per frame caused main-thread bottlenecks and significant frame drops (hiccups).
  • Solution: Implemented a Task-based Asynchronous Pattern (Async/Await) to decouple the networking, data verification, and UI rendering threads.
  • Result: Successfully maintained a stable 60 FPS environment by optimizing the security layer overhead to within 4.3ms compared to raw MQTT.
image 1
Figure 6. Before Optimization (Blocking)
image 2
Figure 7. After Optimization (Async Pipeline)

2. Event-Driven Hierarchical Topic Architecture

  • Problem: High coupling between code and devices led to difficulties in managing frequent device connections/disconnections and adding new device types at runtime.
  • Solution: Engineered a hierarchical MQTT topic structure (home/devices/{DID}/{Sensor}) to automate routing and utilized the Pub/Sub pattern to decouple the network module from in-game objects.
  • Result: Enabled seamless system scalability where new sensors can be added by simply deploying prefabs without modifying the core source code.

3. Security Validation

  • Security: Conducted Man-in-the-Middle (MITM) attack simulations, resulting in 100% detection and blocking of tampered packets.

Publications & Awards

  • Lead Author, “Integrity Assurance System in IoT Virtual Environment Platform: Via Hyperledger Indy and MQTT,” Journal of Korea Smart Media Society, Vol. 13, No. 4, April 2024. Link
  • Outstanding Paper Award, “A Study on Digital Identification Technology for Decentralized Digital Ecosystems,” 2023 Korea Computer Digital Contents Society (KCDCS) Fall Conference.
  • Bronze Award, “Development of IoT Communication Technology for Trusted Decentralized Metaverse,” 2023 Korea Computer Digital Contents Society (KCDCS) Fall Conference.
Back