protected function setupKeyPair(EncryptionSecretKey $secret) { $this->secretKey = $secret; $this->publicKey = $this->secretKey->derivePublicKey(); }