Github-Pull: #7213 Rebased-From: 37d271d7cce44885f835292ffe99b54399b014d6
These changes decode valid SIGHASH types on signatures in assembly (asm) representations of scriptSig scripts. This squashed commit incorporates substantial helpful feedback from jtimon, laanwj, and sipa.