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 list
gpg --list-keys
keybase pgp list
gpg --list-secret-keys
keybase pgp export > public.key
gpg --export -a email-id
keybase pgp export -s > private.key
gpg --export-secret-key -a email-id > private.key
gpg --import private.key
gpg --edit-key myname@keybase.io
gpg --edit-key email@id.here
gpg> uid
gpg> uid 2
gpg> adduid
gpg> revuid
gpg> save
keybase 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