Added utility for creating a public key record