You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to implement the melting operation as described in NUT-05 of the Cashu protocol. This operation allows users to spend their tokens by requesting the mint to make payments on their behalf, typically via the Lightning Network.
Objectives
Implement the melt quote endpoint in the Gakimint mint.
Implement the melting endpoint in the Gakimint mint.
Update the wallet CLI to support melting operations.
Ensure the implementation follows the Cashu protocol specifications.
Tasks
Implement the melt quote endpoint in the mint:
Create a new route POST /v1/melt/quote/bolt11 in the MintController.
Implement the melt quote logic in the Mint module.
Handle Lightning invoice parsing and fee estimation.
Implement the melting endpoint in the mint:
Create a new route POST /v1/melt/bolt11 in the MintController.
Implement the melting logic in the Mint module.
Validate input proofs.
Execute Lightning payments.
Handle payment states (UNPAID, PENDING, PAID).
Update the wallet CLI:
Implement a command to request a melt quote.
Implement a command to execute a melt operation.
Handle proper token selection for melting.
Implement security measures:
Ensure the sum of input amounts is sufficient for the melt amount plus fee reserve.
Verify that input proofs are valid and not already spent.
Implement proper error handling for various scenarios.
Testing:
Write unit tests for the melt quote and melting functionality in the mint.
Create integration tests for the complete melting process.
Test various scenarios: successful melts, failed payments, timeout handling.
Documentation:
Update API documentation to include the new melt quote and melting endpoints.
Add examples of how to use the melting operation in the wallet CLI documentation.
Implement NUT-05: Melting Tokens
Issue Description
We need to implement the melting operation as described in NUT-05 of the Cashu protocol. This operation allows users to spend their tokens by requesting the mint to make payments on their behalf, typically via the Lightning Network.
Objectives
Tasks
Implement the melt quote endpoint in the mint:
POST /v1/melt/quote/bolt11
in theMintController
.Mint
module.Implement the melting endpoint in the mint:
POST /v1/melt/bolt11
in theMintController
.Mint
module.Update the wallet CLI:
Implement security measures:
Testing:
Documentation:
API Specification
Melt Quote Request
Request body (
PostMeltQuoteBolt11Request
):Melt Quote Response
Response body (
PostMeltQuoteBolt11Response
):Melting Request
Request body (
PostMeltBolt11Request
):Considerations
Acceptance Criteria
Resources
Estimated Effort
High: This feature involves complex operations including Lightning Network payments and careful token management.
Priority
High: Melting tokens is a core feature of the Cashu protocol, allowing users to spend their tokens.
The text was updated successfully, but these errors were encountered: