actually encode public key instead of public key hash