upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/61.md
diff options
context:
space:
mode:
authorRob Woodgate <robwoodgate@users.noreply.github.com>2025-10-31 13:59:35 +0000
committerGitHub <noreply@github.com>2025-10-31 15:59:35 +0200
commit62f0b14ae81fd062bb84791bca698b29f6b573a3 (patch)
tree6b22c7c518d5f428ca4c0af0799db6c548470258 /61.md
parent3ec830cd2331ba0ed3113fc05a44c87deb9785be (diff)
Added base "unit" tag to NutZap kind:9321 event (#1915)
Diffstat (limited to '61.md')
-rw-r--r--61.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/61.md b/61.md
index 5ef7f68..5842d6b 100644
--- a/61.md
+++ b/61.md
@@ -51,6 +51,7 @@ Clients MUST prefix the public key they P2PK-lock with `"02"` (for nostr<>cashu
51 "pubkey": "<sender-pubkey>", 51 "pubkey": "<sender-pubkey>",
52 "tags": [ 52 "tags": [
53 [ "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\\\"}]\"}" ],
54 [ "unit", "sat" ],
54 [ "u", "https://stablenut.umint.cash" ], 55 [ "u", "https://stablenut.umint.cash" ],
55 [ "e", "<nutzapped-event-id>", "<relay-hint>" ], 56 [ "e", "<nutzapped-event-id>", "<relay-hint>" ],
56 [ "k", "<nutzapped-kind>"], 57 [ "k", "<nutzapped-kind>"],
@@ -62,6 +63,7 @@ Clients MUST prefix the public key they P2PK-lock with `"02"` (for nostr<>cashu
62* `.content` is an optional comment for the nutzap 63* `.content` is an optional comment for the nutzap
63* `.tags`: 64* `.tags`:
64 * `proof` is one or more proofs P2PK-locked to the public key the recipient specified in their `kind:10019` event and including a DLEQ proof. 65 * `proof` is one or more proofs P2PK-locked to the public key the recipient specified in their `kind:10019` event and including a DLEQ proof.
66 * `unit` the base unit the proofs are denominated in (eg: `sat`, `usd`, `eur`). Default: `sat` if omitted.
65 * `u` is the mint the URL of the mint EXACTLY as specified by the recipient's `kind:10019`. 67 * `u` is the mint the URL of the mint EXACTLY as specified by the recipient's `kind:10019`.
66 * `p` is the Nostr identity public key of nutzap recipient. 68 * `p` is the Nostr identity public key of nutzap recipient.
67 * `e` is the event that is being nutzapped, if any. 69 * `e` is the event that is being nutzapped, if any.
@@ -95,6 +97,7 @@ Multiple `kind:9321` events can be tagged in the same `kind:7376` event.
95 "content": nip44_encrypt([ 97 "content": nip44_encrypt([
96 [ "direction", "in" ], // in = received, out = sent 98 [ "direction", "in" ], // in = received, out = sent
97 [ "amount", "1" ], 99 [ "amount", "1" ],
100 [ "unit", "sat" ],
98 [ "e", "<7375-event-id>", "<relay-hint>", "created" ] // new token event that was created 101 [ "e", "<7375-event-id>", "<relay-hint>", "created" ] // new token event that was created
99 ]), 102 ]),
100 "tags": [ 103 "tags": [