Keybase provides key directory service, basically “it maps your identity to your public keys, and vice versa”. Since it has a pgp key directory service, below are snippets that we can use to play with keybase and gpg2.
keybase pgp listgpg --list-keyskeybase pgp listgpg --list-secret-keyskeybase pgp export > public.keygpg --export -a email-idkeybase pgp export -s > private.keygpg --export-secret-key -a email-id > private.keygpg --import private.keygpg --edit-key myname@keybase.iogpg --edit-key email@id.here
gpg> uidgpg> uid 2gpg> adduidgpg> revuidgpg> savekeybase gpg update
It should say:
▶ INFO Posting update for key xxxxxxxxxxxxxxxxxxx.
▶ INFO Update succeeded for key xxxxxxxxxxxxxxxxxxxxx.
For more gpg commands: https://medium.com/@acparas/gpg-quickstart-guide-d01f005ca99
Reference:
keybase pgp help