VerifySignature() public method

public VerifySignature ( byte message, NBitcoin.BouncyCastle.Math.BigInteger r, NBitcoin.BouncyCastle.Math.BigInteger s ) : bool
message byte
r NBitcoin.BouncyCastle.Math.BigInteger
s NBitcoin.BouncyCastle.Math.BigInteger
return bool
Ejemplo n.º 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);
 }
Ejemplo n.º 2
0
		internal bool Verify(uint256 hash, ECDSASignature sig)
		{
			var signer = new ECDsaSigner();
			signer.Init(false, GetPublicKeyParameters());
			return signer.VerifySignature(hash.ToBytes(), sig.R, sig.S);
		}