Move function `from_bytes` into MsgPack