| Conditions | 2 |
| Paths | 2 |
| Total Lines | 18 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | public function __construct() |
||
| 11 | { |
||
| 12 | $map = []; |
||
| 13 | foreach ([ |
||
| 14 | // private, public |
||
| 15 | [["04358394", "043587cf"], /* xpub */ [ScriptType::P2PKH]], |
||
| 16 | [["04358394", "043587cf"], /* xpub */ [ScriptType::P2SH, ScriptType::P2PKH]], |
||
| 17 | [["044a4e28", "044a5262"], /* ypub */ [ScriptType::P2SH, ScriptType::P2WKH]], |
||
| 18 | [["045f18bc", "045f1cf6"], /* zpub */ [ScriptType::P2WKH]], |
||
| 19 | [["02575048", "02575483"], /* Zpub */ [ScriptType::P2WSH, ScriptType::P2PKH]], |
||
| 20 | ] as $row) { |
||
| 21 | list ($prefixList, $scriptType) = $row; |
||
| 22 | $type = implode("|", $scriptType); |
||
| 23 | $map[$type] = $prefixList; |
||
| 24 | } |
||
| 25 | |||
| 26 | parent::__construct($map); |
||
| 27 | } |
||
| 28 | } |
||
| 29 |