While studying PGP I started to doubt how to calculate the legitimacy/validity of a key. The problem comes when we set that key legitimacy is calculated as the weighted sum of the trust values.
What is the correct way of summing this trust values within the keyring? Am I only adding the trust values of valid or already legitimate public keys? Or do I add the trust values independently of the legitimacy status of the key?
Which is the correct way of doing it 1) or 2)?
1) The key ring contains at least C certificates from completely trusted introducers with valid public keys or the key ring contains at least M certificates from marginally trusted introducers with valid public keys.
2) The key ring contains at least C certificates from completely trusted introducers or the key ring contains at least M certificates from marginally trusted introducers.
1 and 2 differ only on the validity/legitimacy of the keys that added.