NIP-60: jsonconc -> jsonc (#1727)

This commit is contained in:
P. Reis 2025-01-30 10:45:35 -03:00 committed by GitHub
parent 54b431e701
commit 7370729472
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

6
60.md
View File

@ -134,7 +134,7 @@ While the client is fetching (and perhaps validating) proofs it can use the opti
## Spending token ## Spending token
If Alice spends 4 sats from this token event If Alice spends 4 sats from this token event
```jsonconc ```jsonc
{ {
"kind": 7375, "kind": 7375,
"id": "event-id-1", "id": "event-id-1",
@ -155,7 +155,7 @@ If Alice spends 4 sats from this token event
Her client: Her client:
* MUST roll over the unspent proofs: * MUST roll over the unspent proofs:
```jsonconc ```jsonc
{ {
"kind": 7375, "kind": 7375,
"id": "event-id-2", "id": "event-id-2",
@ -176,7 +176,7 @@ Her client:
* MUST delete event `event-id-1` * MUST delete event `event-id-1`
* SHOULD add the `event-id-1` to the `del` array of deleted token-ids. * SHOULD add the `event-id-1` to the `del` array of deleted token-ids.
* SHOULD create a `kind:7376` event to record the spend * SHOULD create a `kind:7376` event to record the spend
```jsonconc ```jsonc
{ {
"kind": 7376, "kind": 7376,
"content": nip44_encrypt([ "content": nip44_encrypt([