Insert a byte array data in the set.
(self, data)
| 77 | self.denominator = 1 |
| 78 | |
| 79 | def insert(self, data): |
| 80 | """Insert a byte array data in the set.""" |
| 81 | data_hash = hashlib.sha256(data).digest() |
| 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.""" |