Bolt12 #170
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!170
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "bolt12"
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?
Following up on your hackaton presentation at BTC++ we could make it so that a bolt12 quote has a different status enum:
EMPTYMINTABLERETIREDThe states can go from
EMPTYtoMINTABLEand back, but once the quote isRETIREDno more state changes.One might always expect to save and re-use the same quote to mint ecash multiple times, as that is the purpose of the bolt12 (to be paid multiple times).
And then we might introduce a new endpoint through which one can retire the quote.
Would it make sense to specify the length and type of the
quote? For example, 64 char hex string?IMO that makes it clear for implementors and avoids quick-and-dirty (and-insecure) solutions like incrementing from 1, or current unix timestamp, etc.
This also avoids complications if some mints decide to try out exotic characters, which some wallets may not expect.
Should we pick this back up?
Yes that's my plan in CDK it should be most of the way there. Should be a fun rebase. I just rebased this pr on main.
Superseded by https://github.com/cashubtc/nuts/pull/259
Pull request closed