fix HierarchicalKey example to properly generate addresses

An address is actually the hash of a public key, not the public key.