encode

fun encode(envelope: Envelope): ByteArray

envelope as the bytes of a message value.