sigHash method

Uint8List sigHash(
  1. Tx tx,
  2. int inputIndex, {
  3. int forkId = 0,
})

Implementation

Uint8List sigHash(Tx tx, int inputIndex, {int forkId = 0}) {
  final pending = _inputs[inputIndex];
  final hasher = ForkedHasher(forkId: forkId);
  return hasher.hash(
    tx,
    inputIndex,
    pending.hashType,
    prevScript: pending.scriptPubKey,
    amount: pending.value,
  );
}