upleb.uk

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

summaryrefslogtreecommitdiff
path: root/60.md
diff options
context:
space:
mode:
authorAsai Toshiya <to.asai.60@gmail.com>2025-02-03 23:00:33 +0900
committerGitHub <noreply@github.com>2025-02-03 23:00:33 +0900
commit8577545faad887396d413707bc9020d024407818 (patch)
tree872ede8755a97d8156325a21a755288b7d132233 /60.md
parentc88d9256135e53136ea2ce4f99b7e9cfcb21d143 (diff)
nip60: fix links.
Diffstat (limited to '60.md')
-rw-r--r--60.md14
1 files changed, 7 insertions, 7 deletions
diff --git a/60.md b/60.md
index 8117412..2f97f87 100644
--- a/60.md
+++ b/60.md
@@ -44,14 +44,14 @@ The wallet event is an addressable event `kind:37375`.
44Tags: 44Tags:
45* `d` - wallet ID. 45* `d` - wallet ID.
46* `mint` - Mint(s) this wallet uses -- there MUST be one or more mint tags. 46* `mint` - Mint(s) this wallet uses -- there MUST be one or more mint tags.
47* `relay` - Relays where the wallet and related events can be found. -- one ore more relays SHOULD be specified. If missing, clients should follow [[NIP-65]]. 47* `relay` - Relays where the wallet and related events can be found. -- one ore more relays SHOULD be specified. If missing, clients should follow [NIP-65](65.md).
48* `unit` - Base unit of the wallet (e.g. "sat", "usd", etc). 48* `unit` - Base unit of the wallet (e.g. "sat", "usd", etc).
49* `name` - Optional human-readable name for the wallet. 49* `name` - Optional human-readable name for the wallet.
50* `description` - Optional human-readable description of the wallet. 50* `description` - Optional human-readable description of the wallet.
51* `balance` - Optional best-effort balance of the wallet that can serve as a placeholder while an accurate balance is computed from fetching all unspent proofs. 51* `balance` - Optional best-effort balance of the wallet that can serve as a placeholder while an accurate balance is computed from fetching all unspent proofs.
52* `privkey` - Private key used to unlock P2PK ecash. MUST be stored encrypted in the `.content` field. **This is a different private key exclusively used for the wallet, not associated in any way to the user's nostr private key** -- This is only used when receiving funds from others, described in NIP-61. 52* `privkey` - Private key used to unlock P2PK ecash. MUST be stored encrypted in the `.content` field. **This is a different private key exclusively used for the wallet, not associated in any way to the user's nostr private key** -- This is only used when receiving funds from others, described in NIP-61.
53 53
54Any tag, other than the `d` tag, can be [[NIP-44]] encrypted into the `.content` field. 54Any tag, other than the `d` tag, can be [NIP-44](44.md) encrypted into the `.content` field.
55 55
56### Deleting a wallet event 56### Deleting a wallet event
57Due to addressable event being hard to delete, if a user wants to delete a wallet, they should empty the event and keep just the `d` identifier and add a `deleted` tag. 57Due to addressable event being hard to delete, if a user wants to delete a wallet, they should empty the event and keep just the `d` identifier and add a `deleted` tag.
@@ -90,7 +90,7 @@ There can be multiple `kind:7375` events for the same mint, and multiple proofs
90 * `del`: token-ids that were destroyed by the creation of this token. This assists with state transitions. 90 * `del`: token-ids that were destroyed by the creation of this token. This assists with state transitions.
91 91
92### Spending proofs 92### Spending proofs
93When one or more proofs of a token are spent, the token event should be [[NIP-09]]-deleted and, if some proofs are unspent from the same token event, a new token event should be created rolling over the unspent proofs and adding any change outputs to the new token event. 93When one or more proofs of a token are spent, the token event should be [NIP-09](09.md)-deleted and, if some proofs are unspent from the same token event, a new token event should be created rolling over the unspent proofs and adding any change outputs to the new token event.
94 94
95## Spending History Event 95## Spending History Event
96Clients SHOULD publish `kind:7376` events to create a transaction history when their balance changes. 96Clients SHOULD publish `kind:7376` events to create a transaction history when their balance changes.
@@ -115,14 +115,14 @@ Clients SHOULD publish `kind:7376` events to create a transaction history when t
115Clients MUST add `e` tags to create references of destroyed and created token events along with the marker of the meaning of the tag: 115Clients MUST add `e` tags to create references of destroyed and created token events along with the marker of the meaning of the tag:
116* `created` - A new token event was created. 116* `created` - A new token event was created.
117* `destroyed` - A token event was destroyed. 117* `destroyed` - A token event was destroyed.
118* `redeemed` - A [[NIP-61]] nutzap was redeemed. 118* `redeemed` - A [NIP-61](61.md) nutzap was redeemed.
119 119
120All tags can be [[NIP-44]] encrypted. Clients SHOULD leave `e` tags with a `redeemed` marker unencrypted. 120All tags can be [NIP-44](44.md) encrypted. Clients SHOULD leave `e` tags with a `redeemed` marker unencrypted.
121 121
122Multiple `e` tags can be added to a `kind:7376` event. 122Multiple `e` tags can be added to a `kind:7376` event.
123 123
124# Flow 124# Flow
125A client that wants to check for user's wallets information starts by fetching `kind:10019` events from the user's relays, if no event is found, it should fall back to using the user's [[NIP-65]] relays. 125A client that wants to check for user's wallets information starts by fetching `kind:10019` events from the user's relays, if no event is found, it should fall back to using the user's [NIP-65](65.md) relays.
126 126
127## Fetch wallet and token list 127## Fetch wallet and token list
128From those relays, the client should fetch wallet and token events. 128From those relays, the client should fetch wallet and token events.
@@ -192,7 +192,7 @@ Her client:
192``` 192```
193 193
194## Redeeming a quote (optional) 194## Redeeming a quote (optional)
195When creating a quote at a mint, an event can be used to keep the state of the quote ID, which will be used to check when the quote has been paid. These events should be created with an expiration tag [[NIP-40]] matching the expiration of the bolt11 received from the mint; this signals to relays when they can safely discard these events. 195When creating a quote at a mint, an event can be used to keep the state of the quote ID, which will be used to check when the quote has been paid. These events should be created with an expiration tag [NIP-40](40.md) matching the expiration of the bolt11 received from the mint; this signals to relays when they can safely discard these events.
196 196
197Application developers are encouraged to use local state when possible and only publish this event when it makes sense in the context of their application. 197Application developers are encouraged to use local state when possible and only publish this event when it makes sense in the context of their application.
198 198