[Cbor] Having fun with Deterministic CBOR
Anders Rundgren <anders.rundgren.net@gmail.com> Mon, 09 September 2024 16:50 UTC
Return-Path: <anders.rundgren.net@gmail.com>
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 129C6C15108F for <cbor@ietfa.amsl.com>; Mon, 9 Sep 2024 09:50:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.105
X-Spam-Level:
X-Spam-Status: No, score=-2.105 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_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Yq8MWl8OwD4d for <cbor@ietfa.amsl.com>; Mon, 9 Sep 2024 09:50:31 -0700 (PDT)
Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) (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 ietfa.amsl.com (Postfix) with ESMTPS id 6E058C14CE5D for <cbor@ietf.org>; Mon, 9 Sep 2024 09:50:31 -0700 (PDT)
Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-371ba7e46easo3075069f8f.0 for <cbor@ietf.org>; Mon, 09 Sep 2024 09:50:31 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725900629; x=1726505429; darn=ietf.org; h=content-transfer-encoding:content-language:to:subject:from :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=Eo3SmPdgw77GYcs3tuvX3p0Or43TEYvC7lNcR0prfYQ=; b=XchhmjmeT0rPF7XaGylz3G4oY6PHwHOH6swBmtivQSAu9enZxcnc/dmVVaiQfYfLe1 MGuIlH5rOspckPj3bHata3emLxnK3V3K04nsbFLYdPnOIxLlyUHhMA9AbUbZw8nd2I9e zuJn8Ngp+uaLBe4rdS46VDbm8Z6kwJhv7HgTq6eb9su25AFeUjpOcWw9x9X2tquzdAk5 m295Z/hBC2fLe8kfkSWAC8ByA0c0He4Mz3FWTLuulqu1o0XJVRJGtspLl7CSvQmEnGbi 7gfDcbMPjmIf7MeU/hJLszL2qVtK5Ciz+DIOedbIgccGTf3U/rE90XlYJCngcg+NvDq5 GYBw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725900629; x=1726505429; h=content-transfer-encoding:content-language:to:subject:from :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=Eo3SmPdgw77GYcs3tuvX3p0Or43TEYvC7lNcR0prfYQ=; b=FRkN1vdAf4YZSj+4jUFtVHQw3MxVLk13v7E3P0AxFsi7uZ5RizAWX+WMT0kpuPSvYv YBmUxxqGxRAW497xnmaZAJJv2jDDwKlkRK1dPn4BH+004wJhaNip+0tzSZdLsIURRVFg v5lGYQk4rMDwBRmxxqWllXREcQLbRmTFPbJAV+fGnykvLFKquiCaKk15m9Lbib1z93Ft FKyzDS9Z49vGTYW7bfdy04lKz1+HLIWif+PvljXhp1WKqe6Ir8V5ZMcpgc3S+2u2ketj IcBx5BYwQQdA0w5TVxwlq9rcKAZVYSuFy0/DOZM93u0BhEtxL+rpJ+/1ys8ot3H7bB+g 1MnQ==
X-Gm-Message-State: AOJu0YzOGAXPXQ4sRXh1oj7mkXvXXggt1PrTAawdhtsnaRI3EJIGZt/9 czWbovJ3K4kpg7+nzXsgh7DrI8mmQR9qrK6/8D8CfZUuA91AYSUGvf5Zow==
X-Google-Smtp-Source: AGHT+IH+5/elLNvLJJiTYV7WMC89vcWVThnsaxSj4vWbwjaWONPyhdRQTst9Fl3FqLJQH24IXgWlqQ==
X-Received: by 2002:a5d:5452:0:b0:371:82ec:206e with SMTP id ffacd0b85a97d-378895c5c2cmr8580034f8f.5.1725900629142; Mon, 09 Sep 2024 09:50:29 -0700 (PDT)
Received: from ?IPV6:2a01:e0a:e1b:64b0:b975:8dd:7a30:a630? ([2a01:e0a:e1b:64b0:b975:8dd:7a30:a630]) by smtp.googlemail.com with ESMTPSA id ffacd0b85a97d-3789564aea0sm6457261f8f.20.2024.09.09.09.50.28 for <cbor@ietf.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 09 Sep 2024 09:50:28 -0700 (PDT)
Message-ID: <63a1aed1-20e9-4bc4-8506-0fbf558a1d92@gmail.com>
Date: Mon, 09 Sep 2024 18:50:28 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
From: Anders Rundgren <anders.rundgren.net@gmail.com>
To: "cbor@ietf.org" <cbor@ietf.org>
Content-Language: en-US
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Message-ID-Hash: EHRL34MGEOZH5GWI43GOQWGJQETUPSXN
X-Message-ID-Hash: EHRL34MGEOZH5GWI43GOQWGJQETUPSXN
X-MailFrom: anders.rundgren.net@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
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [Cbor] Having fun with Deterministic CBOR
List-Id: "Concise Binary Object Representation (CBOR)" <cbor.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/brDD5eDNaF2bTWeIhWJRgpBt7nA>
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>
Hello CBOR enthusiasts, Here is my take on the EU Identity Wallet for payments: https://cyberphone.github.io/wallet-core/doc/#3.3.authorization-response You may frown at the idea of cutting and pasting CBOR map items. However, in real-world implementations using high-level representations of CBOR data items, both operations require a single method call, no need to ever bother about map item-count etc. Cutting: signedAuthorization.remove(PASS_THROUGH_LABEL); Pasting: recoveredAuthorization.set(PASS_THROUGH_LABEL, recoveredPassThrough); AFAICT, deterministically encoded CBOR may become a game changer. Feel free recasting the Authorization Response in COSE. Anders
- [Cbor] Having fun with Deterministic CBOR Anders Rundgren