Amarula.Protocol.Signal.Group.SenderKeyName (amarula v0.1.0)
View SourceRepresents a sender key name for group encryption.
A sender key name uniquely identifies a sender key for a specific group and sender. It consists of a group ID and sender information (JID + device ID).
Summary
Functions
Checks if two SenderKeyNames are equal.
Build a SenderKeyName from the group JID and author JID, mirroring Baileys jidToSignalSenderKeyName: the group JID is used AS-IS (full "...@g.us" string), the author becomes a signal protocol address (user, or "user_<domainType>" for non-WhatsApp domains like lid, plus device).
Parses a string representation back to a SenderKeyName.
Generates a hash code for the SenderKeyName.
Creates a new SenderKeyName.
Converts the SenderKeyName to a string representation.
Types
@type sender() :: %{id: String.t(), device_id: non_neg_integer()}
Functions
Checks if two SenderKeyNames are equal.
Build a SenderKeyName from the group JID and author JID, mirroring Baileys jidToSignalSenderKeyName: the group JID is used AS-IS (full "...@g.us" string), the author becomes a signal protocol address (user, or "user_<domainType>" for non-WhatsApp domains like lid, plus device).
Both the SKDM-store path and the skmsg-decrypt path MUST use this so the sender key is found under the same name.
Parses a string representation back to a SenderKeyName.
Generates a hash code for the SenderKeyName.
@spec new(String.t(), String.t(), non_neg_integer()) :: t()
Creates a new SenderKeyName.
Converts the SenderKeyName to a string representation.