#6572 NORM Never A: Replace key with hash to reduce avahi TXT size
Zarro Boogs per Child
bugtracker at laptop.org
Tue Feb 26 04:20:23 EST 2008
#6572: Replace key with hash to reduce avahi TXT size
------------------------------+---------------------------------------------
Reporter: morgs | Owner: Collabora
Type: defect | Status: new
Priority: normal | Milestone: Never Assigned
Component: presence-service | Version:
Keywords: | Verified: 0
Blocking: | Blockedby:
------------------------------+---------------------------------------------
Morgan Collett wrote:
> Ivan Krstić wrote:
>> On Feb 26, 2008, at 2:49 AM, Sjoerd Simons wrote:
>>> Does sugar make any assumptions about the size of the key? IOW can we
>>> instead of removing the key completely, use a smaller key?
>>
>> As I've told daf, smcv et al many months ago in Boston, there's no
point
>> in advertising the whole key. Advertising a digest is enough as long as
>> nodes support an on-demand operation that returns their whole key.
>
> As long as Sugar gets a unique value as the key, nothing will break (for
> very short term changes for testing...) so you could just replace the
> key in the TXT record with its hash.
This patch for Presence Service replaces the public key with its sha1
hash.
I tested in jhbuild on salut and sharing Chat does work, and avahi-
discover shows the shorter (40 byte) value for key.
--
Ticket URL: <http://dev.laptop.org/ticket/6572>
One Laptop Per Child <http://dev.laptop.org>
OLPC bug tracking system
More information about the Bugs
mailing list