def increment(self):
    self.counter += 1
    
    # new value
    new_value = (self.last_dlog_result * self.base) % self.modulus
    
    # record the discrete log
    self.dlogs[new_value] = self.counter
    
    # record the last value
    self.last_dlog_result = new_value
dataset/ETHPy150Open benadida/helios-server/helios/crypto/electionalgs.py/DLogTable.increment/original