-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request
Description
TODO Location
sixty_nuts/wallet.py:656
Priority
🔴 High Priority - Required for complete Lightning payments
Current Code
# Handle any change returned from the mint
change_proofs: list[ProofDict] = []
if "change" in melt_resp and melt_resp["change"]:
# TODO: handle change
# Convert BlindedSignatures to ProofDict format
# This would require unblinding logic, but for now we'll skip change handlingWhat needs to be done
- Implement proper change handling when melting tokens for Lightning payments
- Unbind the BlindedSignatures returned by the mint
- Convert them to ProofDict format
- Store the change proofs in the wallet
Implementation steps
- Extract BlindedSignatures from melt response
- Use the original blinding factors to unblind signatures
- Create ProofDict objects with correct format
- Call
store_proofs()to persist the change
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request