Skip to content

ricobank/croc32

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

croc32

Crockford base32 with letter-case checksums similar to ETH addresses.

  1. Take crockford base32 of value (e.g. base32.js
  2. Take hash of value (keccak256)
  3. Uppercase Nth letter of encoded string if bit 0 of byte N of hash is 1

Checksum density:

  • (22/32) check bits per char
  • 5 value bits per char
  • = 0.1375 check bits per bit = 1.1 check bits per byte
  • encoding density is (5/8) so this gives 0.6875 check bits per encoded bytes
  • !! up to a maximum of 32 check bits, b/c it only uses LSB of each byte in hash (32 bytes) for simplicity

About

crockford base32 with lettercase checksums

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published