Because Bay Wallet is non-custodial, we must have a secure way of storing seeds.
Accounts, or wallets, are stored as:
{
name: <name>,
seed: <32 byte seed>
}
The TAccount (type that LDK expects) should be stored in the secure key store of the phone. Using the react-native-keychain package.
We will want to be able to support multiple accounts. To handle this and for the application to know what wallet/account to use. We will store an object in the devices local storage.
Because Bay Wallet is non-custodial, we must have a secure way of storing seeds.
Accounts, or wallets, are stored as:
The
TAccount
(type that LDK expects) should be stored in the secure key store of the phone. Using the react-native-keychain package.We will want to be able to support multiple accounts. To handle this and for the application to know what wallet/account to use. We will store an object in the devices local storage.
where we query the current account object in local storage and can ask the keychain to use the wallet seed and name.