From 9cdfba52a3a9d0c70dc9f3cffd9058520bdb77c5 Mon Sep 17 00:00:00 2001 From: elnosh Date: Tue, 5 Nov 2024 07:52:09 -0500 Subject: [PATCH] add nut-14 as supported in info endpoint (#647) --- cashu/core/nuts.py | 1 + cashu/mint/features.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/cashu/core/nuts.py b/cashu/core/nuts.py index 6c0b528..ffe788a 100644 --- a/cashu/core/nuts.py +++ b/cashu/core/nuts.py @@ -9,5 +9,6 @@ SCRIPT_NUT = 10 P2PK_NUT = 11 DLEQ_NUT = 12 DETERMINSTIC_SECRETS_NUT = 13 +HTLC_NUT = 14 MPP_NUT = 15 WEBSOCKETS_NUT = 17 diff --git a/cashu/mint/features.py b/cashu/mint/features.py index 43fdec4..85e8f71 100644 --- a/cashu/mint/features.py +++ b/cashu/mint/features.py @@ -8,6 +8,7 @@ from ..core.models import ( from ..core.nuts import ( DLEQ_NUT, FEE_RETURN_NUT, + HTLC_NUT, MELT_NUT, MINT_NUT, MPP_NUT, @@ -58,6 +59,7 @@ class LedgerFeatures(SupportsBackends): SCRIPT_NUT: supported_dict, P2PK_NUT: supported_dict, DLEQ_NUT: supported_dict, + HTLC_NUT: supported_dict, } # signal which method-unit pairs support MPP