| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 51 | protected function convertKeyToScriptData(PublicKeyInterface... $publicKeys): ScriptAndSignData |
||
| 52 | { |
||
| 53 | if (count($publicKeys) !== $this->numKeys) { |
||
| 54 | throw new \InvalidArgumentException("Incorrect number of keys"); |
||
| 55 | } |
||
| 56 | |||
| 57 | return new ScriptAndSignData( |
||
| 58 | ScriptFactory::scriptPubKey()->multisig($this->numSigners, $publicKeys, $this->sortKeys), |
||
| 59 | new SignData() |
||
| 60 | ); |
||
| 61 | } |
||
| 62 | } |
||
| 63 |