From 2f19890eefbd42011f3179504fcf10a178ddc97a Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Sat, 14 Jan 2023 20:03:46 +0100 Subject: [PATCH] whitespace formatting --- docs/specs/03.md | 4 +-- docs/specs/04.md | 80 ++++++++++++++++++++++++------------------------ docs/specs/05.md | 34 ++++++++++---------- docs/specs/06.md | 56 ++++++++++++++++----------------- 4 files changed, 87 insertions(+), 87 deletions(-) diff --git a/docs/specs/03.md b/docs/specs/03.md index f39b4c3..0106358 100644 --- a/docs/specs/03.md +++ b/docs/specs/03.md @@ -22,8 +22,8 @@ Response of `Bob`: ```json { - "pr": "lnbc100n1p3kdrv5sp5lpdxzghe5j67q...", - "hash": "67d1d9ea6ada225c115418671b64a..." + "pr": "lnbc100n1p3kdrv5sp5lpdxzghe5j67q...", + "hash": "67d1d9ea6ada225c115418671b64a..." } ``` diff --git a/docs/specs/04.md b/docs/specs/04.md index 24680f1..e1c3761 100644 --- a/docs/specs/04.md +++ b/docs/specs/04.md @@ -16,11 +16,11 @@ With the data being of the form `BlindedMessages`: ```json { - "blinded_messages": - [ - BlindedMessage, - ... - ] + "blinded_messages": + [ + BlindedMessage, + ... + ] } ``` @@ -30,18 +30,18 @@ With curl: ```bash curl -X POST https://mint.host:3338/mint&payment_hash=67d1d9ea6ada225c115418671b64a -d \ { - "blinded_messages": - [ - { - "amount": 2, - "B_": "02634a2c2b34bec9e8a4aba4361f6bf202d7fa2365379b0840afe249a7a9d71239" - }, - { - "amount": 8, - "B_": "03b54ab451b15005f2c64d38fc512fca695914c8fd5094ee044e5724ad41fda247" - - } - ] + "blinded_messages": + [ + { + "amount": 2, + "B_": "02634a2c2b34bec9e8a4aba4361f6bf202d7fa2365379b0840afe249a7a9d71239" + }, + { + "amount": 8, + "B_": "03b54ab451b15005f2c64d38fc512fca695914c8fd5094ee044e5724ad41fda247" + + } + ] } ``` @@ -52,18 +52,18 @@ If the invoice was successfully paid, `Bob` responds with a `PostMintResponse` w ```json { "promises": - [ - { - "id": "DSAl9nvvyfva", - "amount": 2, - "C_": "03e61daa438fc7bcc53f6920ec6c8c357c24094fb04c1fc60e2606df4910b21ffb" - }, - { - "id": "DSAl9nvvyfva", - "amount": 8, - "C_": "03fd4ce5a16b65576145949e6f99f445f8249fee17c606b688b504a849cdc452de" - }, - ] + [ + { + "id": "DSAl9nvvyfva", + "amount": 2, + "C_": "03e61daa438fc7bcc53f6920ec6c8c357c24094fb04c1fc60e2606df4910b21ffb" + }, + { + "id": "DSAl9nvvyfva", + "amount": 8, + "C_": "03fd4ce5a16b65576145949e6f99f445f8249fee17c606b688b504a849cdc452de" + }, + ] } ``` @@ -79,16 +79,16 @@ A list multiple `Proof`'s is called `Proofs` and has the form: ```json { "proofs" : - [ - { - "id": "DSAl9nvvyfva", - "amount": 2, - "secret": "S+tDfc1Lfsrb06zaRdVTed6Izg", - "C": "0242b0fb43804d8ba9a64ceef249ad7a60f42c15fe6d4907238b05e857527832a3" - }, - { - ... - } - ] + [ + { + "id": "DSAl9nvvyfva", + "amount": 2, + "secret": "S+tDfc1Lfsrb06zaRdVTed6Izg", + "C": "0242b0fb43804d8ba9a64ceef249ad7a60f42c15fe6d4907238b05e857527832a3" + }, + { + ... + } + ] } ``` \ No newline at end of file diff --git a/docs/specs/05.md b/docs/specs/05.md index 1cfb716..70c1415 100644 --- a/docs/specs/05.md +++ b/docs/specs/05.md @@ -16,12 +16,12 @@ With the data being of the form `MeltRequest`: ```json { - "proofs": - [ - Proof, - ... - ], - "invoice": str + "proofs": + [ + Proof, + ... + ], + "invoice": str } ``` @@ -32,17 +32,17 @@ With curl: curl -X POST https://mint.host:3338/mint&payment_hash=67d1d9ea6ada225c115418671b64a -d \ { "proofs" : - [ - { - "id": "DSAl9nvvyfva", - "amount": 2, - "secret": "S+tDfc1Lfsrb06zaRdVTed6Izg", - "C": "0242b0fb43804d8ba9a64ceef249ad7a60f42c15fe6d4907238b05e857527832a3" - }, - { - ... - } - ], + [ + { + "id": "DSAl9nvvyfva", + "amount": 2, + "secret": "S+tDfc1Lfsrb06zaRdVTed6Izg", + "C": "0242b0fb43804d8ba9a64ceef249ad7a60f42c15fe6d4907238b05e857527832a3" + }, + { + ... + } + ], "invoice": "lnbc100n1p3kdrv5sp5lpdxzghe5j67q..." } ``` diff --git a/docs/specs/06.md b/docs/specs/06.md index a5de2e7..2ad3fe8 100644 --- a/docs/specs/06.md +++ b/docs/specs/06.md @@ -26,9 +26,9 @@ With the data being of the form `SplitRequest`: ```json { - "proofs": Proofs, - "outputs": BlindedMessages, - "amount": int + "proofs": Proofs, + "outputs": BlindedMessages, + "amount": int } ``` @@ -37,31 +37,31 @@ With curl: ```bash curl -X POST https://mint.host:3338/split -d \ { - "proofs": - [ - { - "id": "DSAl9nvvyfva", - "amount": 2, - "secret": "S+tDfc1Lfsrb06zaRdVTed6Izg", - "C": "0242b0fb43804d8ba9a64ceef249ad7a60f42c15fe6d4907238b05e857527832a3" - }, - { - ... - } - ], - "outputs":{ - "blinded_messages": - [ - { - "amount": 2, - "B_": "02634a2c2b34bec9e8a4aba4361f6bf202d7fa2365379b0840afe249a7a9d71239" - }, - { - ... - } - ] - }, - "amount": 40 + "proofs": + [ + { + "id": "DSAl9nvvyfva", + "amount": 2, + "secret": "S+tDfc1Lfsrb06zaRdVTed6Izg", + "C": "0242b0fb43804d8ba9a64ceef249ad7a60f42c15fe6d4907238b05e857527832a3" + }, + { + ... + } + ], + "outputs":{ + "blinded_messages": + [ + { + "amount": 2, + "B_": "02634a2c2b34bec9e8a4aba4361f6bf202d7fa2365379b0840afe249a7a9d71239" + }, + { + ... + } + ] + }, + "amount": 40 } ```