telehash / telehash.github.io

Contents of the site
http://telehash.org/
Other
483 stars 59 forks source link

hashname seems to use base32hex #104

Closed hiredman closed 9 years ago

hiredman commented 9 years ago

the rfc linked in the hash name spec defines the alphabet as not containing the character '0' but various example encoded keys and stuff I see contain the character '0', which leads me to believe whatever encoding that is, it is not base32.

the rfc also defines a format called base32hex which does include the character '0' so it seems likely that encoding is what is being used. the rfc says the base32hex encoding should not be referred to as base32 (likely trying to avoid this confusion).

quartzjer commented 9 years ago

The official format is specifically base32 and not base32hex (see implementations being used in js and c), but there was some early cut/paste examples using a non-rfc base32 encoder... I thought I updated them all, but I'll take another pass and be sure, sorry for the confusion and thanks!

hiredman commented 9 years ago

https://github.com/telehash/telehash.org/tree/master/v3/hashname is were the examples I was looking at are

quartzjer commented 9 years ago

Yeah, pretty obvious now, one of those I-remember-doing-it-but-never-actually-did things, thanks for catching it!