There already is a gpg Api - gpg me (made easy):
https://www.gnupg.org/related_software/gpgme/
It would probably make sense to implement and expose that?
Ed: see also https://wiki.gnupg.org/APIs
https://www.gnupg.org/related_software/gpgme/
It would probably make sense to implement and expose that?
Ed: see also https://wiki.gnupg.org/APIs
This makes the library really painful to use in multithreaded contexts, or when you need to have a controlled env. (like unit tests).
I use gpg-me in one of my projects, and it's very far from pleasant to use.