for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace BitWasp\Bitcoin\Key\Deterministic\HdPrefix;
use BitWasp\Bitcoin\Key\KeyToScript\ScriptDataFactory;
class NetworkScriptPrefix
{
/**
* @var string
*/
private $privatePrefix;
private $publicPrefix;
* @var ScriptDataFactory
private $scriptDataFactory;
* ScriptPrefixConfig constructor.
* @param ScriptDataFactory $scriptDataFactory
* @param string $privatePrefix
* @param string $publicPrefix
public function __construct(ScriptDataFactory $scriptDataFactory, $privatePrefix, $publicPrefix)
$this->scriptDataFactory = $scriptDataFactory;
$this->publicPrefix = $publicPrefix;
$this->privatePrefix = $privatePrefix;
}
* @return string
public function getPrivatePrefix()
return $this->privatePrefix;
public function getPublicPrefix()
return $this->publicPrefix;
* @return ScriptDataFactory
public function getScriptDataFactory()
return $this->scriptDataFactory;