Nostr extension interface

interface NostrProvider {
    getPublicKey: () => Promise<string>;
    nip04: {
        decrypt: (pubkey: string, ciphertext: string) => Promise<string>;
        encrypt: (pubkey: string, plaintext: string) => Promise<string>;
    };
    signEvent: (event: any) => Promise<any>;
}

Properties

getPublicKey: () => Promise<string>
nip04: {
    decrypt: (pubkey: string, ciphertext: string) => Promise<string>;
    encrypt: (pubkey: string, plaintext: string) => Promise<string>;
}
signEvent: (event: any) => Promise<any>