new LegacySighash()
- Description:
Legacy sighash calculator (P2PKH)
- Source:
Methods
(static) calculate(tx, inputIndex, subscript, sighashTypeopt) → {Buffer}
- Description:
Calculate legacy sighash for P2PKH inputs
- Source:
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
tx |
Object | Transaction object |
||
inputIndex |
number | Input being signed |
||
subscript |
Buffer | Subscript (scriptPubKey of UTXO) |
||
sighashType |
number |
<optional> |
0x01
|
Sighash type |
Returns:
32-byte sighash
- Type
- Buffer