1 | <?php |
||
14 | class Bip69 |
||
15 | { |
||
16 | /** |
||
17 | * @param array $vTxin |
||
18 | * @return array |
||
19 | */ |
||
20 | 12 | public function sortInputs(array $vTxin) |
|
25 | |||
26 | /** |
||
27 | * @param TransactionInputInterface $vin1 |
||
28 | * @param TransactionInputInterface $vin2 |
||
29 | * @return bool |
||
30 | */ |
||
31 | 12 | public function compareInputs(TransactionInputInterface $vin1, TransactionInputInterface $vin2) |
|
40 | |||
41 | /** |
||
42 | * @param TransactionOutputInterface[] $vTxout |
||
43 | * @return TransactionOutputInterface[] |
||
44 | */ |
||
45 | 12 | public function sortOutputs($vTxout) |
|
50 | |||
51 | /** |
||
52 | * @param TransactionOutputInterface $vout1 |
||
53 | * @param TransactionOutputInterface $vout2 |
||
54 | * @return bool |
||
55 | */ |
||
56 | 12 | public function compareOutputs(TransactionOutputInterface $vout1, TransactionOutputInterface $vout2) |
|
62 | |||
63 | /** |
||
64 | * @param TransactionInterface $tx |
||
65 | * @return bool |
||
66 | */ |
||
67 | 12 | public function check(TransactionInterface $tx) |
|
74 | |||
75 | /** |
||
76 | * @param TransactionInputInterface[] $inputs |
||
77 | * @param ScriptWitnessInterface[] $witnesses |
||
78 | * @return array |
||
79 | * @throws \Exception |
||
80 | */ |
||
81 | 6 | public function sortInputsAndWitness(array $inputs, array $witnesses) |
|
96 | |||
97 | /** |
||
98 | * @param TransactionInterface $tx |
||
99 | * @return TransactionInterface |
||
100 | */ |
||
101 | 6 | public function mutate(TransactionInterface $tx) |
|
116 | } |
||
117 |