We already have Macaroons
https://en.wikipedia.org/wiki/Macaroons_(computer_science)
https://en.wikipedia.org/wiki/Macaroon