|
1 | 1 | <?php
|
2 | 2 |
|
3 |
| -namespace { |
4 |
| - define("BITCOINCONSENSUS_VERIFY_NONE", 0); |
5 |
| - define("BITCOINCONSENSUS_VERIFY_P2SH", 1 << 0); |
6 |
| - define("BITCOINCONSENSUS_VERIFY_STRICTENC", 1 << 1); |
7 |
| - define("BITCOINCONSENSUS_VERIFY_DERSIG", 1 << 2); |
8 |
| - define("BITCOINCONSENSUS_VERIFY_LOW_S", 1 << 3); |
9 |
| - define("BITCOINCONSENSUS_VERIFY_NULLDUMMY", 1 << 4); |
10 |
| - define("BITCOINCONSENSUS_VERIFY_SIGPUSHONLY", 1 << 5); |
11 |
| - define("BITCOINCONSENSUS_VERIFY_MINIMALDATA", 1 << 6); |
12 |
| - define("BITCOINCONSENSUS_VERIFY_DISCOURAGE_UPGRADABLE_NOPS", 1 << 7); |
13 |
| - define("BITCOINCONSENSUS_VERIFY_CLEANSTACK", 1 << 8); |
14 |
| - define("BITCOINCONSENSUS_VERIFY_CHECKLOCKTIMEVERIFY", 1 << 9); |
15 |
| - define("BITCOINCONSENSUS_VERIFY_WITNESS", 1 << 10); |
16 |
| - |
17 |
| - /** |
18 |
| - * @return int |
19 |
| - */ |
20 |
| - function bitcoinconsensus_version() { |
21 |
| - } |
22 |
| - |
23 |
| - /** |
24 |
| - * @param string $scriptPubKey |
25 |
| - * @param int $amount |
26 |
| - * @param string $transaction |
27 |
| - * @param int $nInput |
28 |
| - * @param int $flags |
29 |
| - * @param int $error |
30 |
| - * @return bool |
31 |
| - */ |
32 |
| - function bitcoinconsensus_verify_script_with_amount($scriptPubKey, $amount, $transaction, $nInput, $flags, &$error) { |
33 |
| - |
34 |
| - } |
35 |
| - |
36 |
| - /** |
37 |
| - * @param string $scriptPubKey |
38 |
| - * @param string $transaction |
39 |
| - * @param int $nInput |
40 |
| - * @param int $flags |
41 |
| - * @param int $error |
42 |
| - * @return bool |
43 |
| - */ |
44 |
| - function bitcoinconsensus_verify_script($scriptPubKey, $transaction, $nInput, $flags, &$error) { |
45 |
| - |
46 |
| - } |
47 |
| -} |
48 |
| - |
| 3 | +require "../vendor/bitwasp/bitcoinconsensus/stubs/const.php"; |
| 4 | +require "../vendor/bitwasp/bitcoinconsensus/stubs/functions.php"; |
0 commit comments