Deeplinking Utilities

Shared utilities for handling encryption, keypair management, and payload preparation when integrating wallet deeplinking. These composables are used across all wallet integrations.

Installation

Install the required dependencies for encryption and keypair handling:

Keypair Management

Generate and manage a keypair for your dApp. This keypair is used to establish a shared secret with the wallet for encrypted communication.

Encryption Utilities

Encrypt transaction payloads using the shared secret derived from your dApp's keypair and the wallet's public key.

Derive Shared Secret

Encrypt Payload

Transaction Encoding

Encode serialized transaction bytes for transmission in deeplink URLs.

Complete Composable Example

Here's a complete example of a deeplink utilities composable:

Next Steps

Now that you have the utilities set up, see the wallet-specific integration guides: