for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace BitWasp\Bitcoin\Serializer\Key\HierarchicalKey;
use BitWasp\Buffertools\BufferInterface;
class RawKeyParams
{
/**
* @var string
*/
private $prefix;
* @var int
private $depth;
private $parentFpr;
private $sequence;
* @var BufferInterface
private $chainCode;
private $keyData;
* RawKeyParams constructor.
* @param string $prefix
* @param int $depth
* @param int $parentFingerprint
* @param int $sequence
* @param BufferInterface $chainCode
* @param BufferInterface $keyData
public function __construct($prefix, $depth, $parentFingerprint, $sequence, BufferInterface $chainCode, BufferInterface $keyData)
$this->prefix = $prefix;
$this->depth = $depth;
$this->parentFpr = $parentFingerprint;
$this->sequence = $sequence;
$this->chainCode = $chainCode;
$this->keyData = $keyData;
}
* @return string
public function getPrefix()
return $this->prefix;
* @return int
public function getDepth()
return $this->depth;
public function getParentFingerprint()
return $this->parentFpr;
public function getSequence()
return $this->sequence;
* @return BufferInterface
public function getChainCode()
return $this->chainCode;
public function getKeyData()
return $this->keyData;