From 8af1b61b30351550118d87138197a5b63aef0421 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Wed, 26 Jun 2024 23:38:57 +0200 Subject: [PATCH] default witness is None, closes #559 (#563) --- cashu/core/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cashu/core/base.py b/cashu/core/base.py index 3d9312a..4aa2bad 100644 --- a/cashu/core/base.py +++ b/cashu/core/base.py @@ -125,7 +125,7 @@ class Proof(BaseModel): Y: str = "" # hash_to_curve(secret) C: str = "" # signature on secret, unblinded by wallet dleq: Optional[DLEQWallet] = None # DLEQ proof - witness: Union[None, str] = "" # witness for spending condition + witness: Union[None, str] = None # witness for spending condition # whether this proof is reserved for sending, used for coin management in the wallet reserved: Union[None, bool] = False