1 | <?php |
||
11 | class Slip132 |
||
12 | { |
||
13 | /** |
||
14 | * @var KeyToScriptHelper |
||
15 | */ |
||
16 | private $helper; |
||
17 | |||
18 | /** |
||
19 | * Slip132PrefixRegistry constructor. |
||
20 | |||
21 | * @param KeyToScriptHelper $helper |
||
22 | */ |
||
23 | 21 | public function __construct(KeyToScriptHelper $helper = null) |
|
27 | |||
28 | /** |
||
29 | * @param PrefixRegistry $registry |
||
30 | * @param ScriptDataFactory $factory |
||
31 | * @return ScriptPrefix |
||
32 | * @throws \BitWasp\Bitcoin\Exceptions\InvalidNetworkParameter |
||
33 | */ |
||
34 | 21 | private function loadPrefix(PrefixRegistry $registry, ScriptDataFactory $factory) |
|
39 | |||
40 | /** |
||
41 | * @param PrefixRegistry $registry |
||
42 | * @return ScriptPrefix |
||
43 | * @throws \BitWasp\Bitcoin\Exceptions\InvalidNetworkParameter |
||
44 | */ |
||
45 | 6 | public function xpubP2pkh(PrefixRegistry $registry) |
|
49 | |||
50 | /** |
||
51 | * @param PrefixRegistry $registry |
||
52 | * @return ScriptPrefix |
||
53 | * @throws \BitWasp\Bitcoin\Exceptions\DisallowedScriptDataFactoryException |
||
54 | * @throws \BitWasp\Bitcoin\Exceptions\InvalidNetworkParameter |
||
55 | */ |
||
56 | 5 | public function ypubP2shP2wpkh(PrefixRegistry $registry) |
|
60 | |||
61 | /** |
||
62 | * @param PrefixRegistry $registry |
||
63 | * @return ScriptPrefix |
||
64 | * @throws \BitWasp\Bitcoin\Exceptions\DisallowedScriptDataFactoryException |
||
65 | * @throws \BitWasp\Bitcoin\Exceptions\InvalidNetworkParameter |
||
66 | */ |
||
67 | 2 | public function ypubP2shP2wshP2pkh(PrefixRegistry $registry) |
|
71 | |||
72 | /** |
||
73 | * @param PrefixRegistry $registry |
||
74 | * @return ScriptPrefix |
||
75 | * @throws \BitWasp\Bitcoin\Exceptions\InvalidNetworkParameter |
||
76 | */ |
||
77 | 6 | public function zpubP2wpkh(PrefixRegistry $registry) |
|
81 | |||
82 | /** |
||
83 | * @param PrefixRegistry $registry |
||
84 | * @return ScriptPrefix |
||
85 | * @throws \BitWasp\Bitcoin\Exceptions\DisallowedScriptDataFactoryException |
||
86 | * @throws \BitWasp\Bitcoin\Exceptions\InvalidNetworkParameter |
||
87 | */ |
||
88 | 2 | public function zpubP2wshP2pkh(PrefixRegistry $registry) |
|
92 | } |
||
93 |