public function getEccKey() : PublicKeyInterface
    {
        $math = EccFactory::getAdapter();
        $generator = EccFactory::getNistCurves()->generator256();
        $pointSerializer = new UncompressedPointSerializer($math);
        $point = $pointSerializer->unserialize($generator->getCurve(), bin2hex($this->getRawKeyMaterial()));

        return $generator->getPublicKeyFrom($point->getX(), $point->getY(), $generator->getOrder());
    }
public function getEccKey() : PublicKeyInterface
    {
        $math = EccFactory::getAdapter();
        $generator = EccFactory::getNistCurves()->generator256();
        $pointSerializer = new UncompressedPointSerializer($math);
        $point = $pointSerializer->unserialize($generator->getCurve(), bin2hex($this->getRawKeyMaterial()));

        return $generator->getPublicKeyFrom($point->getX(), $point->getY(), $generator->getOrder());
    }
public function getEccKey ( ) : PublicKeyInterface { $ math = EccFactory :: getAdapter ( ) ; $ generator = EccFactory :: getNistCurves ( ) -> generator256 ( ) ; $ pointSerializer = new UncompressedPointSerializer ( $ math ) ; $ point = $ pointSerializer -> unserialize ( $ generator -> getCurve ( ) , bin2hex ( $ this -> getRawKeyMaterial ( ) ) ) ; return $ generator -> getPublicKeyFrom ( $ point -> getX ( ) , $ point -> getY ( ) , $ generator -> getOrder ( ) ) ; }
Unserialize the raw key material into a Mdanter Ecc Public Key.

@return PublicKeyInterface
Unserialize the raw key material into a Mdanter Ecc Public Key .