@staticmethod<EOL><INDENT>def delegates():<DEDENT>
qry = DbCursor().execute_and_fetchall("""<STR_LIT>""")<EOL>Delegate = namedtuple(<EOL>'<STR_LIT>',<EOL>'<STR_LIT>')<EOL>res = []<EOL>for i in qry:<EOL><INDENT>registration = Delegate(<EOL>username=i[<NUM_LIT:0>],<EOL>pubkey=binascii.hexlify(i[<NUM_LIT:4>]).decode("<STR_LIT:utf-8>"),<EOL>timestamp=i[<NUM_LIT:2>],<EOL>address=i[<NUM_LIT:3>],<EOL>transactionId=i[<NUM_LIT:1>]<EOL>)<EOL>res.append(registration)<EOL><DEDENT>return res<EOL>
returns a list of named tuples of all delegates.
        {username: {'pubkey':pubkey, 'timestamp':timestamp, 'address':address}}