nips icon indicating copy to clipboard operation
nips copied to clipboard

nip-07 does not work for multiple accounts

Open Giszmo opened this issue 1 year ago • 7 comments

The current API with extension by Alby and nos2x:

async window.nostr.getPublicKey(): string // returns your public key as hex
async window.nostr.signEvent(event): Event // returns the full event object signed
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

is not designed to manage multiple keys.

Should it be amended or would that be a new nip?

Giszmo avatar Dec 18 '22 02:12 Giszmo