<puck>
note that nix's base32 is reverse, and with a non-standard charset
<tilpner>
Yeah, I don't need any particular encoding, just any
<__monty__>
Reverse?
<tilpner>
I'll try to follow through your gist, thanks
<__monty__>
tilpner: Please stick to the existing one for hashes. Let's not make the situation worse than it already is.
<tilpner>
Not a hash
<__monty__>
Nix hashes are usually base32 encoded.
<__monty__>
I'm talking about the base32 encoding.
<puck>
i'm not entirely sure why nix's base32 hashes are reverse from the "standard" encoding
<__monty__>
What does reverse mean though?
<__monty__>
Like little endian?
<puck>
yeah. normally, base32 encoding starts at the first byte of the bytestring, and continues onwards. Nix's hash is the exact opposite and starts at the end
<__monty__>
Huh, TIL.
<__monty__>
That's really weird.
<__monty__>
Sounds like an accidental thing tbh.
<puck>
i think it's more of a "scholar" view of the whole computering thing
<puck>
parsing the entire hash as a "base256-encoded" little-endian integer, etc
<__monty__>
Are the hexadecimal hash representations backwards too?
<puck>
no
<__monty__>
Sounds more to me like appending to a string from the wrong end or something tbh.
<puck>
the nix phd thesis i think mentions it, and mentions it being "backwards" i think?
<__monty__>
Hmm, I should read that once upon a time.
<__monty__>
If only I had a bag of round tuits.
ddellacosta has joined #nix-lang
infinisil has quit [Quit: Configuring ZNC, sorry for the joins/quits!]