added publickey field to publicdata