add nip-26 support

This commit is contained in:
pablof7z
2023-03-14 12:16:24 +00:00
committed by fiatjaf_
parent 185ee772e1
commit e96683d235
4 changed files with 18 additions and 3 deletions

View File

@@ -14,6 +14,7 @@ async window.nostr.signEvent(event): Event // returns the full event object sign
async window.nostr.getRelays(): { [url: string]: RelayPolicy } // returns a map of relays
async window.nostr.nip04.encrypt(pubkey, plaintext): string // returns ciphertext+iv as specified in nip04
async window.nostr.nip04.decrypt(pubkey, ciphertext): string // takes ciphertext+iv as specified in nip04
async window.nostr.nip26.delegate(delegateePubkey, cond): object // generates a delegation token ({from, to, cond, sig})
```
This extension is Chromium-only. For a maintained Firefox fork, see [nos2x-fox](https://diegogurpegui.com/nos2x-fox/).