<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div class="Ih2E3d">I misunderstood the purpose of the hash. I thought the client was expected to unhash it and use it to determine the capabilities. I didnt realize it was used to compare caps efficiently.<br>
</div></div></blockquote></div><div><br></div>Hashes are one-way, so it's very hard (i.e. you often need to brute force), to reverse the calculation. Hashes are a quick and easy way though to compute a 'fingerprint' for a set of data, so that you can easily determine if you've seen it before (by comparing the hashes), or not (and then you can do the 'expensive' disco query to get the data that the hash was computed from). Clients need to store the disco result along with it's hash, so that when they see the same hash again, they know what the result was, and they don't need to re-query it.<br clear="all">
<br>-- <br>- Norman Rasmussen<br> - Email: <a href="mailto:norman@rasmussen.co.za">norman@rasmussen.co.za</a><br> - Home page: <a href="http://norman.rasmussen.co.za/">http://norman.rasmussen.co.za/</a>