add ser and get_addr to public_key class