NUT-19: Cached Responses #195
No reviewers
Labels
No labels
breaking change
bug
documentation
enhancement
needs discussion
needs implementation
new nut
ready
wallet-only
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo-admin/nuts!195
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "cached-responses"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Cache every successful
PostMintResponse,PostMeltResponseandPostSwapResponseusing the respective requests as keys.In case of a network error, clients can replay the same exact requests receive the same responses. This safe-guards against clients accidentally losing money because of connectivity issues.
Implementations:
Not a grammar pro myself, but I think this is correct?
Awesome work and thank you for the implementations. I wonder whether we want to add this to the existing NUTs or formulate it as a separate NUT.
In both cases, I think it would be better to formulate this as an optional feature. Right now it is formulated as a MUST.
One argument for putting this in its own NUT would be that we would have to add a note about caching into every method that we add (like bolt12) whereas it could be formulated more generally as "any endpoint that produces outputs" and we could reference the specific NUTs for mint/melt/swap (and further future methods).
This NUT should also defined a setting flag for each cached endpoint that we announce in the mint info (together with a TTL)
There are two unrelated files in the PR.
Questions in my mind:
Should refer and link to NUTs
Example: Redis?
I think this sounds overly technical but I've corrected your version here.
Left some minor corrections on first pass
Should be in the previous sentence.
?