1 | <?php |
||
11 | class Hasher extends SigHash |
||
12 | { |
||
13 | /** |
||
14 | * Calculate the hash of the current transaction, when you are looking to |
||
15 | * spend $txOut, and are signing $inputToSign. The SigHashType defaults to |
||
16 | * SIGHASH_ALL, though SIGHASH_SINGLE, SIGHASH_NONE, SIGHASH_ANYONECANPAY |
||
17 | * can be used. |
||
18 | * |
||
19 | * @param ScriptInterface $txOutScript |
||
20 | * @param int $inputToSign |
||
21 | * @param int $sighashType |
||
22 | * @return BufferInterface |
||
23 | * @throws \Exception |
||
24 | */ |
||
25 | 130 | public function calculate(ScriptInterface $txOutScript, $inputToSign, $sighashType = SigHash::ALL) |
|
42 | } |
||
43 |