/** * Return the public key * * @return PublicKey */ public function getPublicKey() { if ($this->publicKey == null) { $this->publicKey = $this->ecAdapter->privateToPublic($this); } return $this->publicKey; }