You’re mixing utilitarian considerations with deontological ones. For the pure deontologist, there is no conception of social good beyond protecting people’s rights. From the point of view of consent, there is nothing wrong with consensually exchanging voting rights in secret.