From ec171c43f80252cadb9f58fdae9b59805c2e2f3f Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Sat, 14 Jan 2023 22:15:02 +0100 Subject: [PATCH] add links --- docs/specs/00.md | 9 +++++---- docs/specs/01.md | 3 ++- docs/specs/02.md | 3 ++- docs/specs/03.md | 3 ++- docs/specs/04.md | 4 ++-- docs/specs/05.md | 3 ++- docs/specs/06.md | 3 ++- 7 files changed, 17 insertions(+), 11 deletions(-) diff --git a/docs/specs/00.md b/docs/specs/00.md index 001625d..f5733dd 100644 --- a/docs/specs/00.md +++ b/docs/specs/00.md @@ -31,7 +31,7 @@ Mint: `Bob` ### `BlindedMessage` -An encrypted ("blinded") secret and an amount sent from `Alice` to `Bob` before [minting new tokens][04]. A `BlindedMessage` is also called an `output`. +An encrypted ("blinded") secret and an amount sent from `Alice` to `Bob` for [minting tokens][04] or for [splitting tokens][06]. A `BlindedMessage` is also called an `output`. ```json { @@ -44,7 +44,7 @@ An encrypted ("blinded") secret and an amount sent from `Alice` to `Bob` before ### `BlindedSignature` -A signature on the `BlindedMessage` sent from `Bob` to `Alice` after [minting new tokens][04]. A `BlindedSignature` is also called a `promise`. +A signature on the `BlindedMessage` sent from `Bob` to `Alice` after [minting tokens][04] or after [splitting tokens][06]. A `BlindedSignature` is also called a `promise`. ```json { @@ -58,7 +58,7 @@ A signature on the `BlindedMessage` sent from `Bob` to `Alice` after [minting ne ### `Proof` -A `Proof` is also called a `Token` when it is [serialized](#serialization-of-proofs). `Alice` sends the serialized to `Carol` to initiate a payment. Upon receiving the token, `Carol` deserializes it and requests a split from `Bob` to exchange it for new `BlindedSignature`'s. `Carol` sends the `Proof` to `Bob` together with new `BlindedMessage`'s that she wants to have signed. +A `Proof` is sent to `Bob` for [melting tokens][05]. A `Proof` can also be sent from `Alice` to `Carol` for which it is first can be [serialized](#serialization-of-proofs). Upon receiving the token, `Carol` deserializes it and requests a [split][06] from `Bob` to receive new tokens. ```json { @@ -149,7 +149,8 @@ eyJwcm9vZnMiOlt7ImlkIjoiRFNBbDludnZ5ZnZhIiwiYW1vdW50IjoyLCJzZWNyZXQiOiJiZFlDYkhH ``` [00]: 00.md -[01]: 02.md +[01]: 01.md +[02]: 02.md [03]: 03.md [04]: 04.md [05]: 05.md diff --git a/docs/specs/01.md b/docs/specs/01.md index d495da7..8275fbb 100644 --- a/docs/specs/01.md +++ b/docs/specs/01.md @@ -39,7 +39,8 @@ Response of `Bob`: ``` [00]: 00.md -[01]: 02.md +[01]: 01.md +[02]: 02.md [03]: 03.md [04]: 04.md [05]: 05.md diff --git a/docs/specs/02.md b/docs/specs/02.md index 6ad2f2b..049552d 100644 --- a/docs/specs/02.md +++ b/docs/specs/02.md @@ -78,7 +78,8 @@ def derive_keyset_id(keys: Dict[int, PublicKey]): ``` [00]: 00.md -[01]: 02.md +[01]: 01.md +[02]: 02.md [03]: 03.md [04]: 04.md [05]: 05.md diff --git a/docs/specs/03.md b/docs/specs/03.md index f0c3f6c..81cc7fa 100644 --- a/docs/specs/03.md +++ b/docs/specs/03.md @@ -30,7 +30,8 @@ Response of `Bob`: with `pr` being the bolt11 payment request and `hash` the hash of the invoice. A wallet **MUST** store the `hash` and `amount_sat` in its database to later request the tokens upon paying the invoice. A wallet **SHOULD** then present the payment request (for example via QR code) to the user such that they can pay the invoice with another Lightning wallet. After the user has paid the invoice, a wallet **MUST** continue with #4 - Minting tokens [TODO: Link to #4]. [00]: 00.md -[01]: 02.md +[01]: 01.md +[02]: 02.md [03]: 03.md [04]: 04.md [05]: 05.md diff --git a/docs/specs/04.md b/docs/specs/04.md index c9ec0db..7747ba0 100644 --- a/docs/specs/04.md +++ b/docs/specs/04.md @@ -61,7 +61,6 @@ If the invoice was successfully paid, `Bob` responds with a `PostMintResponse` w }, ] } - ``` If the invoice was not paid yet, `Bob` responds with an error. In that case, `Alice` **CAN** repeat the same response until the Lightning invoice is settled. @@ -90,7 +89,8 @@ A list multiple `Proof`'s is called `Proofs` and has the form: ``` [00]: 00.md -[01]: 02.md +[01]: 01.md +[02]: 02.md [03]: 03.md [04]: 04.md [05]: 05.md diff --git a/docs/specs/05.md b/docs/specs/05.md index b6209ce..2034dd8 100644 --- a/docs/specs/05.md +++ b/docs/specs/05.md @@ -59,7 +59,8 @@ curl -X POST https://mint.host:3338/mint&payment_hash=67d1d9ea6ada225c115418671b Only if the `paid==true`, the wallet `Alice` **MUST** delete the `Proofs` from her database (or move them to a history). If `paid==false`, `Alice` **CAN** repeat the same multiple times until the payment is successful. [00]: 00.md -[01]: 02.md +[01]: 01.md +[02]: 02.md [03]: 03.md [04]: 04.md [05]: 05.md diff --git a/docs/specs/06.md b/docs/specs/06.md index f728380..8910469 100644 --- a/docs/specs/06.md +++ b/docs/specs/06.md @@ -76,7 +76,8 @@ class PostSplitResponse(BaseModel): `BlindedSignatures` is a list (array) of `BlindedSignature`s (see [NUT-0][00]). [00]: 00.md -[01]: 02.md +[01]: 01.md +[02]: 02.md [03]: 03.md [04]: 04.md [05]: 05.md