def get_voters_hash(self): voters = self.get_voters() voters_json = utils.to_json([ v.toJSONDict(with_vote=False, with_vote_hash=False) for v in voters ]) # logging.info("json for voters is: " + voters_json) return utils.hash_b64(voters_json)
def get_voters_hash(self): voters = self.get_voters() voters_json = utils.to_json([v.toJSONDict(with_vote=False, with_vote_hash=False) for v in voters]) # logging.info("json for voters is: " + voters_json) return utils.hash_b64(voters_json)
def compute_vote_hash(self): vote_hash = utils.hash_b64(self.vote) return vote_hash