1 | <?php |
||
10 | class Multisig implements ScriptInfoInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var int |
||
14 | */ |
||
15 | private $m; |
||
16 | |||
17 | /** |
||
18 | * @var int |
||
19 | */ |
||
20 | private $n; |
||
21 | |||
22 | /** |
||
23 | * @var PublicKeyInterface[] |
||
24 | */ |
||
25 | private $keys = []; |
||
26 | |||
27 | /** |
||
28 | * @param ScriptInterface $script |
||
29 | */ |
||
30 | 36 | public function __construct(ScriptInterface $script) |
|
59 | |||
60 | /** |
||
61 | * @return int |
||
62 | */ |
||
63 | 24 | public function getRequiredSigCount() |
|
67 | |||
68 | /** |
||
69 | * @return int |
||
70 | */ |
||
71 | 30 | public function getKeyCount() |
|
75 | |||
76 | /** |
||
77 | * @param PublicKeyInterface $publicKey |
||
78 | * @return bool |
||
79 | */ |
||
80 | public function checkInvolvesKey(PublicKeyInterface $publicKey) |
||
91 | |||
92 | /** |
||
93 | * @return \BitWasp\Bitcoin\Crypto\EcAdapter\Key\PublicKeyInterface[] |
||
94 | */ |
||
95 | 36 | public function getKeys() |
|
99 | } |
||
100 |