this idea was floated years ago. one could even pay the meter with their phone without having to leave the restaurant.
We already have such a system in Copenhagen. Regions in the and parkings lots have a four digit code. You pay with an app on your phone. Of course no support for crypto, though.