Closed theblockstalk closed 1 month ago
software API
Polymorphic classes implement chain, account and transaction features needed
storage
The only thing that needs to be stored to be able to restore an account is the private key.
When the user creates an account or login
- Generate the deterministic seed with
generateSeedFromPassword()
- for each chain a. generates the private key from the seed using
generatePrivateKeyFromSeed()
b. For each chain, check if the account exists (if needed - Ethereum is not needed) c. Store the private key in the persistent storage d. create an IAccount for each chainwhen the application opens and the App initializes, it should check for stored private keys and create a new IAccount for each chain with an account
is it okay to store private key in the storage?
software API
Polymorphic classes implement chain, account and transaction features needed
storage
The only thing that needs to be stored to be able to restore an account is the private key. When the user creates an account or login
- Generate the deterministic seed with
generateSeedFromPassword()
- for each chain a. generates the private key from the seed using
generatePrivateKeyFromSeed()
b. For each chain, check if the account exists (if needed - Ethereum is not needed) c. Store the private key in the persistent storage d. create an IAccount for each chainwhen the application opens and the App initializes, it should check for stored private keys and create a new IAccount for each chain with an account
is it okay to store private key in the storage?
depends how the are stored of course. If they are on the users device they are pretty good.
https://github.com/Tonomy-Foundation/Tonomy-ID-SDK/issues/336 this issue is blocking the Veramo library from compiling. So I reverted to not use these libraries
software API
Polymorphic classes implement chain, account and transaction features needed
storage
The only thing that needs to be stored to be able to restore an account is the private key.
When the user creates an account or login
generateSeedFromPassword()
generatePrivateKeyFromSeed()
b. For each chain, check if the account exists (if needed - Ethereum is not needed) c. Store the private key in the persistent storage d. create an IAccount for each chainwhen the application opens and the App initializes, it should check for stored private keys and create a new IAccount for each chain with an account