EU is (trying at least) go in that direction with Zero Knowledge Proof:

https://ageverification.dev/Technical%20Specification/archit...