12 votes

Designing APIs for humans: Object IDs

2 comments

  1. [2]
    skybrian
    Link
    Makes sense. Maybe include a checksum and avoid easily confused characters (0 versus o and l versus 1) as well?

    Makes sense. Maybe include a checksum and avoid easily confused characters (0 versus o and l versus 1) as well?

    1 vote
    1. asymptotically
      (edited )
      Link Parent
      Maybe this would be a good use-case for bech32! It has: A "human readable part", similar to the prefix in the Stripe article A character set that excludes visually similar characters An error...

      Maybe this would be a good use-case for bech32!

      It has:

      • A "human readable part", similar to the prefix in the Stripe article
      • A character set that excludes visually similar characters
      • An error correcting code, so that small errors can be corrected, and larger errors can be detected

      ninja edit: My first comment nearly three years ago was also about Bech32 encoding! I promise that I'm not obsessed...

      3 votes