a way to generate address from pub key