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:
Diffstat (limited to '60.md')
-rw-r--r--60.md12
1 files changed, 1 insertions, 11 deletions
diff --git a/60.md b/60.md
index a90f06a..7490e49 100644
--- a/60.md
+++ b/60.md
@@ -185,14 +185,4 @@ Her client:
185``` 185```
186 186
187## Appendix 1: Validating proofs 187## Appendix 1: Validating proofs
188Clients can optionally validate proofs to make sure they are not working from an old state; this logic is left up to particular implementations to decide when and why to do it, but if some proofs are checked and deemed to have been spent, the client should delete the token even and roll over any unspent proof. 188Clients can optionally validate proofs to make sure they are not working from an old state; this logic is left up to particular implementations to decide when and why to do it, but if some proofs are checked and deemed to have been spent, the client should delete the token and roll over any unspent proof.
189
190## Appendix 2: Alternative P2PK pubkey
191Sometimes clients might not have access to the user's private key (i.e. NIP-07, NIP-46 signing) and, as such, the private key to sign cashu spends might not be available, which would make spending the P2PK incoming nutzaps impossible.
192
193For this scenarios clients can:
194
195* add a `pubkey` tag to the `kind:10019` (indicating which pubkey senders should P2PK to)
196* store the private key in the `kind:37375` event in the nip44-encrypted `content` field.
197
198This is to avoid depending on NIP-07/46 adaptations to sign cashu payloads. \ No newline at end of file