Skip to content

Commit cda03d1

Browse files
committed
Fix sig verification on net framework for non strict encoding signatures
1 parent ad2e215 commit cda03d1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎NBitcoin/ScriptEvaluationContext.cs‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2300,6 +2300,10 @@ private bool CheckSig(byte[] vchSig, byte[] vchPubKey, Script scriptCode, Transa
23002300
if (!pubkey.Verify(sighash, sig2))
23012301
return false;
23022302
}
2303+
else
2304+
{
2305+
return false;
2306+
}
23032307
#pragma warning restore 618
23042308
#endif
23052309
}

0 commit comments

Comments
 (0)