diff --git a/cashu/core/nuts/nut19.py b/cashu/core/nuts/nutxx.py similarity index 100% rename from cashu/core/nuts/nut19.py rename to cashu/core/nuts/nutxx.py diff --git a/cashu/mint/verification.py b/cashu/mint/verification.py index 5d7d0aa0..ed53f408 100644 --- a/cashu/mint/verification.py +++ b/cashu/mint/verification.py @@ -21,7 +21,7 @@ TransactionError, TransactionUnitError, ) -from ..core.nuts import nut19 +from ..core.nuts import nutxx from ..core.settings import settings from ..lightning.base import LightningBackend from ..mint.crud import LedgerCrud @@ -288,4 +288,4 @@ def _verify_mint_quote_witness( return True if not witness: return False - return nut19.verify_mint_quote(quote.quote, outputs, quote.pubkey, witness) \ No newline at end of file + return nutxx.verify_mint_quote(quote.quote, outputs, quote.pubkey, witness) \ No newline at end of file diff --git a/cashu/wallet/api/router.py b/cashu/wallet/api/router.py index 1e4de7d3..d37eae42 100644 --- a/cashu/wallet/api/router.py +++ b/cashu/wallet/api/router.py @@ -189,7 +189,7 @@ async def swap( if incoming_wallet.url == outgoing_wallet.url: raise Exception("mints for swap have to be different") - # get keypair to lock the quote with (NUT19) + # get keypair to lock the quote with (NUTXX) keypair = await incoming_wallet.get_quote_ephemeral_keypair() # request invoice from incoming mint mint_quote = await incoming_wallet.request_mint(amount, keypair=keypair) diff --git a/cashu/wallet/cli/cli.py b/cashu/wallet/cli/cli.py index d3b6dee4..0c650b62 100644 --- a/cashu/wallet/cli/cli.py +++ b/cashu/wallet/cli/cli.py @@ -365,7 +365,7 @@ def mint_invoice_callback(msg: JSONRPCNotficationParams): mint_supports_websockets = wallet.mint_info.supports_websocket_mint_quote( Method["bolt11"], wallet.unit ) - # get keypair for NUT19 or None + # get keypair for quote keypair = await wallet.get_quote_ephemeral_keypair() if mint_supports_websockets and not no_check: mint_quote, subscription = await wallet.request_mint_with_callback( diff --git a/cashu/wallet/mint_info.py b/cashu/wallet/mint_info.py index 9405f135..9ed813ae 100644 --- a/cashu/wallet/mint_info.py +++ b/cashu/wallet/mint_info.py @@ -57,7 +57,7 @@ def supports_websocket_mint_quote(self, method: Method, unit: Unit) -> bool: def supports_mint_quote_signature(self) -> bool: if not self.nuts: return False - nut19 = self.nuts.get(MINT_QUOTE_SIGNATURE_NUT, None) - if nut19: - return nut19["supported"] + nutxx = self.nuts.get(MINT_QUOTE_SIGNATURE_NUT, None) + if nutxx: + return nutxx["supported"] return False diff --git a/cashu/wallet/wallet.py b/cashu/wallet/wallet.py index f01bb46c..abbb7d99 100644 --- a/cashu/wallet/wallet.py +++ b/cashu/wallet/wallet.py @@ -36,7 +36,7 @@ PostCheckStateResponse, PostMeltQuoteResponse, ) -from ..core.nuts import nut19 +from ..core.nuts import nutxx from ..core.p2pk import Secret from ..core.settings import settings from ..core.split import amount_split @@ -549,7 +549,7 @@ async def mint( witness: Optional[str] = None if quote_privkey: - witness = nut19.sign_mint_quote(quote_id, outputs, quote_privkey) + witness = nutxx.sign_mint_quote(quote_id, outputs, quote_privkey) # will raise exception if mint is unsuccessful promises = await super().mint(outputs, quote_id, witness)