1 | <?php |
||
14 | class Hasher extends SigHash |
||
15 | { |
||
16 | /** |
||
17 | * Hasher constructor. |
||
18 | * @param TransactionInterface $transaction |
||
19 | * @param TransactionSerializerInterface|null $txSerializer |
||
20 | */ |
||
21 | 130 | public function __construct(TransactionInterface $transaction, TransactionSerializerInterface $txSerializer = null) |
|
25 | |||
26 | /** |
||
27 | * Calculate the hash of the current transaction, when you are looking to |
||
28 | * spend $txOut, and are signing $inputToSign. The SigHashType defaults to |
||
29 | * SIGHASH_ALL, though SIGHASH_SINGLE, SIGHASH_NONE, SIGHASH_ANYONECANPAY |
||
30 | * can be used. |
||
31 | * |
||
32 | * @param ScriptInterface $txOutScript |
||
33 | * @param int $inputToSign |
||
34 | * @param int $sighashType |
||
35 | * @return BufferInterface |
||
36 | * @throws \Exception |
||
37 | */ |
||
38 | 130 | public function calculate(ScriptInterface $txOutScript, $inputToSign, $sighashType = SigHash::ALL) |
|
55 | } |
||
56 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.