1 | <?php |
||
13 | class PayToPubkeyHash implements ScriptInfoInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var ScriptInterface |
||
17 | */ |
||
18 | private $script; |
||
19 | |||
20 | /** |
||
21 | * @var BufferInterface |
||
22 | */ |
||
23 | private $hash; |
||
24 | |||
25 | /** |
||
26 | * @param ScriptInterface $script |
||
27 | */ |
||
28 | 57 | public function __construct(ScriptInterface $script) |
|
40 | |||
41 | /** |
||
42 | * @return string |
||
43 | */ |
||
44 | 57 | public function classification() |
|
48 | |||
49 | /** |
||
50 | * @return int |
||
51 | */ |
||
52 | 45 | public function getRequiredSigCount() |
|
56 | |||
57 | /** |
||
58 | * @return int |
||
59 | */ |
||
60 | public function getKeyCount() |
||
64 | |||
65 | /** |
||
66 | * @param PublicKeyInterface $publicKey |
||
67 | * @return bool |
||
68 | */ |
||
69 | public function checkInvolvesKey(PublicKeyInterface $publicKey) |
||
73 | |||
74 | /** |
||
75 | * @return PublicKeyInterface[] |
||
76 | */ |
||
77 | 57 | public function getKeys() |
|
81 | |||
82 | /** |
||
83 | * @param TransactionSignatureInterface[] $signatures |
||
84 | * @param PublicKeyInterface[] $publicKeys |
||
85 | * @return Script|ScriptInterface |
||
86 | */ |
||
87 | 33 | public function makeScriptSig(array $signatures = [], array $publicKeys = []) |
|
96 | } |
||
97 |