I am following the web3 documentation and I found that its possible to sign a contract and do a transaction directly from web3.
I want to call an onlyOwner function in my contract directly from a web page. I am looking for best practices as to where to store the private key and how to go by interacting with the contract securely?