core for ContactPublicKey model