AppleSauce
    Preparing search index...

    Interface EventSigner

    Nostr event signer

    interface EventSigner {
        getPublicKey: () => string | Promise<string>;
        nip04?: {
            decrypt: (
                pubkey: string,
                ciphertext: string,
            ) => string | Promise<string>;
            encrypt: (pubkey: string, plaintext: string) => string | Promise<string>;
        };
        nip44?: {
            decrypt: (
                pubkey: string,
                ciphertext: string,
            ) => string | Promise<string>;
            encrypt: (pubkey: string, plaintext: string) => string | Promise<string>;
        };
        signEvent: (template: EventTemplate) => Event | Promise<Event>;
    }
    Index

    Properties

    getPublicKey: () => string | Promise<string>
    nip04?: {
        decrypt: (
            pubkey: string,
            ciphertext: string,
        ) => string | Promise<string>;
        encrypt: (pubkey: string, plaintext: string) => string | Promise<string>;
    }
    nip44?: {
        decrypt: (
            pubkey: string,
            ciphertext: string,
        ) => string | Promise<string>;
        encrypt: (pubkey: string, plaintext: string) => string | Promise<string>;
    }
    signEvent: (template: EventTemplate) => Event | Promise<Event>