芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/kwesioben.com/paymoney/vendor/mdanter/ecc/src/Serializer/PublicKey/Der/Formatter.php
pointSerializer = $pointSerializer ?: new UncompressedPointSerializer(); } /** * @param PublicKeyInterface $key * @return string */ public function format(PublicKeyInterface $key): string { if (! ($key->getCurve() instanceof NamedCurveFp)) { throw new \RuntimeException('Not implemented for unnamed curves'); } $sequence = new Sequence( new Sequence( new ObjectIdentifier(DerPublicKeySerializer::X509_ECDSA_OID), CurveOidMapper::getCurveOid($key->getCurve()) ), new BitString($this->encodePoint($key->getPoint())) ); return $sequence->getBinary(); } /** * @param PointInterface $point * @return string */ public function encodePoint(PointInterface $point): string { return $this->pointSerializer->serialize($point); } }