I think you can use nak in some way to achieve that
Discussion
Thanks, that's what I thought. I scripted it, and published with some other useful scripts that I use.
https://github.com/jooray/nostr-scripts
Also using a cool new license thanks to nostr:nprofile1qythwumn8ghj7un9d3shjtnwdaehgu3wvfskuep0qy2hwumn8ghj7un9d3shjtnyv9kh2uewd9hj7qgwwaehxw309ahx7uewd3hkctcpzamhxue69uhhyetvv9ujuurjd9kkzmpwdejhgtcpr4mhxue69uhkummnw3ezumt4w35ku7thv9kxcet59e3k7mf0qqst0mtgkp3du662ztj3l4fgts0purksu5fgek5n4vgmg9gt2hkn9lqmmyzrg