On Mon, Jul 01, 2024 at 07:20:19PM +0000, Paul Hoffman <paul.hoff...@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)) _______________________________________________ DNSOP mailing list -- dnsop@ietf.org To unsubscribe send an email to dnsop-le...@ietf.org