mirror of
https://github.com/nostr-protocol/nips.git
synced 2025-12-08 16:18:50 +00:00
NIP-60: jsonconc -> jsonc (#1727)
This commit is contained in:
6
60.md
6
60.md
@@ -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([
|
||||||
|
|||||||
Reference in New Issue
Block a user