Beispiel #1
0
 public TransactionSignature(ECDSASignature signature, SigHash sigHash)
 {
     if (sigHash == SigHash.Undefined)
     {
         throw new ArgumentException("sigHash should not be Undefined");
     }
     _SigHash   = sigHash;
     _Signature = signature.MakeCanonical();
 }
Beispiel #2
0
        public static bool EnsureLowS(BlockSignature blockSignature)
        {
            var signature = new ECDSASignature(blockSignature.Signature);

            if (!signature.IsLowS)
            {
                blockSignature.Signature = signature.MakeCanonical().ToDER();
            }
            return(true);
        }