I have a big question regarding the security of my system.
Well, what happens.. I developed my contract using ECDSA, that is, it is only possible to do actions in my contract if the transaction is signed with my account.
The problem with this is that the privateKey of my account that I use to encrypt the data needs to be in the web application, because that's where the user performs the action.
My question is that because it is a privateKey in my wallet, the web application keeps it public, in other words, anyone who takes my privateKey will have access to my account.
And here comes the situation that I needed help.
1º How to store my privateKey so that no one can access it? My web application is developed in Vue, and my backend in Node.
or
2nd how would I be able to perform some action to encrypt the data in the backend and return something indecipherable in the front and so the user proceeds with the transaction (confirm the data in the metamask and etc.. )