Recommend UUID v7 for quote and websocket subscription IDs #383
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!383
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "quotes-uuid-v7"
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?
This pull request updates the Cashu specifications (NUTs) to recommend UUID v7 for both quote IDs and WebSocket subscription IDs (
subId).Summary of Changes
UUID v7 Recommendations added:
subId) generated by the wallet SHOULD use UUID v7.Standardized Example Payloads:
nit: a UUIDv7 implementation that uses predictable counters or monotonic suffixes could weaken quote secrecy. We should specify that all 74 variable bits (after timestamp, version, and variant) are CSPRNG-generated.
@ -49,18 +49,18 @@ The mint `Bob` responds with a quote that includes some common fields for all me@ -64,7 +64,7 @@ The mint `Bob` responds with a quote that includes some common fields for all me}@ -49,18 +49,18 @@ The mint `Bob` responds with a quote that includes some common fields for all me@robwoodgate, great catch, cause without this a bad actor who sees one quote ID can start making educated guesses about other quote IDs generated around the same time.
LGTM, great initiative, we should also consider the recommendations raised by Rob.