Only require wallet connecting/unlocking when signing txs (Cache wallet addresses & xpubs)
closed
Willy Ogorzaly
Currently both shapeshift native and keepkey users need to re-connect and unlock their wallet on each session. By caching a wallet's xpubs, users can view their portfolio and do everything in the app other than signing a transaction/message. The initial process of syncing a wallet seems to be resource-intensive and adds multiple seconds before a user can get into the app and do what they want to do (which more often than not does not include executing a transaction). Eliminating this step could potentially make the app load faster because its not re-deriving addresses on each load (and you can see when starting a new session that the app begins to load balances before kicking user to the connect/unlock wallet step), but it will undoubtedly make the app feel faster.
This also paves the way for supporting Watch Addresses/xpubs, Custom Bundles of Addresses/xpubs, and the ability to view cold storage balances (or any arbitrary wallet/contract) in the mobile app.
0xFBL
marked this post as
closed
View only is in the works and we slayed the tx load issues as best we could back in march. Closing this canny since there are a few of it's ideas captured in more current tickets on github and strategies integrated ...somewhat . 🤝
g
giant kin
Perhaps making an optional item here? sometimes you would NOT want the connection cached? Overall i like it, as i would load up more often to check, if i didnt have to connect etc.
Willy Ogorzaly
giant kin: great call, could leave caching on as the default but give users the ability to 'forget' their wallet; that's how legacy shapeshift handled this
Willy Ogorzaly
Along with this, we should look at improving balance and price caching so when a user begins a session, they very quickly see the state of their last session WRT to balances, tx history, and price data, and new price and tx history data loads async/gracefully. While the latest tx history and price data is loaded, users should be able to immediately click around the app and do things like copy a receive address.