generate command initiates the MPC process to create a set of shares. The users share and the wallet address is automatically stored in the user’s secure phone storage.
Once you have a Portal instance, you can now generate a wallet. In the example below, we create a Generate Wallet button:
WARNING: To create a wallet with the Portal SDK, your device must be configured to use passcode authentication. If you change your passcode, your Portal wallet will continue to operate as expected. However, if you disable passcode authentication after running the
generate function, you will be required to execute the recover function before you can continue using your Portal wallet.