1 | <?php |
||
14 | class Bitcoin |
||
15 | { |
||
16 | /** |
||
17 | * @var NetworkInterface |
||
18 | */ |
||
19 | private static $network; |
||
20 | |||
21 | private static $adapter; |
||
22 | |||
23 | /** |
||
24 | * @return Math |
||
25 | */ |
||
26 | 1962 | public static function getMath() |
|
30 | |||
31 | /** |
||
32 | * Load the generator to be used throughout |
||
33 | */ |
||
34 | 6 | public static function getGenerator() |
|
38 | |||
39 | /** |
||
40 | * @param Math $math |
||
41 | * @param GeneratorPoint $generator |
||
42 | * @return EcAdapterInterface |
||
43 | */ |
||
44 | 639 | public static function getEcAdapter(Math $math = null, GeneratorPoint $generator = null) |
|
55 | |||
56 | public static function setAdapter(EcAdapterInterface $adapter) |
||
60 | |||
61 | /** |
||
62 | * @param NetworkInterface $network |
||
63 | */ |
||
64 | 6 | public static function setNetwork(NetworkInterface $network) |
|
68 | |||
69 | /** |
||
70 | * @return Network |
||
71 | */ |
||
72 | 210 | public static function getNetwork() |
|
80 | |||
81 | 12 | public static function getDefaultNetwork() |
|
85 | } |
||
86 |