mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-20 18:44:20 +01:00
add links
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user