Remove a byte array from the set.
(self, data)
| 82 | self.numerator = (self.numerator * data_to_num3072(data_hash)) % self.MODULUS |
| 83 | |
| 84 | def remove(self, data): |
| 85 | """Remove a byte array from the set.""" |
| 86 | data_hash = hashlib.sha256(data).digest() |
| 87 | self.denominator = (self.denominator * data_to_num3072(data_hash)) % self.MODULUS |
| 88 | |
| 89 | def digest(self): |
| 90 | """Extract the final hash. Does not modify this object.""" |