feat(mobile): wire SDK and port WalletProvider with secure session persistence - #594
Open
Big-Rahm wants to merge 1 commit into
Open
feat(mobile): wire SDK and port WalletProvider with secure session persistence#594Big-Rahm wants to merge 1 commit into
Big-Rahm wants to merge 1 commit into
Conversation
…rsistence - Create WalletProvider component using @veil/sdk useInvisibleWallet with AsyncStorage adapter - Persist session (signer keypair) in expo-secure-store for OS background/kill survival - Add walletConfig export to network.ts with factoryContractId - Add setSignerSecret to walletStore.ts - Mount WalletProvider in app/_layout.tsx wrapping the navigation stack - Add invisible-wallet-sdk dependency and tsconfig path aliases Closes Miracle656#443
|
Someone is attempting to deploy a commit to the miracle656's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@Big-Rahm Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This was referenced Jul 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR wires the
@veil/sdk(useInvisibleWallet) into the mobile app and ports theWalletProviderfrom the web wallet, adapted for React Native.Unlike the web wallet (which keeps the signer keypair in React state only), the mobile provider persists the session in
expo-secure-storeso it survives the app being backgrounded or killed by the OS. The SDK credentials (key ID, public key, address) are persisted viaAsyncStorage(configured as the SDK'sStorageAdapter).Related Issue
Closes #443
Changes
Mobile WalletProvider
[ADD]
frontend/mobile/components/WalletProvider.tsxuseInvisibleWallet(walletConfig)withAsyncStorageas the storage adaptersession,setSession,wallet,clearSessionvia React contextexpo-secure-storeon mount (reads wallet_address + signer_secret)expo-secure-storeuseWallet()hook matching the web interface[MODIFY]
frontend/mobile/app/_layout.tsx<WalletProvider>wrapping the navigation Stack and WalletConnectApprovalModalSDK / Network Wiring
[MODIFY]
frontend/mobile/lib/network.tsfactoryContractIdtoVeilNetworktype and both network definitions (testnet/mainnet)walletConfigexport (mirrorsfrontend/wallet/lib/network.ts)[MODIFY]
frontend/mobile/lib/walletStore.tssetSignerSecret(secret)for persisting the fee-payer secret toexpo-secure-storegetWalletAddress()declarationDependencies
[MODIFY]
frontend/mobile/package.jsoninvisible-wallet-sdk: file:../../sdkdependency[MODIFY]
frontend/mobile/tsconfig.json@veil/sdkand other@veil/*modules pointing to SDK sourceVerification Results
useWallet()returns a liveuseInvisibleWallet(walletConfig)from any screensession,setSession,wallet,clearSessionexpo-secure-storeacross app restartWalletProvider.tsx