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

Expose the finger print #66

Closed bitcoinbrisbane closed 2 years ago

bitcoinbrisbane commented 2 years ago

Be handy to have the finger print too on the Key Interface

export interface KeyPair {
    publicKey: string;
    privateKey: string;
    fingerprint: string;
}
jerson commented 2 years ago

Hi @bitcoinbrisbane I just release a new version with some new functions, you can use this new one

const metadata1 = await OpenPGP.getPublicKeyMetadata(publicKey: string): Promise<PublicKeyMetadata>;
const metadata2 = await OpenPGP.getPrivateKeyMetadata(privateKey: string): Promise<PrivateKeyMetadata>;

see: https://www.npmjs.com/package/react-native-fast-openpgp/v/2.4.0

jerson commented 2 years ago

closing this, feel free to reopen if its needed