____ __ ____ __ / __ )_________ _____/ / / __ )____ _/ /_____ _____ / __ / ___/ __ `/ __ / / __ / __ `/ //_/ _ \/ ___/ / /_/ / / / /_/ / /_/ / / /_/ / /_/ / ,. / __/ / /___,_/_/ \__,_/\__,_/ /_____/\__,_/_/|_|\___/_/ https://www.brad.fi

GPG key storage and formatting

$ gpg --list-secret-keys --with-keygrip
sec   rsa4096 2021-08-20 [SC]
      XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
      Keygrip = 0000000000000000000000000000000000000000
uid           [ultimate] example
ssb   rsa4096 2021-08-20 [E]
      Keygrip = 1111111111111111111111111111111111111111

Keygrips (hex) generated by libgcrypt, correspond with files in ~/.gnupg/private-keys-v1.d/.

References and further reading