thanks for your comment.
I know that the public key is shown in a transfer, not the private key.
I think that in order to sign a transaction you must use your private key, so my doubt was how to develop a solution so that the user would transfer xem to another user signing the transaction without entering the private key in the browser.
I have reviewed your suggestions, and I think that generating a QR code and paying with the smartphone wallet is an elegant option. I will implement it.
By the way, not every user has an smartphone wallet, so maybe the desktop hardcore users will have to make the transfer manually, entering amount and message in nanoWallet and signing the transaction.
PD: Maybe exists a way to invoke nanoWallet from the browser, some link/protocol to an electron js process (nanoWallet), just guessing…
Moreover I don’t know if there is any project (opensource or not) in NEM community to develop a browser extension like “Metamask” for Ethereum. It has many features like wallet management, storing public and private keys, and more features other than just only sending tokens, but I think it’d be cool to have an extension like that for NEM.
I would investigate to develop a minimal extension for XEM/NEM.