encode

fun encode(transport: Transport): ByteArray

transport as the bytes a log stores.