copying the public half of the key