SigHashType.all constructor

const SigHashType.all({
  1. bool anyOneCanPay = false,
})

Sign all of the outputs. If anyOneCanPay is true, then only the input containing the signature will be signed. If anyOneCanPay is false and a Taproot input is being signed, this will be treated as "SIGHASH_DEFAULT".

Implementation

const SigHashType.all({ bool anyOneCanPay = false })
  : value = allValue | (anyOneCanPay ? anyOneCanPayFlag : 0);