Closed bilalashraf123 closed 3 years ago
@bilalashraf123 wanted to try and fix this in pgpainless as a way of getting familiar with the library - he'll have a look and produce a PR
How could this issue be tested? Since it was fixed without adding any test, it may get broken in the future.
I agree, I didn't find a way in PGPainless to check for primary user ID value. It gives all the users list for which test was already added.
Normally I assume the first returned uid is the primary one. Is that guaranteed in pgpainless? Or is actually the way to choose primary uid a different mechanism?
Closed via #61
Generated a key withAdditionalUserId using the following code
When parsed using the following command, it does not show the primary user ID
I created the key using direct BouncyCastle code and it worked fine. Here is the output from the BouncyCastle code