News for hackers. Stuff that matters.
Re:Sequoia-PGP – A new OpenPGP implementation in Rust by yrro on Thursday August 02, 2018 @08:26AM (#17670909)
I think the API is the GPGME library?

https://gnupg.org/software/gpgme/index.html

... which internally calls gnpg using the --with-colons argument which is how you're supposed to get machine-readable output.

That said, maybe your use case isn't very accessible via the standard gpg commands. It sounds like you want to parse the ciphertext and extract the recipient keyids? You can do that with gpg --list-packets, but this is really intended for debugging, not automated consumption. That said it doesn't look too hard to parse, but who knows how stable it will be in the future.

Re:Sequoia-PGP – A new OpenPGP implementation in Rust by yrro on Thursday August 02, 2018 @10:36AM (#17671722)
(for example)

gpg --list-only --list-packets foo | gawk '/^:pubkey\>/ { print $9 }'