class ActiveRecord::Encryption::MessagePackMessageSerializer

A message serializer that serializes Messages with MessagePack.

The message is converted to a hash with this structure:

{
  p: <payload>,
  h: {
    header1: value1,
    header2: value2,
    ...
  }
}

Then it is converted to the MessagePack format.