Threshold-based secret voting scheme