From 27b290630620e8ec13afe4f31ed5faa023bd9a89 Mon Sep 17 00:00:00 2001 From: water <130329555+water783@users.noreply.github.com> Date: Thu, 14 Nov 2024 11:42:05 +0800 Subject: [PATCH] Update 60.md Co-authored-by: Pablo Fernandez --- 60.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/60.md b/60.md index abf9999..513c69f 100644 --- a/60.md +++ b/60.md @@ -51,7 +51,8 @@ Tags: * `description` - Optional human-readable description of the wallet. * `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. * `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. -* `ncryptsec` - Provide an option to use either the above `privkey` or `ncryptsec`. This approach can help prevent the user's wallet `privkey` from being exposed in case the main nsec is leaked. +* `ncryptsec` - Allows the user to encrypt the `privkey` so that input from the user is required to spend from this wallet. When the `ncryptsec` tag is used, no `privkey` should be available. +* `p2pk` - Public key of the key in the `ncryptsec` -- this tag should be provided when using encrypting the private key via `ncryptsef` so that apps can know which wallet contains the private key of the NIP-61 nutzap. Any tag, other than the `d` tag, can be [[NIP-44]] encrypted into the `.content` field.