def getOwnerKeyForAccount(self, name):
account = self.rpc.get_account(name)<EOL>for authority in account["<STR_LIT>"]["<STR_LIT>"]:<EOL><INDENT>key = self.getPrivateKeyForPublicKey(authority[<NUM_LIT:0>])<EOL>if key:<EOL><INDENT>return key<EOL><DEDENT><DEDENT>raise KeyNotFound<EOL>
Obtain owner Private Key for an account from the wallet database