NUT-18: Add optional P2PK options and transport field #243
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!243
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "nut-18-p2pk-and-optional-target"
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?
Introduce optional
p2pkoptions for specifying P2PK locking parameters in payment requests. Make thetransportfield optional to allow for in-band payment assumptions.Supersedes and closes #204
Supersedes and closes #209
Todo:
base64_urlsafein encoding exampleQuestion on the pubkeys we don't have a
num_sigshere so if multiple pubkeys are defined any of them can but used or should all of them be used and it should be 1 of n?Forgot num_sigs! Thank you. Should've included all tags.
cdk: https://github.com/cashubtc/cdk/pull/699
Could this be changed to more generally define NUT-10 secrets? Instead of extending NUT-18 every time a new spending condition is introduced, could payment requests have a
nut10option whereNUT10Optionis something like:For p2pk this is more verbose, but it would allow requests to ask for proofs locked to any condition that follows NUT-10.
Not a bad idea, worth considering IMO.
I opened #248 with this proposed change and implemented in cashu-ts: https://github.com/cashubtc/cashu-ts/pull/285
I think with the changes proposed by @gudnuf this LGTM. We can then move to discuss the exact structure of it in NUT-11
I agree doing it this way will prevent having to update the nut in the future for other conditions ie htlc
We can close this for https://github.com/cashubtc/nuts/pull/248 right?
#248 is a branch of this. We can change target or merge it into this PR
I just changed the branch for 248 to target main, so I'll close this... don't shoot ✋😮🤚
Pull request closed