This section is backwards I believe.  When you are encoding to the wire, you want to serialize the alert (`.Payload` here) to the blob which is then sent across the wire.