lsd0001

LSD0001: GNU Name System
Log | Files | Refs | README

commit 417f4f063753a4ad1888012bfefa85cc4794d7d6
parent 258b24fa760bedd320d74f7c4f7ccd45d96bc686
Author: Martin Schanzenbach <schanzen@gnunet.org>
Date:   Wed,  9 Feb 2022 13:07:22 +0100

base32gns

Diffstat:
Mdraft-schanzen-gns.xml | 13+++++++------
1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/draft-schanzen-gns.xml b/draft-schanzen-gns.xml @@ -459,7 +459,7 @@ The encoding and decoding symbols for Crockford Base32 including this modification are defined in <xref target="CrockfordB32Encode"/>. The functions for encoding and decoding based on this table are called - GNSBase32Encode and GNSBase32Decode, respectively. + Base32GNS-Encode and Base32GNS-Decode, respectively. </t> <figure anchor="CrockfordB32Encode"> <artwork name="" type="" align="left" alt=""><![CDATA[ @@ -500,14 +500,14 @@ Value Symbol Symbol ]]></artwork> </figure> <t> - The Base32-Crockford Alphabet Including the Additional U Encode Symbol. + The Base32GNS Alphabet Including the Additional U Encode Symbol. </t> <t> For the string representation of a zTLD we define: </t> <artwork name="" type="" align="left" alt=""><![CDATA[ -zkl := GNSBase32Encode(ztype||zkey) -ztype||zkey := GNSBase32Decode(zkl) +zkl := Base32GNS-Encode(ztype||zkey) +ztype||zkey := Base32GNS-Decode(zkl) ]]></artwork> <t> If zkl is less than 63 characters, it can directly be @@ -2949,17 +2949,18 @@ Purpose | Name | References | Comment <t> The following are test vectors for the Base32 variation of a Crockford Base32 encoding used for zTLDs. + The strings are encoded without the zero terminator. </t> <artwork name="" type="" align="left" alt=""> <![CDATA[ -GNSBase32Encode: +Base32GNS-Encode: Input string: "Hello World" Output string: "91JPRV3F41BPYWKCCG" Input bytes: 474e55204e610x6d652053797374656d Output string: "8X75A82EC5PPA82KF5SQ8SBD" -GNSBase32Decode: +Base32GNS-Decode: Input string: "91JPRV3F41BPYWKCCG" Output string: "Hello World"