[tor-commits] [tor/master] node_has_curve25519_onion_key() is refactored and duplicate code removed