1 | <?php |
||
18 | class HierarchicalKeyFactory |
||
19 | { |
||
20 | /** |
||
21 | * @var EcAdapterInterface |
||
22 | */ |
||
23 | private $adapter; |
||
24 | |||
25 | /** |
||
26 | * @var Base58ExtendedKeySerializer |
||
27 | */ |
||
28 | private $serializer; |
||
29 | |||
30 | /** |
||
31 | * @var PrivateKeyFactory |
||
32 | */ |
||
33 | private $privFactory; |
||
34 | |||
35 | /** |
||
36 | * HierarchicalKeyFactory constructor. |
||
37 | * @param EcAdapterInterface|null $ecAdapter |
||
38 | * @param Base58ExtendedKeySerializer|null $serializer |
||
39 | * @throws \Exception |
||
40 | */ |
||
41 | 52 | public function __construct(EcAdapterInterface $ecAdapter = null, Base58ExtendedKeySerializer $serializer = null) |
|
49 | |||
50 | /** |
||
51 | * @param Random $random |
||
52 | * @return HierarchicalKey |
||
53 | * @throws \BitWasp\Bitcoin\Exceptions\RandomBytesFailure |
||
54 | * @throws \Exception |
||
55 | */ |
||
56 | 2 | public function generateMasterKey(Random $random): HierarchicalKey |
|
62 | |||
63 | /** |
||
64 | * @param BufferInterface $entropy |
||
65 | * @return HierarchicalKey |
||
66 | * @throws \Exception |
||
67 | */ |
||
68 | 18 | public function fromEntropy(BufferInterface $entropy): HierarchicalKey |
|
75 | |||
76 | /** |
||
77 | * @param string $extendedKey |
||
78 | * @param NetworkInterface|null $network |
||
79 | * @return HierarchicalKey |
||
80 | * @throws \BitWasp\Bitcoin\Exceptions\Base58ChecksumFailure |
||
81 | * @throws \BitWasp\Buffertools\Exceptions\ParserOutOfRange |
||
82 | */ |
||
83 | 34 | public function fromExtended(string $extendedKey, NetworkInterface $network = null): HierarchicalKey |
|
87 | } |
||
88 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..