From 7ba6a76cf8bcfeff1f94e69beebaa9a969a79f3c Mon Sep 17 00:00:00 2001 From: thesimplekid Date: Thu, 5 Dec 2024 11:36:48 +0000 Subject: [PATCH] chore: null -> optional --- 04.md | 2 +- 20.md | 12 +++++------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/04.md b/04.md index f6037b4..dae2601 100644 --- a/04.md +++ b/04.md @@ -26,7 +26,7 @@ The wallet of `Alice` includes the following `PostMintQuoteBolt11Request` data i { "amount": , "unit": , - "description": + "description": // Optional } ``` diff --git a/20.md b/20.md index b108d66..02bd502 100644 --- a/20.md +++ b/20.md @@ -8,8 +8,7 @@ This NUT defines signature-based authentication for mint quote redemption. When requesting a mint quote, clients provide a public key. The mint will then require a valid signature from the corresponding secret key to process the mint operation. -> [!CAUTION] -> [NUT-04][04] mint quotes without a public key can be minted by anyone who knows the mint quote id without providing a signature. +> [!CAUTION] > [NUT-04][04] mint quotes without a public key can be minted by anyone who knows the mint quote id without providing a signature. ## Mint quote @@ -25,8 +24,8 @@ The wallet of `Alice` includes the following `PostMintQuoteBolt11Request` data i { "amount": , "unit": , - "description": , - "pubkey": <-- New + "description": , // Optional + "pubkey": // Optional <-- New } ``` @@ -34,8 +33,7 @@ with the requested `amount`,`unit`, and `description` according to [NUT-04][04]. `pubkey` is the public key that will be required for signature verification during the minting operation. The mint will only mint ecash after receiving a valid signature from the corresponding private key in the subsequent `PostMintRequest`. -> [!IMPORTANT] -> **Privacy:** To prevent the mint from being able to link multiple mint quotes, wallets **SHOULD** generate a unique public key for each mint quote request. +> [!IMPORTANT] > **Privacy:** To prevent the mint from being able to link multiple mint quotes, wallets **SHOULD** generate a unique public key for each mint quote request. The mint `Bob` then responds with a `PostMintQuoteBolt11Response`: @@ -45,7 +43,7 @@ The mint `Bob` then responds with a `PostMintQuoteBolt11Response`: "request": , "state": , "expiry": , - "pubkey": <-- New + "pubkey": // Optional <-- New } ```