return proper publicKey object for contacts