So the .onion address is half of the hashed public key? What happens if another public key's hash has the same first half but a separate other half and therefore by chance they have the same domain, how does tor deal with this?
Also, where is tor's distributed hash table stored? Is it downloaded locally or is it connected to on tors nodes? If so isn't the hash table going to be extremely large in size?