jerson / react-native-fast-openpgp

OpenPGP for react native made with golang for fast performance
https://www.npmjs.com/package/react-native-fast-openpgp
MIT License
45 stars 18 forks source link

Enhance getPublicKeyMetadata to get information about subkeys #80

Closed commi closed 1 year ago

commi commented 1 year ago

Hi, long time happy user here:)

i'm working on a feature where the app exchanges encrypted documents with other apps. Those apps don't always know the user identities. To identity which documents are requested, the key-id is used. but for this to work the app has to know the encryption subkey id (or id's) for a user. (subkeys are optional but often used)

until now i used openpgp.js to inspect keys, but i want of get rid of the dependency because it's a headache:)

would it be possible to enhance getPublicKeyMetadata to also return a list of subkeys and theirs id's with the metadata?

jerson commented 1 year ago

Hi @commi thanks for suggest this, these weeks I'm quite busy, but I'm going to be implementing in the following weeks, thanks for the patience

jerson commented 1 year ago

ref: https://github.com/jerson/openpgp-mobile/pull/30

jerson commented 1 year ago

Hi @commi please take a look to https://github.com/jerson/react-native-fast-openpgp/pull/81 I added identities and subkeys but I want to make sure is what you are looking for

btw this is the version including those changes: https://www.npmjs.com/package/react-native-fast-openpgp/v/2.6.0