Method to get public key from private one. Methods to_raw and from_raw.