The initializing wizard helps users to initialize the node. The initialize wizard has these pages:
Initialize Mode page
User decides what he wants to:
Create a new wallet
Restore wallet from a mnemonic seed
It's better to add some icons for these options like Monero.
Current GUI:
Monero:
Create a wallet page
In this page, a mnemonic seed will be generated for the user. To generate the mnemonic seed use this package. More info about BIP-39 can be found here
Current GUI:
Confirm seed page
In this page the user confirms the seed by retyping it again. The paste function should be disabled here and the user has to type the mnemonic seed again manually.
Current GUI:
Password page
In this page user can enter a password for the wallet. The password can be empty.
Current GUI:
Monero:
Summary page
Before the summary page, we should call pactus-daemon with init sub-command and initialize the folder. If any error happens, we need to show it to the user, otherwise in the summary page we show the location of the working directory.
Current GUI:
Monero:
Restore wallet page
If the user chose to restore the wallet, we ask him to enter the monotonic seed again.
Monero:
Questions:
How to let the user change the working directory?
Right now, the default location of the working directory is in the home_dir/pactus folder. We have two options to let user to change the location of working directory:
Using command line argument:
The current GUI (and bitcoin-qt) uses this approach. If a user wants to use another location, he can run the GUI with an extra argument. like: pactus-gui.exe -working-dir=C:\another-folder
Adding location option in Create wallet page:
In this approach users can choose another folder for the working directory in the wizard.
There is a side effect here: we need to save this location somewhere as a global config (It's different per OS)
Let's choose the first approach for now. but we can change it in the future.
How to show the Validator and Reward address in Summary pages?
The current GUI shows the validator and reward addresses in the summary page. To show these addresses in the new GUI, we need to get these addresses from the wallet:
Initializing the node wizard
The initializing wizard helps users to initialize the node. The initialize wizard has these pages:
Initialize Mode page
User decides what he wants to:
It's better to add some icons for these options like Monero.
Current GUI:
Monero:
Create a wallet page
In this page, a mnemonic seed will be generated for the user. To generate the mnemonic seed use this package. More info about BIP-39 can be found here
Current GUI:
Confirm seed page
In this page the user confirms the seed by retyping it again. The paste function should be disabled here and the user has to type the mnemonic seed again manually.
Current GUI:
Password page
In this page user can enter a password for the wallet. The password can be empty.
Current GUI:
Monero:
Summary page
Before the summary page, we should call
pactus-daemon
withinit
sub-command and initialize the folder. If any error happens, we need to show it to the user, otherwise in the summary page we show the location of the working directory.Current GUI:
Monero:
Restore wallet page
If the user chose to restore the wallet, we ask him to enter the monotonic seed again.
Monero:
Questions:
How to let the user change the working directory?
Right now, the default location of the working directory is in the
home_dir/pactus
folder. We have two options to let user to change the location of working directory:The current GUI (and bitcoin-qt) uses this approach. If a user wants to use another location, he can run the GUI with an extra argument. like:
pactus-gui.exe -working-dir=C:\another-folder
In this approach users can choose another folder for the working directory in the wizard. There is a side effect here: we need to save this location somewhere as a global config (It's different per OS)
Let's choose the first approach for now. but we can change it in the future.
How to show the Validator and Reward address in Summary pages?
The current GUI shows the validator and reward addresses in the summary page. To show these addresses in the new GUI, we need to get these addresses from the wallet: