Mobile-Specific Benefits
While pregeneration works the same across all Para SDKs, React Native and Expo applications offer unique advantages:Pregeneration is especially valuable for devices that may not have full WebAuthn support for passkeys. It allows you to create Para wallets for users on any device while managing the security of the wallet yourself.
Creating a Pregenerated Wallet
Check if a wallet exists
Create a pregenerated wallet
Retrieve the user share
Mobile Storage Options
In mobile applications, you have several options for securely storing the user share:- Keychain/Keystore
- MMKV
Using Pregenerated Wallets in Mobile Apps
Once you have created a pregenerated wallet and stored the user share, you can use it for signing operations:Mobile-Specific Use Cases
Device-Specific Wallets
Device-Specific Wallets
Create wallets that are bound to a specific device by using device-specific identifiers combined with secure local storage. This approach is ideal for multi-device users who need different wallets for different devices.
App Clips and Instant Experiences
App Clips and Instant Experiences
For iOS App Clips or Android Instant Apps, create temporary wallets that enable limited blockchain functionality without requiring full app installation or user authentication.
Transparent Web3 Integration
Transparent Web3 Integration
Seamlessly introduce blockchain functionality to your existing app users without requiring them to understand wallets or crypto.
Claiming Pregenerated Wallets
When a user is ready to take ownership of their pregenerated wallet, they can claim it once they’ve authenticated with Para:After claiming, Para will manage the user share through the user’s authentication methods. You can safely remove the user share from your local storage if you no longer need to access the wallet directly.
Best Practices for Mobile
- Utilize Device Security: Leverage biometric authentication (TouchID/FaceID) to protect access to locally stored user shares.
- Implement Device Sync: For users with multiple devices, consider implementing your own synchronization mechanism for user shares across devices.
- Handle Offline States: Mobile applications often work offline. Design your pregenerated wallet system to function properly even when connectivity is limited.
- Backup Strategies: Provide users with options to back up their wallet data, especially for device-specific wallets that might not be associated with their Para account.
- Clear Security Boundaries: Clearly communicate to users when they’re using an app-managed wallet versus a personally-owned wallet.