signum-network / signum-mobile-wallet

The 🚀 Signum Mobile Wallet - Better than ever before 🤘
Apache License 2.0
5 stars 0 forks source link

Proposal for `Account Storage` Service #13

Closed ipr0310 closed 6 months ago

ipr0310 commented 7 months ago

@ohager @TheTimeWalker As Expo SecureStore is using the device's keychain, it is a Key/Value DB.

It does not provide a method of knowing all keys which are saved on the device. The app must keep track of all accounts the user is importing/creating

Proposal: The app should be able to identify all the account the user has created or imported through SQLite

We can create the following table called Account:

account (string) (unique) type (mnemonic or watch-only) timestamp (UNIX)
8629824288351884182 mnemonic 1707793722
9613514220065540170 watch-only 1707793722
8413162550188879456 mnemonic 1707793722

Any feedback is appreciated

ipr0310 commented 7 months ago

SecureStore.getItemAsync("8629824288351884182");

// In order to be able to execute transactions // The user also must pass through the authentication, either PIN or Biometric



- `watch-only` accounts allows the user to only observe/supervise the account, useful for cold wallets
Not possible to execute transactions
ipr0310 commented 7 months ago

Example This table will allow the app to detect which accounts are set in the wallet:

image

ipr0310 commented 7 months ago

Update:

  1. Map accounts with JSON structure
  2. Key will be the account public key WhatsApp Image 2024-02-17 at 09 14 51_78487cec