def getKeyType(self, account, pub):
for authority in ["<STR_LIT>", "<STR_LIT>"]:<EOL><INDENT>for key in account[authority]["<STR_LIT>"]:<EOL><INDENT>if str(pub) == key[<NUM_LIT:0>]:<EOL><INDENT>return authority<EOL><DEDENT><DEDENT><DEDENT>if str(pub) == account["<STR_LIT>"]["<STR_LIT>"]:<EOL><INDENT>return "<STR_LIT>"<EOL><DEDENT>return None<EOL>
Get key type