move relay tags into encrypted section and remove from nip51

This commit is contained in:
pablof7z
2025-10-08 15:37:10 +03:00
parent 58cfc3189c
commit baa382ca7d
2 changed files with 4 additions and 6 deletions

9
60.md
View File

@@ -28,18 +28,17 @@ This NIP doesn't deal with users' *receiving* money from someone else, it's just
"content": nip44_encrypt([
[ "privkey", "hexkey" ],
[ "mint", "https://mint1" ],
[ "mint", "https://mint2" ]
]),
"tags": [
[ "mint", "https://mint2" ],
[ "relay", "wss://relay1.example.com" ],
[ "relay", "wss://relay2.example.com" ]
]
]),
"tags": []
}
```
The wallet event is an replaceable event `kind:17375`.
Tags:
Encrypted Tags:
* `mint` - Mint(s) this wallet uses -- there MUST be one or more mint tags.
* `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 for receiving [NIP-61](61.md) nutzaps.
* `relay` - Relay(s) where the wallet's events (`kind:7374`, `kind:7375`, `kind:7376`) are published to and queried from. Clients MUST use these relays for all wallet operations. If no `relay` tags are present, clients SHOULD fall back to the user's [NIP-65](65.md) relay list.