diff --git a/cashu/core/base.py b/cashu/core/base.py index eafb85c6..d9f1dc0a 100644 --- a/cashu/core/base.py +++ b/cashu/core/base.py @@ -110,8 +110,7 @@ class Proof(BaseModel): def __init__(self, **data): super().__init__(**data) - if not self.Y: - self.Y = hash_to_curve(self.secret.encode("utf-8")).serialize().hex() + self.Y = hash_to_curve(self.secret.encode("utf-8")).serialize().hex() @classmethod def from_dict(cls, proof_dict: dict):