async function formatKey(source) {
    const key = await getKeyInfo(source);
    const [k] = await getKeys(key.PrivateKey);

    return { ...key, PublicKey: k.toPublic().armor() };
}
/**
 * Prepare a key by adding information and generating the corresponding public key to the key object.
 * @param {Object} source
 */
Prepare a key by adding information and generating the corresponding public key to the key object.
@param {Object} source
Prepare a key by adding information and generating the corresponding public key to the key object . @param { Object } source
async function formatKey(source) {
    const key = await getKeyInfo(source);
    const [k] = await getKeys(key.PrivateKey);
    return { ...key, PublicKey: k.toPublic().armor() };
}
async function formatKey ( source ) { const key = await getKeyInfo ( source ) ; const [ k ] = await getKeys ( key . PrivateKey ) ; return { ... key , PublicKey : k . toPublic ( ) . armor ( ) } ; }
Prepare a key by adding information and generating the corresponding public key to the key object.
Prepare a key by adding information and generating the corresponding public key to the key object .