Added exception InvalidPrivateKeyHashException and checked if private key's hash...