private instanceOfEncryptedParams()

in runtimes/runtimes/chat/encryptedChat.ts [126:132]


    private instanceOfEncryptedParams<T>(object: any): object is T {
        if ('message' in object && typeof object['message'] === `string`) {
            return isMessageJWEEncrypted(object.message, KEY_MANAGEMENT_ALGORITHM, CONTENT_ENCRYPTION_ALGORITHM)
        }

        return false
    }