AppleSauce
    Preparing search index...

    Variable getHiddenContentEncryptionMethodsConst

    getHiddenContentEncryptionMethods: (
        kind: number,
        signer: EncryptedContentSigner,
        override?: EncryptionMethod,
    ) => EncryptionMethods = getEncryptedContentEncryptionMethods

    Type declaration

      • (
            kind: number,
            signer: EncryptedContentSigner,
            override?: EncryptionMethod,
        ): EncryptionMethods
      • Returns either nip04 or nip44 encryption methods depending on event kind

        Parameters

        • kind: number

          The event kind to get the encryption method for

        • signer: EncryptedContentSigner

          The signer to use to get the encryption methods

        • Optionaloverride: EncryptionMethod

          The encryption method to use instead of the default

        Returns EncryptionMethods

        The encryption methods for the event kind

        If the event kind does not support encrypted content

        If the signer does not support the encryption method