
We're thrilled to announce the public release of our Mobile Wallet Protocol (MWP) implementation for Unity! After a successful beta period, this powerful feature is now available to all game developers, enabling seamless connections between in-game wallets and the broader Web3 ecosystem. This milestone represents our commitment to making blockchain technology more accessible to game developers and players alike.
You can start using our MWP implementation in Unity right away. Check out our comprehensive documentation and sample project to get started.
Why Mobile Wallet Protocol Matters for Gaming
The gaming industry has long faced challenges when connecting in-game experiences to external Web3 applications. Traditional approaches often required complex integrations, multiple SDK implementations, or clunky user experiences. With MWP in Unity, we're eliminating these barriers by providing a standardized, secure protocol for communication between games and external applications.
Mobile Wallet Protocol was originally developed as an open-source communication standard that helps wallets communicate securely with applications. At Openfort, we've adapted this technology specifically for gaming environments, enabling Unity developers to leverage ecosystem wallets without the complexity.
How Mobile Wallet Protocol Works in Unity
At its core, MWP is a two-step process that creates a secure communication channel between applications. Let's break down how this works in the gaming context, where your Unity game can securely connect to external wallets or applications:
Session Establishment
The communication between a client application and a wallet application begins with session establishment. This process involves several key steps:
-
The client game configures the MWP SDK with essential parameters including callbackURL, CustomScheme (for Unity).
-
When the user initiates an action requiring wallet interaction, the client app triggers a request through the SDK.
-
The SDK prepares this request, typically including encryption to ensure secure communication.
-
The request is sent to the wallet app using platform-specific deep linking mechanisms.
The deep linking mechanism is central to the protocol's architecture, enabling direct app-to-app communication without requiring web-based intermediaries.
Request Processing and Response Handling
Once a request reaches the wallet application, several steps occur:
-
The wallet app receives and processes the incoming request.
-
For operations requiring user approval (such as signing transactions), the wallet presents appropriate interfaces to the user.
-
After processing (and potential user interaction), the wallet generates a response.
-
This response is encrypted for security and returned to the client app via the previously configured callback URL.
-
The client app's deep link handler captures this incoming URL and passes it to the SDK's handleResponse function.
-
The SDK decrypts and processes the response, then provides the result to the client app for further action.
This request-response pattern supports various operations, including connecting to wallets, signing transactions, and making batch requests.
Benefits for Game Developers
Our Unity implementation of MWP offers several key advantages:
-
End-to-end encryption to prevent unauthorized access to messages exchanged between the client app and wallet.
-
Secure key exchange mechanisms for establishing encrypted communication channels.
-
Decentralized identity verification using well-known URI standards, eliminating the need for centralized verification services.
-
Batch request support to minimize the number of security-sensitive interactions required.
-
Cross-Platform Support: Works across desktop, mobile, and console gaming environments.
Real-World Applications
-
NFT Marketplace Integration: List in-game items directly on marketplaces like OpenSea without requiring players to use external wallets.
-
Cross-Game Asset Transfer: Move assets between different games securely.
-
External Wallet Connections: Allow players to connect their favorite wallets to your game ecosystem.
A standout example is our OpenSea integration demo, where players can list their in-game NFTs directly to the marketplace without leaving the game environment. This seamless connection between gaming and NFT marketplaces demonstrates the power of MWP in creating unified Web3 experiences.
A Public Good for the Gaming Ecosystem
By bringing MWP to Unity, we're contributing to the broader gaming ecosystem and promoting interoperability between games and Web3 applications. This implementation represents our commitment to creating open standards that benefit the entire industry.
We believe that standardized protocols like MWP are essential for the growth of blockchain gaming. By making our implementation available to all developers, we're helping to create a more connected and seamless experience for players across the Web3 gaming landscape.
We can't wait to see what you build with Mobile Wallet Protocol in Unity. Connect with us on X, Discord if you have questions or need support.