[DNSOP] Re: [Ext] Revised the application for the WALLET RRTYPE

Stephane Bortzmeyer <bortzmeyer@nic.fr> Thu, 18 July 2024 09:38 UTC

Return-Path: <bortzmeyer@nic.fr>
X-Original-To: dnsop@ietfa.amsl.com
Delivered-To: dnsop@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DE33FC14F6FE for <dnsop@ietfa.amsl.com>; Thu, 18 Jul 2024 02:38:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.406
X-Spam-Level:
X-Spam-Status: No, score=-4.406 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, RCVD_IN_DNSWL_MED=-2.3, 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=nic.fr
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 ohfLq01y7I3n for <dnsop@ietfa.amsl.com>; Thu, 18 Jul 2024 02:38:51 -0700 (PDT)
Received: from mx2.nic.fr (mx2.nic.fr [IPv6:2001:67c:2218:10::51:2]) (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 193EFC151069 for <dnsop@ietf.org>; Thu, 18 Jul 2024 02:38:50 -0700 (PDT)
Received: from pps.filterd (mx2.nic.fr [127.0.0.1]) by mx2.nic.fr (8.17.1.19/8.17.1.19) with ESMTP id 46I8x3CO026578; Thu, 18 Jul 2024 09:38:22 GMT
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nic.fr; h=cc : content-type : date : from : in-reply-to : message-id : mime-version : references : subject : to; s=nic-20240601; bh=KyX4dzMHCtKSvUShHCSbjXvf9R6KeRu3piEAzkdQftU=; b=KKGnZqEMmkDIpSxsMEANguVUAoTG/ycZxxG4fjn6EwNjhaDbLbOWoXwH0sm8VEnF6JG5 0Lg5wf6DvJY6FrwSeuMHAoQCRPdJ6X421gHMyeDRQ8Wvrci1CAf6X8a036pBjKE1aM1/ QRMMhDwBMXTqlZgC5bQ8i0aSowGIJYLXYMmXFw4Xaslc/5ZR2INpOEmkaCqQc1SPlg7F 0YxU+iXEaNVPrKUnGspGqdn50y1AnwP2xRxik4SBiqGny/0eLAdIOs25iJLvgStw98Bj /vTvoCxCM4H4sC1cCTMtfrG13gVR1yg1AI6SAjaqfnsH9sXHDSO5avHN6diX0I7xxmU+ Sw==
Received: from relay01.prive.nic.fr (relay01.prive.nic.fr [10.1.50.11]) by mx2.nic.fr (PPS) with ESMTP id 40dwdp8agc-1; Thu, 18 Jul 2024 09:38:22 +0000
Received: from b12.nic.fr (b12.tech.ipv6.nic.fr [IPv6:2001:67c:1348:7::86:133]) by relay01.prive.nic.fr (Postfix) with ESMTP id A8CC26464E73; Thu, 18 Jul 2024 11:38:22 +0200 (CEST)
Received: by b12.nic.fr (Postfix, from userid 1000) id A271B3FF2E; Thu, 18 Jul 2024 11:38:22 +0200 (CEST)
Date: Thu, 18 Jul 2024 11:38:22 +0200
From: Stephane Bortzmeyer <bortzmeyer@nic.fr>
To: Paul Hoffman <paul.hoffman@icann.org>
Message-ID: <ZpjijmE2ZOqnA7BW@nic.fr>
References: <7FC7E35E-915F-4A29-8AB2-948529F4F1CC@icann.org> <A4681A06-0AAC-4F8A-BB3A-7D61CAB09925@icann.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <A4681A06-0AAC-4F8A-BB3A-7D61CAB09925@icann.org>
X-Operating-System: Debian GNU/Linux 12.6
X-Kernel: Linux 6.1.0-22-amd64 x86_64
X-Charlie: Je suis Charlie
Organization: NIC France
X-URL: http://www.nic.fr/
X-Proofpoint-GUID: 8M6ViDtrxKAwM7djjZOpNJIUTBFhB-fK
X-Proofpoint-ORIG-GUID: 8M6ViDtrxKAwM7djjZOpNJIUTBFhB-fK
Message-ID-Hash: QZ26ZRY37XFNX2NFXHZSZYIEG4D5VPUU
X-Message-ID-Hash: QZ26ZRY37XFNX2NFXHZSZYIEG4D5VPUU
X-MailFrom: bortzmeyer@nic.fr
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-dnsop.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: dnsop <dnsop@ietf.org>
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [DNSOP] Re: [Ext] Revised the application for the WALLET RRTYPE
List-Id: IETF DNSOP WG mailing list <dnsop.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/dnsop/l2s6PdmxjN1l36p325l4qdxEZzY>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dnsop>
List-Help: <mailto:dnsop-request@ietf.org?subject=help>
List-Owner: <mailto:dnsop-owner@ietf.org>
List-Post: <mailto:dnsop@ietf.org>
List-Subscribe: <mailto:dnsop-join@ietf.org>
List-Unsubscribe: <mailto:dnsop-leave@ietf.org>

On Mon, Jul 01, 2024 at 07:20:19PM +0000,
 Paul Hoffman <paul.hoffman@icann.org> wrote 
 a message of 8 lines which said:

> I submitted it to the RRTYPE expert reviewers, and the new
> definition is posted at
> <https://www.iana.org/assignments/dns-parameters/WALLET/wallet-completed-template>.

Are there examples in the wild? I added one (with a real Bitcoin
address, I hope to Make Money Fast) at bortzmeyer.fr. Here is a
small Python script to decode these RR (I was too lazy to patch dig).

#!/usr/bin/env python

# https://www.dnspython.org/
import dns.resolver

# Not yet known from most software. https://www.iana.org/assignments/dns-parameters/dns-parameters.xml#dns-parameters-4
WALLET = 262

def decode(wallet_rr):
    result = []
    bytes = wallet_rr.to_wire()
    index = 0
    while True:
        if index >= len(bytes):
            break
        length = int(bytes[index])
        new_index = index+length+1
        if new_index > len(bytes):
            raise Exception("Missing data at the end of the WALLET RR")
        result.append(bytes[index+1:new_index].decode())
        index = new_index
    if index != len(bytes):
        raise Exception("Extra data at the end of the WALLET RR")
    if len(result) != 2:
        raise Exception("A WALLET RR must be two and only two strings")
    return "Code: %s Address: %s" % (result[0], result[1])

answers = dns.resolver.resolve("bortzmeyer.fr", WALLET)
for rdata in answers:
    print(decode(rdata))