1 | <?php |
||
13 | class Slip132 |
||
14 | { |
||
15 | /** |
||
16 | * @var KeyToScriptHelper |
||
17 | */ |
||
18 | private $helper; |
||
19 | |||
20 | /** |
||
21 | * Slip132PrefixRegistry constructor. |
||
22 | |||
23 | * @param KeyToScriptHelper $helper |
||
24 | */ |
||
25 | 20 | public function __construct(KeyToScriptHelper $helper = null) |
|
29 | |||
30 | /** |
||
31 | * @param PrefixRegistry $registry |
||
32 | * @param ScriptDataFactory $factory |
||
33 | * @return ScriptPrefix |
||
34 | * @throws \BitWasp\Bitcoin\Exceptions\InvalidNetworkParameter |
||
35 | */ |
||
36 | 16 | private function loadPrefix(PrefixRegistry $registry, ScriptDataFactory $factory): ScriptPrefix |
|
41 | |||
42 | /** |
||
43 | * xpub on bitcoin |
||
44 | * @param PrefixRegistry $registry |
||
45 | * @return ScriptPrefix |
||
46 | * @throws \BitWasp\Bitcoin\Exceptions\InvalidNetworkParameter |
||
47 | */ |
||
48 | 6 | public function p2pkh(PrefixRegistry $registry): ScriptPrefix |
|
52 | |||
53 | /** |
||
54 | * ypub on bitcoin |
||
55 | * @param PrefixRegistry $registry |
||
56 | * @return ScriptPrefix |
||
57 | * @throws \BitWasp\Bitcoin\Exceptions\DisallowedScriptDataFactoryException |
||
58 | * @throws \BitWasp\Bitcoin\Exceptions\InvalidNetworkParameter |
||
59 | */ |
||
60 | 4 | public function p2shP2wpkh(PrefixRegistry $registry): ScriptPrefix |
|
64 | |||
65 | /** |
||
66 | * Ypub on bitcoin |
||
67 | * @param PrefixRegistry $registry |
||
68 | * @return ScriptPrefix |
||
69 | * @throws NotImplementedException |
||
70 | */ |
||
71 | 2 | public function p2shP2wshP2pkh(PrefixRegistry $registry): ScriptPrefix |
|
75 | |||
76 | /** |
||
77 | * zpub on bitcoin |
||
78 | * @param PrefixRegistry $registry |
||
79 | * @return ScriptPrefix |
||
80 | * @throws \BitWasp\Bitcoin\Exceptions\InvalidNetworkParameter |
||
81 | */ |
||
82 | 6 | public function p2wpkh(PrefixRegistry $registry): ScriptPrefix |
|
86 | |||
87 | /** |
||
88 | * Zpub on bitcoin |
||
89 | * @param PrefixRegistry $registry |
||
90 | * @return ScriptPrefix |
||
91 | * @throws NotImplementedException |
||
92 | */ |
||
93 | 2 | public function p2wshP2pkh(PrefixRegistry $registry): ScriptPrefix |
|
97 | } |
||
98 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.