Granados.PKI.EdwardsCurve.IsValidKeyPair C# (CSharp) Method

IsValidKeyPair() public abstract method

Checks validity of the key pair.
public abstract IsValidKeyPair ( byte privateKey, byte publicKey ) : bool
privateKey byte private key
publicKey byte public key
return bool
        public abstract bool IsValidKeyPair(byte[] privateKey, byte[] publicKey);

Usage Example

Esempio n. 1
0
 /// <summary>
 /// Check consistency of public key and private key.
 /// </summary>
 /// <returns>true if keys are valid.</returns>
 public bool CheckKeyConsistency()
 {
     return(_curve.IsValidKeyPair(_privateKey, _publicKey.Bytes));
 }