I am trying to understand how and where non-custodial wallets store private keys.
By reading the following secure enclaves article, it says:
Software wallets on mobile or desktop keep keys encrypted and locked behind your password, personal identification number (PIN), or biometrics. Many use secure enclaves built into modern devices.
By reading the article about secure enclave, the way I understood is that you have to create a key from the beginning inside secure enclave.
Question 1: I need to first generate mnemonic from which I generate private key and this private key will be stored in enclave. Problem is that mnemonic generation(which means private key generation) happens outside enclave, which means probably that I will not be able to store this private key in enclave. Is this correct ?
Question 2: for modern Mobile non-custodial wallets, clearly, they need mnemonic as well somewhere so that user can extract it. How do they do it ? Basically, my question is where mnemonic generation happens, where private key generation happens and where they are stored and what’s the actual role of enclave.
