for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace BitWasp\Bitcoin\Crypto\EcAdapter\Impl\PhpEcc\Serializer\Key;
use BitWasp\Bitcoin\Crypto\EcAdapter\Impl\PhpEcc\Adapter\EcAdapter;
use BitWasp\Bitcoin\Crypto\EcAdapter\Key\XOnlyPubKeyInterface;
use BitWasp\Bitcoin\Crypto\EcAdapter\Serializer\Key\XOnlyPublicKeySerializerInterface;
use BitWasp\Buffertools\BufferInterface;
class XOnlyPublicKeySerializer implements XOnlyPublicKeySerializerInterface
{
/**
* @var EcAdapter
*/
private $ecAdapter;
* @param EcAdapter $ecAdapter
public function __construct(EcAdapter $ecAdapter)
$this->ecAdapter = $ecAdapter;
}
* @param XOnlyPubKeyInterface $publicKey
* @return BufferInterface
public function serialize(XOnlyPubKeyInterface $publicKey): BufferInterface
throw new \RuntimeException("not implemented");
* @param BufferInterface $buffer
* @return XOnlyPubKeyInterface
public function parse(BufferInterface $buffer): XOnlyPubKeyInterface