Skip to content

Commit 95b2764

Browse files
authored
add missing NUT-06 settings (#191)
1 parent 6e5c264 commit 95b2764

File tree

9 files changed

+86
-2
lines changed

9 files changed

+86
-2
lines changed

07.md

+12
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,18 @@ curl -X POST https://mint.host:3338/v1/checkstate -H 'Content-Type: application/
9999

100100
Where `Y` belongs to the provided `Proof` to check in the request, `state` indicates its state, and `witness` is the witness data that was potentially provided in a previous spend operation (can be empty).
101101

102+
## Mint info setting
103+
104+
The [NUT-06][06] `MintMethodSetting` indicates support for this feature:
105+
106+
```json
107+
{
108+
"7": {
109+
"supported": true
110+
}
111+
}
112+
```
113+
102114
[00]: 00.md
103115
[01]: 01.md
104116
[02]: 02.md

08.md

+12
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,18 @@ If the mint has made a successful payment, it will respond the following.
132132

133133
The field `change` is an array of `BlindSignatures` that account for the overpaid fees. Notice that the amount has been changed by the mint. `Alice` must take these and generate `Proofs` by unblinding them as described in [NUT-00][00] and as she does in [NUT-04][04] when minting new tokens. After generating the `Proofs`, `Alice` stores them in her database.
134134

135+
## Mint info setting
136+
137+
The [NUT-06][06] `MintMethodSetting` indicates support for this feature:
138+
139+
```json
140+
{
141+
"8": {
142+
"supported": true
143+
}
144+
}
145+
```
146+
135147
[00]: 00.md
136148
[01]: 01.md
137149
[02]: 02.md

09.md

+12
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,18 @@ The mint `Bob` then responds with a `PostRestoreResponse`.
3737

3838
The returned arrays `outputs` and `signatures` are of the same length and for every entry `outputs[i]`, there is a corresponding entry `signatures[i]`.
3939

40+
## Mint info setting
41+
42+
The [NUT-06][06] `MintMethodSetting` indicates support for this feature:
43+
44+
```json
45+
{
46+
"9": {
47+
"supported": true
48+
}
49+
}
50+
```
51+
4052
[00]: 00.md
4153
[02]: 02.md
4254
[03]: 03.md

10.md

+12
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,18 @@ Example use cases of this secret format are
5656
- [NUT-11][11]: Pay-to-Public-Key (P2PK)
5757
- [NUT-14][14]: Hashed Timelock Contracts (HTLCs)
5858

59+
## Mint info setting
60+
61+
The [NUT-06][06] `MintMethodSetting` indicates support for this feature:
62+
63+
```json
64+
{
65+
"10": {
66+
"supported": true
67+
}
68+
}
69+
```
70+
5971
[00]: 00.md
6072
[01]: 01.md
6173
[02]: 02.md

11.md

+12
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,18 @@ The following use cases are unlocked using P2PK:
172172
- Ecash that is owned by multiple people via the multisignature abilities
173173
- Atomic swaps when used in combination with the locktime feature
174174

175+
## Mint info setting
176+
177+
The [NUT-06][06] `MintMethodSetting` indicates support for this feature:
178+
179+
```json
180+
{
181+
"11": {
182+
"supported": true
183+
}
184+
}
185+
```
186+
175187
[00]: 00.md
176188
[01]: 01.md
177189
[02]: 02.md

12.md

+12
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,18 @@ R1 = ... (same as Alice)
130130

131131
If a DLEQ proof is included in a received token, wallets **MUST** verify the proof.
132132

133+
## Mint info setting
134+
135+
The [NUT-06][06] `MintMethodSetting` indicates support for this feature:
136+
137+
```json
138+
{
139+
"12": {
140+
"supported": true
141+
}
142+
}
143+
```
144+
133145
[00]: 00.md
134146
[01]: 01.md
135147
[02]: 02.md

14.md

+12
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,18 @@ See [NUT-11][11] for a description of the signature scheme, the additional use o
6060

6161
The witness for a spent proof can be obtained with a `Proof` state check (see [NUT-07][07]).
6262

63+
## Mint info setting
64+
65+
The [NUT-06][06] `MintMethodSetting` indicates support for this feature:
66+
67+
```json
68+
{
69+
"14": {
70+
"supported": true
71+
}
72+
}
73+
```
74+
6375
[00]: 00.md
6476
[01]: 01.md
6577
[02]: 02.md

15.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ The wallet `Alice` includes the following `PostMeltQuoteBolt11Request` data in i
3838

3939
Here, `request` is the bolt11 Lightning invoice to be paid, `unit` is the unit the wallet would like to pay with, and `amount` is the amount for the requested payment. The wallet then pays the returned melt quote the same way as in [NUT-05][05].
4040

41-
## Settings
41+
## Mint info setting
4242

4343
The settings returned in the info endpoint ([NUT-06][06]) indicate that a mint supports this NUT. The mint MUST indicate each `method` and `unit` that supports `mpp`. It can indicate this in an array of objects for multiple `method` and `unit` pairs and the boolean flag `mpp` set to `true`.
4444

17.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ Wallet:
228228
}
229229
```
230230

231-
## Signaling Support via NUT-06
231+
## Mint info setting
232232

233233
Mints signal websocket support via [NUT-06][06] using the following setting:
234234

0 commit comments

Comments
 (0)