[Cbor] Money amounts

Changaco <changaco@changaco.oy.lc> Mon, 25 February 2019 09:28 UTC

Return-Path: <changaco@changaco.oy.lc>
X-Original-To: cbor@ietfa.amsl.com
Delivered-To: cbor@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6E36C12F1A5 for <cbor@ietfa.amsl.com>; Mon, 25 Feb 2019 01:28:29 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=changaco.oy.lc
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id C6xzTI1wjdlw for <cbor@ietfa.amsl.com>; Mon, 25 Feb 2019 01:28:27 -0800 (PST)
Received: from changaco.net (changaco.net [5.135.153.125]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9768612894E for <cbor@ietf.org>; Mon, 25 Feb 2019 01:28:25 -0800 (PST)
Received: from changaco.net (localhost [127.0.0.1]) by changaco.net (OpenSMTPD) with ESMTP id d6b63061 for <cbor@ietf.org>; Mon, 25 Feb 2019 09:28:22 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=changaco.oy.lc; h=date :from:to:subject:message-id:mime-version:content-type :content-transfer-encoding; s=changaco; bh=BVaUSw7t3LlUhEHZcsB50 iper6A=; b=hbdYVNr7VqPAX7sGKuLSIr+n+v11WpssG9TwyQ7JFBw85ago811en NRlR5SOcG1sp8Sq6myrXU0cmmmmJAFEyGkJ/OHiPz4naUwFZMi6rNLRf2yVEzmlo i7lIkGwdD6DiADvJp0v5q0jIhJUHlKsxp4gCF0+1cK7t+0Y6GNX7Hs=
Received: by changaco.net (OpenSMTPD) with ESMTPSA id 4205c491 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for <cbor@ietf.org>; Mon, 25 Feb 2019 09:28:22 +0000 (UTC)
Date: Mon, 25 Feb 2019 10:28:21 +0100
From: Changaco <changaco@changaco.oy.lc>
To: cbor@ietf.org
Message-ID: <20190225102821.583b57b9.changaco@changaco.oy.lc>
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/z5ouBPCuVvVUuAjYwr7terbKikE>
Subject: [Cbor] Money amounts
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Concise Binary Object Representation \(CBOR\)" <cbor.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cbor>, <mailto:cbor-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cbor/>
List-Post: <mailto:cbor@ietf.org>
List-Help: <mailto:cbor-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cbor>, <mailto:cbor-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 25 Feb 2019 09:28:29 -0000

Hello everyone,

I've started using tags 77111 and 77112 for money amounts and written a spec for them: https://liberapay.github.io/specs/cbor-money.html

I hadn't seen the previous proposal <https://j-richter.github.io/CBOR/currency.html> but it's different from mine so I think the two are complementary. That said tags 165 and 77111 do represent the same thing so 77111 could be abandoned if 165 is extended to support more use cases.

P.S. The form to register new tags is the one in <https://www.iana.org/form/protocol-assignment>, right?

---
Charly C. / @Changaco