Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 54863 invoked from network); 8 Mar 2009 23:52:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Mar 2009 23:52:10 -0000 Received: (qmail 74305 invoked by uid 500); 8 Mar 2009 23:52:04 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 74259 invoked by uid 500); 8 Mar 2009 23:52:03 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 74248 invoked by uid 99); 8 Mar 2009 23:52:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Mar 2009 16:52:03 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of antony.blakey@gmail.com designates 209.85.200.174 as permitted sender) Received: from [209.85.200.174] (HELO wf-out-1314.google.com) (209.85.200.174) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Mar 2009 23:51:54 +0000 Received: by wf-out-1314.google.com with SMTP id 28so1536200wff.29 for ; Sun, 08 Mar 2009 16:51:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=d6IZfavUSSZKLGG7W62hIyE79Czj/wvsCyx1fmqKlMk=; b=QUQL4PLYAzJmici79SfsWdeqv2NNrs1B9lG9dMHZ8p3ijoFKDqepvLsjc2ZRHwzw2Z mgz48xjuOK1SomdKhrbSFG5e8IqsqfY/2dPaAHufilNXeQ0o4YBj9Tvp2fBEeBZTMtjE E7dEIhfvb7U/v+BFIpP9wdVfrQ6FcqtXkDc0Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=JUFeR0E/jDGNjXzHeywVIvEYr6vJIt0uDJ033V/yTI2Dwn+0crzrqScZu4oxeyNPun P/SHDU7QTu2d/W1L6sO4HFf1lQECxjDVbdOiaXirX8WXxBABSggQzA6lAB0iIa9lITRE tq5C6l1wtiWjFcqani1r2lEU4Jy57Vqbpncfw= Received: by 10.142.214.11 with SMTP id m11mr2254146wfg.183.1236556294274; Sun, 08 Mar 2009 16:51:34 -0700 (PDT) Received: from ?192.168.0.17? (ppp121-45-108-71.lns10.adl6.internode.on.net [121.45.108.71]) by mx.google.com with ESMTPS id 24sm7465801wfc.17.2009.03.08.16.51.32 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 08 Mar 2009 16:51:33 -0700 (PDT) Message-Id: From: Antony Blakey To: user@couchdb.apache.org In-Reply-To: <283A6EDD-6701-4A6A-88AE-8B97E6D11D9E@mooseyard.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: Proposal for digital signatures of documents Date: Mon, 9 Mar 2009 10:21:29 +1030 References: <283A6EDD-6701-4A6A-88AE-8B97E6D11D9E@mooseyard.com> X-Mailer: Apple Mail (2.930.3) X-Virus-Checked: Checked by ClamAV on apache.org On 08/03/2009, at 7:19 PM, Jens Alfke wrote: > Comments and suggestions welcome, of course :) One issue with a canonical form is that you probably want to use a Unicode Normalization Form (NFC) as a generic step (http://unicode.org/reports/tr15/ ). Also, lexicographic order is relative to a l18n profile in Unicode because different languages sort the same Unicode characters differently. Given that you need something universal, I think code- point ordering is a better solution. OLPC has a start on canonical JSON: http://wiki.laptop.org/go/Canonical_JSON . Antony Blakey ------------- CTO, Linkuistics Pty Ltd Ph: 0438 840 787 The fact that an opinion has been widely held is no evidence whatever that it is not utterly absurd. -- Bertrand Russell