NUT-18: Add optional nut10 options and transport field #248
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!248
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "gudnuf-nut10-in-nut18"
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?
An alternative update to NUT-18 that would allow for payment requests to define any spending condition supported by NUT-10
@ -38,11 +39,32 @@ Here, the fields are- `m`: A set of mints from which the payment is requestednit: probably out of scope. This is part of NUT-10
@ -38,11 +39,32 @@ Here, the fields are- `m`: A set of mints from which the payment is requested@gudnuf
PR for CDK https://github.com/cashubtc/cdk/pull/744
Why is the
Transportfield optional?While this may provides flexibility to downstream users to implement thier own Transportation mechanism , it could raise security issues etc in their protocols ,if the custom implementation is poorly designed or lacks standarization.
Would it better to explicitly define the
Transportfield or at least , specify a recommended / standarized way as default transport method to mitigate such risks??Prior to this PR,
Transportwas required. Having no defined transport makes sense for use cases like NFC or L402 where we are expected to respond with a token via the same transport that the request was received. For example, with L402 we get a request in the X-cashu header and then our response includes a token in the X-cashu header.We don't know what people will build so these recommended transports wouldn't make sense in all cases
Merged in cdk
merged in cashu-ts