I have my own node deployed on Amazon and backend/frontend to work with it and it operates fine - transaction executed, events catched. Now I want to use INFURA instead maintaining my own node and confused how to solve following situation:
I have couple of functions in contract that availabled only for owner and protected by modifier. On my own node it works this way: first unlocked contract creator account (UI form contains wallet password field), then, if success, executed protected function. It is possible only when I have keyfile on the node.
But when I migrate to INFURA I'll have not access to this wallet and thus unable to unlock it. I see only one way - is to ask creator's provate key insteand of password, then create raw transaction, sign it and send to the network.
Question: it is only way to execute protected functions or I missed something simpler then this?
My stack is: Solidity, Node, Truffle, Web3 and so on.