Merge ea1e645fe0085476ee128ffe642136e2d7336c92 into 0619f370bca3485bb9c5870bc2defa03c7c3d10e

This commit is contained in:
DanConwayDev 2025-03-15 10:34:55 +00:00 committed by GitHub
commit 4b172817f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

16
60.md
View File

@ -40,6 +40,22 @@ 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.
## Wallet Backup Events
A Wallet Backup Event SHOULD be created at the same time as a new Wallet Event so that future inadvertent overwrites of the `privkey` do not lead to loss of funds.
```jsonc
{
"kind": 375,
"content": nip44_encrypt([
[ "privkey", "hexkey" ],
[ "mint", "https://mint1" ],
[ "mint", "https://mint2" ]
]),
"tags": []
}
```
## Token Event
Token events are used to record unspent proofs.