Now using SHA1 hash of public key instead of public key itself.