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 handling
What 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
TODO Location
sixty_nuts/wallet.py:656Priority
🔴 High Priority - Required for complete Lightning payments
Current Code
What needs to be done
Implementation steps
store_proofs()to persist the change