AppleSauce
    Preparing search index...

    Type Alias Nip07Interface

    type Nip07Interface = {
        getPublicKey: () => Promise<string> | string;
        getRelays?: () => | Record<string, { read: boolean; write: boolean }>
        | Promise<Record<string, { read: boolean; write: boolean }>>;
        nip04?: {
            decrypt: (
                pubkey: string,
                ciphertext: string,
            ) => Promise<string> | string;
            encrypt: (pubkey: string, plaintext: string) => Promise<string> | string;
        };
        nip44?: {
            decrypt: (
                pubkey: string,
                ciphertext: string,
            ) => Promise<string> | string;
            encrypt: (pubkey: string, plaintext: string) => Promise<string> | string;
        };
        signEvent: (template: EventTemplate) => Promise<NostrEvent> | NostrEvent;
    }

    Hierarchy (View Summary)

    Implemented by

    Index

    Properties

    getPublicKey: () => Promise<string> | string
    getRelays?: () => | Record<string, { read: boolean; write: boolean }>
    | Promise<Record<string, { read: boolean; write: boolean }>>
    nip04?: {
        decrypt: (
            pubkey: string,
            ciphertext: string,
        ) => Promise<string> | string;
        encrypt: (pubkey: string, plaintext: string) => Promise<string> | string;
    }
    nip44?: {
        decrypt: (
            pubkey: string,
            ciphertext: string,
        ) => Promise<string> | string;
        encrypt: (pubkey: string, plaintext: string) => Promise<string> | string;
    }
    signEvent: (template: EventTemplate) => Promise<NostrEvent> | NostrEvent