Example #1
0
func LoadVoterData(path string) *msgs.VoterData {
	data := keys.LoadBytes(path)
	var voterData msgs.VoterData
	err := proto.Unmarshal(data, &voterData)
	if err != nil {
		panic(err)
	}
	return &voterData
}
Example #2
0
func LoadBytes() []byte {
	return keys.LoadBytes(Path)
}