Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: nut19 signature on mint request #188

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

thesimplekid
Copy link
Collaborator

@thesimplekid thesimplekid commented Nov 10, 2024

This NUT defines a protocol extension that enables signature-based authentication for mint quote redemption. When requesting a mint quote, clients can provide a public key. The mint will then require a valid signature from the corresponding secret key before processing the mint.

This is defined as an optional extension to NUT-04 and the intention is to reuse it and make it mandatory for bolt12 and onchain.

@thesimplekid thesimplekid added the new nut A new protocol NUT label Nov 10, 2024

## Settings

The settings for this NUT indicate the support for requiring a signature before minting. They are part of the info response of the mint ([NUT-06][06]) which in this case reads

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The settings for this NUT indicate the support for requiring a signature before minting. They are part of the info response of the mint ([NUT-06][06]) which in this case reads
The settings for this NUT indicate the support for requiring a signature before minting. They are part of the info response of the mint ([NUT-06](06.md)) which in this case reads

Copy link
Collaborator

@prusnak prusnak Nov 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another way how to fix the issue is to add the following at the end of the file:

[06]: 06.md

This seems to be preferred way used in other documents.

@lollerfirst
Copy link

@thesimplekid Should we make it clear that wallets should use an ephemeral (one time) key?

@@ -16,6 +16,7 @@
| 20005 | Quote is pending | [NUT-04][04], [NUT-05][05] |
| 20006 | Invoice already paid | [NUT-05][05] |
| 20007 | Quote is expired | [NUT-04][04], [NUT-05][05] |
| 20008 | Witness not provided for mint quote | [NUT-19][19] |

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need an error for the invalid witness as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new nut A new protocol NUT
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants