pub fn encode_action( action: &mut Action, config: &CompressionConfig, ) -> Result<(ActionId, Vec<u8>)>