Added common interface for pubkey and message