AppleSauce
    Preparing search index...

    Interface ProviderAuthorization

    interface ProviderAuthorization {
        onConnect?: (
            client: string,
            permissions: string[],
        ) => boolean | Promise<boolean>;
        onNip04Decrypt?: (
            pubkey: string,
            ciphertext: string,
            client: string,
        ) => boolean | Promise<boolean>;
        onNip04Encrypt?: (
            pubkey: string,
            plaintext: string,
            client: string,
        ) => boolean | Promise<boolean>;
        onNip44Decrypt?: (
            pubkey: string,
            ciphertext: string,
            client: string,
        ) => boolean | Promise<boolean>;
        onNip44Encrypt?: (
            pubkey: string,
            plaintext: string,
            client: string,
        ) => boolean | Promise<boolean>;
        onSignEvent?: (
            draft: EventTemplate,
            client: string,
        ) => boolean | Promise<boolean>;
    }

    Implemented by

    Index

    Properties

    onConnect?: (
        client: string,
        permissions: string[],
    ) => boolean | Promise<boolean>

    A method used to accept or reject connect requests

    onNip04Decrypt?: (
        pubkey: string,
        ciphertext: string,
        client: string,
    ) => boolean | Promise<boolean>

    A method used to accept or reject nip04_decrypt requests

    onNip04Encrypt?: (
        pubkey: string,
        plaintext: string,
        client: string,
    ) => boolean | Promise<boolean>

    A method used to accept or reject nip04_encrypt requests

    onNip44Decrypt?: (
        pubkey: string,
        ciphertext: string,
        client: string,
    ) => boolean | Promise<boolean>

    A method used to accept or reject nip44_decrypt requests

    onNip44Encrypt?: (
        pubkey: string,
        plaintext: string,
        client: string,
    ) => boolean | Promise<boolean>

    A method used to accept or reject nip44_encrypt requests

    onSignEvent?: (
        draft: EventTemplate,
        client: string,
    ) => boolean | Promise<boolean>

    A method used to accept or reject sign_event requests