diff options
| author | fiatjaf <fiatjaf@gmail.com> | 2025-02-03 09:32:39 -0300 |
|---|---|---|
| committer | fiatjaf <fiatjaf@gmail.com> | 2025-02-03 09:32:39 -0300 |
| commit | bb88c66c1dbbdaed6283e594f33e59452ae9eada (patch) | |
| tree | 41d0431c65e6302404147fc4ced21850b9fedc34 | |
| parent | 22660b4c66223cad4967ece9a22cde06f17ff54b (diff) | |
remove units everywhere.
| -rw-r--r-- | 60.md | 4 | ||||
| -rw-r--r-- | 61.md | 4 |
2 files changed, 3 insertions, 5 deletions
| @@ -34,7 +34,7 @@ This NIP doesn't deal with users' *receiving* money from someone else, it's just | |||
| 34 | } | 34 | } |
| 35 | ``` | 35 | ``` |
| 36 | 36 | ||
| 37 | The wallet event is an addressable event `kind:17375`. | 37 | The wallet event is an replaceable event `kind:17375`. |
| 38 | 38 | ||
| 39 | Tags: | 39 | Tags: |
| 40 | * `mint` - Mint(s) this wallet uses -- there MUST be one or more mint tags. | 40 | * `mint` - Mint(s) this wallet uses -- there MUST be one or more mint tags. |
| @@ -157,7 +157,7 @@ Her client: | |||
| 157 | "kind": 7376, | 157 | "kind": 7376, |
| 158 | "content": nip44_encrypt([ | 158 | "content": nip44_encrypt([ |
| 159 | [ "direction", "out" ], | 159 | [ "direction", "out" ], |
| 160 | [ "amount", "4", "sats" ], | 160 | [ "amount", "4" ], |
| 161 | [ "e", "<event-id-1>", "", "destroyed" ], | 161 | [ "e", "<event-id-1>", "", "destroyed" ], |
| 162 | [ "e", "<event-id-2>", "", "created" ], | 162 | [ "e", "<event-id-2>", "", "created" ], |
| 163 | ]), | 163 | ]), |
| @@ -50,7 +50,6 @@ Clients MUST prefix the public key they P2PK-lock with `"02"` (for nostr<>cashu | |||
| 50 | content: "Thanks for this great idea.", | 50 | content: "Thanks for this great idea.", |
| 51 | pubkey: "sender-pubkey", | 51 | pubkey: "sender-pubkey", |
| 52 | tags: [ | 52 | tags: [ |
| 53 | [ "unit", "sat" ], | ||
| 54 | [ "proof", "{\"amount\":1,\"C\":\"02277c66191736eb72fce9d975d08e3191f8f96afb73ab1eec37e4465683066d3f\",\"id\":\"000a93d6f8a1d2c4\",\"secret\":\"[\\\"P2PK\\\",{\\\"nonce\\\":\\\"b00bdd0467b0090a25bdf2d2f0d45ac4e355c482c1418350f273a04fedaaee83\\\",\\\"data\\\":\\\"02eaee8939e3565e48cc62967e2fde9d8e2a4b3ec0081f29eceff5c64ef10ac1ed\\\"}]\"}" ], | 53 | [ "proof", "{\"amount\":1,\"C\":\"02277c66191736eb72fce9d975d08e3191f8f96afb73ab1eec37e4465683066d3f\",\"id\":\"000a93d6f8a1d2c4\",\"secret\":\"[\\\"P2PK\\\",{\\\"nonce\\\":\\\"b00bdd0467b0090a25bdf2d2f0d45ac4e355c482c1418350f273a04fedaaee83\\\",\\\"data\\\":\\\"02eaee8939e3565e48cc62967e2fde9d8e2a4b3ec0081f29eceff5c64ef10ac1ed\\\"}]\"}" ], |
| 55 | [ "u", "https://stablenut.umint.cash" ], | 54 | [ "u", "https://stablenut.umint.cash" ], |
| 56 | [ "e", "<zapped-event-id>", "<relay-hint>" ], | 55 | [ "e", "<zapped-event-id>", "<relay-hint>" ], |
| @@ -61,7 +60,6 @@ Clients MUST prefix the public key they P2PK-lock with `"02"` (for nostr<>cashu | |||
| 61 | 60 | ||
| 62 | * `.content` is an optional comment for the nutzap | 61 | * `.content` is an optional comment for the nutzap |
| 63 | * `.tags`: | 62 | * `.tags`: |
| 64 | * `unit` is the base unit of the amount. | ||
| 65 | * `proof` is one ore more proofs P2PK-locked to the public key the recipient specified in their `kind:10019` event and including a DLEQ proof. | 63 | * `proof` is one ore more proofs P2PK-locked to the public key the recipient specified in their `kind:10019` event and including a DLEQ proof. |
| 66 | * `u` is the mint the URL of the mint EXACTLY as specified by the recipient's `kind:10019`. | 64 | * `u` is the mint the URL of the mint EXACTLY as specified by the recipient's `kind:10019`. |
| 67 | * `p` is the Nostr identity public key of nutzap recipient. | 65 | * `p` is the Nostr identity public key of nutzap recipient. |
| @@ -95,7 +93,7 @@ Multiple `kind:9321` events can be tagged in the same `kind:7376` event. | |||
| 95 | "kind": 7376, | 93 | "kind": 7376, |
| 96 | "content": nip44_encrypt([ | 94 | "content": nip44_encrypt([ |
| 97 | [ "direction", "in" ], // in = received, out = sent | 95 | [ "direction", "in" ], // in = received, out = sent |
| 98 | [ "amount", "1", "sat" ], | 96 | [ "amount", "1" ], |
| 99 | [ "e", "<7375-event-id>", "relay-hint", "created" ] // new token event that was created | 97 | [ "e", "<7375-event-id>", "relay-hint", "created" ] // new token event that was created |
| 100 | ]), | 98 | ]), |
| 101 | "tags": [ | 99 | "tags": [ |