示例#1
0
 public bool Verify(byte[] hash, ECDSASignature sig)
 {
     var signer = new ECDsaSigner();
     signer.Init(false, GetPublicKeyParameters());
     return signer.VerifySignature(hash, sig.R, sig.S);
 }
示例#2
0
文件: ECKey.cs 项目: crowar/NBitcoin
		internal bool Verify(uint256 hash, ECDSASignature sig)
		{
			var signer = new ECDsaSigner();
			signer.Init(false, GetPublicKeyParameters());
			return signer.VerifySignature(hash.ToBytes(), sig.R, sig.S);
		}