ExWapp.Message.Handler.Inbound.Decryptor (ExWapp v0.1.2)

Copy Markdown View Source

Signal and sender-key decryption for inbound message envelopes.

This module resolves and tries encrypted payload/sender candidates, updates Signal sessions, processes group sender-key distributions, and normalizes decrypt failures. It returns plaintext without classifying message content.

Summary

Functions

Decrypts one encrypted inbound message without classifying its content.

Types

success()

@type success() :: %{
  message_data: map(),
  plaintext: binary(),
  updated_sessions: ExWapp.Signal.SessionStore.t(),
  sender_jid: String.t(),
  payload: map(),
  sender_key_distribution_count: non_neg_integer(),
  enc_type: term()
}

Functions

decrypt(message_data, state, from, participant, attrs)

@spec decrypt(map(), map(), term(), term(), map()) ::
  {:ok, success(), map()} | {:error, map(), map()}

Decrypts one encrypted inbound message without classifying its content.