[Cbor] Re: dCBOR Rust Implementation Now Supports Bignums

Vadim Goncharov <vadimnuclight@gmail.com> Sat, 20 December 2025 13:45 UTC

Return-Path: <vadimnuclight@gmail.com>
X-Original-To: cbor@mail2.ietf.org
Delivered-To: cbor@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id 80C6E9D427FE for <cbor@mail2.ietf.org>; Sat, 20 Dec 2025 05:45:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level:
X-Spam-Status: No, score=-2.099 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail2.ietf.org ([166.84.6.31]) by localhost (mail2.ietf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5dBQnUMHjaLt for <cbor@mail2.ietf.org>; Sat, 20 Dec 2025 05:45:59 -0800 (PST)
Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id 3E06F9D427F9 for <cbor@ietf.org>; Sat, 20 Dec 2025 05:45:59 -0800 (PST)
Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-5942b58ac81so2324257e87.2 for <cbor@ietf.org>; Sat, 20 Dec 2025 05:45:59 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1766238358; x=1766843158; darn=ietf.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=umnksAd+RyjFbQHDisCzwnCLZqp4DzbNhCc44vRVJ24=; b=gk+6CrvpYIabQT10RvNqwW3BKhbcD11cE69gAwp/71E53ZXmdB74XbDEX1/9pLhynR ZuAD+JmnkfEgTCJdYCaG3QmQyDUmZHrWu13ysebjGfURTIxjsgjXS5GOGVSl56LHN+Bx 8CnzPaIwWbOjhJYSnoZo7KCLZb3FMJMUot4La22VEVbSMWpb9CFLLP+dYk2JAs0cpPmW nuCquaRU6jL4J8VEseFLfcOLugiIeYmOgd4xANagjlTSRo/iAFL4XVuHUVdHElsPxDAJ bNmOfITKsQ98avM8AiAi8RGvNP5nQzc//5FjjtJDfYNUTHH/dmxdTaD7bIL9cox+tFci KBHw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766238358; x=1766843158; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=umnksAd+RyjFbQHDisCzwnCLZqp4DzbNhCc44vRVJ24=; b=JRTzkMYGvauQNQX/Tk3xPiNeIEDDJhjM9eJIVG9P9gEy7jHCEYwVeqzf9ZEuKK4WPQ RKoXOIz4a6NQykK3UebIxmKJwD5VrPVy3GSIVYY8as9ces/lAY0jSBAKkSHP+T0+15Bx i2GzgLAS0RNTLYaCuBlwfn1wWPXqIP2JZNyDPM8kAxukNONK/IBW/3sy5EDfd6Uz3HH0 Z4aS6geEQPDxPICKjhvklMb2RK7t2mrIHtQQmgzDjifxkHsGBwFsbItuYxm0TQtV3vU6 gVFUTk/RpP88ePG50HWV/bC7GZU4Zc+Jm0sjso4p+bUq5B//H2hXL47o2hbvV3dGonLa jRtw==
X-Forwarded-Encrypted: i=1; AJvYcCVbR7cJlm+ThGHqaVk6w4STw2shqqNgbT3jvGmQRs7SnBfcA0W+b+Fr7nnzC1AwhZVvaI4f@ietf.org
X-Gm-Message-State: AOJu0Ywee02vl3k2VG5sDB1mFLBFXNqnoL8c/01PkaiQeH/DNGdi26ic Eqm96Lkz1EXM7f1Mf4amGSBQw8wWes0U4vmQFKtap27GNFeEg/hGY5XQ
X-Gm-Gg: AY/fxX7Ipq8JSo7QjNtnG16pcipSfUcRJfn+BgaGWslBIJHxDUC9kwC25vyOHh7261c vGQWkX6J8ETjQwfJkx4QdEREDdLDr9CaOjtY3ByhXncP44f124RXMo1rnCI8dW8LawTEjNJvn36 ShAC1Ug0jtC+eSKyfbvus2yzYuCG5V2prbR42itmVOsU3TVVAGmrTaVCS/uCgX80Lc5Y5UtSnzI mktCNIn1g8uEdBq2/uVJf1Ki2ccNvXPfYQxvmNBYgLUYsuoayMDZnBY+4jnntuarJa9uoir2nPW 0tQvUGcW5ONTtQe4AZ3EcdF7C7HbBK4Ib4998EHhBtltrbVRTyIyW8zxUaTbAB048DRqHFyAqwk Qu2cqkwmvlLq7uKenhq2EsBsMwMATXje1fIfyjawHFJQ5zOGOjTi6s0T8/Dl5CUXPSR1JK4JH6H zFvBpvxYSBK5HwrO55aQ5IBK5ZSMy2xAR3hId/5b0JMaJ+MePa2oQ6hQ==
X-Google-Smtp-Source: AGHT+IH+V+LURiGDPQhVBvXM09Vy1x/1BVFf1H+ZWiGSsTYdSSVuEpOLGgY1V/TFmYhwbGPwENyk8w==
X-Received: by 2002:a05:6512:3da7:b0:595:81ce:ff83 with SMTP id 2adb3069b0e04-59a17ddb4e8mr1757634e87.25.1766238357568; Sat, 20 Dec 2025 05:45:57 -0800 (PST)
Received: from nuclight.lan (broadband-77-37-180-76.ip.moscow.rt.ru. [77.37.180.76]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-59a185dd252sm1504961e87.24.2025.12.20.05.45.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Dec 2025 05:45:57 -0800 (PST)
Date: Sat, 20 Dec 2025 16:45:51 +0300
From: Vadim Goncharov <vadimnuclight@gmail.com>
To: Carsten Bormann <cabo@tzi.org>
Message-ID: <20251220164551.51cd7d10@nuclight.lan>
In-Reply-To: <7D290EA3-E640-4047-9A21-CF10D850C3DE@tzi.org>
References: <5B266DF8-20CB-4D2F-984E-763313A5BB4C@wolfmcnally.com> <CAE7DB7C-D994-4E57-AC2B-A9ED0AB3776F@tzi.org> <CAKoiRuap-4z3wdMZpjG+evRL6e4dfmBP5QCQOGVevQWraOXzkA@mail.gmail.com> <7D290EA3-E640-4047-9A21-CF10D850C3DE@tzi.org>
X-Mailer: Claws Mail 3.21.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.4)
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
Message-ID-Hash: RMKJX4VKPYEIT5EQQKYCPVSGWII7IB5E
X-Message-ID-Hash: RMKJX4VKPYEIT5EQQKYCPVSGWII7IB5E
X-MailFrom: vadimnuclight@gmail.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-cbor.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: Rohan Mahy <rohan.mahy@gmail.com>, Wolf McNally <wolf@wolfmcnally.com>, CBOR <cbor@ietf.org>, Christopher Allen <christophera@lifewithalacrity.com>
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [Cbor] Re: dCBOR Rust Implementation Now Supports Bignums
List-Id: "Concise Binary Object Representation (CBOR)" <cbor.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/IGSPTZNSeVxm0KNpeL4I_TYdplk>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cbor>
List-Help: <mailto:cbor-request@ietf.org?subject=help>
List-Owner: <mailto:cbor-owner@ietf.org>
List-Post: <mailto:cbor@ietf.org>
List-Subscribe: <mailto:cbor-join@ietf.org>
List-Unsubscribe: <mailto:cbor-leave@ietf.org>

On Sat, 20 Dec 2025 14:15:49 +0100
Carsten Bormann <cabo@tzi.org> wrote:

> > I would recommend that we introduce two new tags for bignums that never
> > reduce to type 0/1.  
> 
> Right.  This could go with the NaN tag proposed, which also seem to create a
> separate universe that is not integrated with RFC 8949. (It also could be a
> single tag that one can wrap around an RFC 8949 integer, either mt0/1 or tag
> 2/3.)

Unified with NaN tag?

> The only problem with both these tag proposals is that they will confuse
> implementers; some will think these *replace* the facilities of RFC 8949,
> when they actually *add* to them.
 
Solved by explicit wording in spec.

-- 
WBR, @nuclight