Amarula.Content.PollVote (amarula v0.5.5)
View SourceA received poll vote (content of a %Amarula.Msg{type: :poll_vote}).
Not self-contained: the vote is encrypted, and decrypting it needs the
poll's message_secret — which lives on the original poll you sent or hold, not
on the vote. Correlate :poll_key back to that poll, then decrypt :enc_vote
with Amarula.Protocol.Messages.PollCrypto.
:poll_key— the poll being voted on, as anAmarula.Msg.ref/0.:enc_vote—%{payload: bytes, iv: bytes}, the encrypted selection.:timestamp— when the vote was cast (ms).
Summary
Types
@type t() :: %Amarula.Content.PollVote{ enc_vote: %{payload: binary() | nil, iv: binary() | nil}, poll_key: Amarula.Msg.ref() | nil, timestamp: integer() | nil }