What is Nostr?
Andreas Schildbach [ARCHIVE] /
npub1xg2…dsv7
2023-06-07 15:31:22
in reply to nevent1q…yjnk

Andreas Schildbach [ARCHIVE] on Nostr: 📅 Original date posted:2015-02-26 📝 Original message:On 02/26/2015 12:14 PM, ...

📅 Original date posted:2015-02-26
📝 Original message:On 02/26/2015 12:14 PM, Oleg Andreev wrote:
>
>> Base43 is the same as any BaseX standard, but using a different alphabet
>> (43 characters). It's meant to be used for efficiently storing binary
>> data into QR codes. The alphabet is picked to match the 'Alphanumeric'
>> input mode of QR codes as closely as possible, but at the same time be
>> allowed in URIs.
>
> Does it mean Base58 or Base64 take more space in QR code than Base43? Do you have an estimate of the gains?

Both Base58 and Base64 force QR codes into binary encoding. Base64 can
take 6 bits per char, binary of course has 8 bits per char. So you're
wasting 25% of space if you use Base64, a little bit more with Base58.

Base43 takes log2(43) = 5.43 bits per char, while each char uses up 5.5
bits in QR codes in 'Alphanumeric' encoding. So that's a waste of 1.3%.

Source for QR code standard: http://en.wikipedia.org/wiki/QR_code
Author Public Key
npub1xg2m84malu0cfm4444r0kysx4rgk27e75aj6sz6538kw8fcz627qeadsv7