Skip to content

Commit

Permalink
rename to xx
Browse files Browse the repository at this point in the history
  • Loading branch information
lollerfirst committed Dec 4, 2024
1 parent 3c6b125 commit 434c460
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions cashu/mint/verification.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
return nutxx.verify_mint_quote(quote.quote, outputs, quote.pubkey, witness)
2 changes: 1 addition & 1 deletion cashu/wallet/api/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion cashu/wallet/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
6 changes: 3 additions & 3 deletions cashu/wallet/mint_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions cashu/wallet/wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 434c460

Please sign in to comment.