public function generateSignRequest(RegistrationInterface $reg): SignRequest
    {
        return (new SignRequest())
            ->setAppId($this->getAppId())
            ->setChallenge($this->generateChallenge())
            ->setKeyHandle($reg->getKeyHandleBinary());
    }