def digest(self): return sha256(self.h.digest()).digest()[:self.truncate_to]