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 ScriptInterface |
||
24 | */ |
||
25 | private $script; |
||
26 | |||
27 | /** |
||
28 | * @var PublicKeyInterface[] |
||
29 | */ |
||
30 | private $keys = []; |
||
31 | |||
32 | /** |
||
33 | * @param ScriptInterface $script |
||
34 | */ |
||
35 | 36 | public function __construct(ScriptInterface $script) |
|
65 | |||
66 | /** |
||
67 | * @return int |
||
68 | */ |
||
69 | 24 | public function getRequiredSigCount() |
|
73 | |||
74 | /** |
||
75 | * @return int |
||
76 | */ |
||
77 | 30 | public function getKeyCount() |
|
81 | |||
82 | /** |
||
83 | * @return string |
||
84 | */ |
||
85 | public function classification() |
||
89 | |||
90 | /** |
||
91 | * @param PublicKeyInterface $publicKey |
||
92 | * @return bool |
||
93 | */ |
||
94 | public function checkInvolvesKey(PublicKeyInterface $publicKey) |
||
105 | |||
106 | /** |
||
107 | * @return \BitWasp\Bitcoin\Crypto\EcAdapter\Key\PublicKeyInterface[] |
||
108 | */ |
||
109 | 36 | public function getKeys() |
|
113 | } |
||
114 |