This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Uu58 | |
| ALPHABET58 = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz".chars.freeze | |
| ALPHAMAP58 = ALPHABET58.each_with_index.to_h.freeze | |
| # Convert a string UUID to a base58 string representation. | |
| # | |
| # Output will be padded up to 22 digits if necessary. | |
| # | |
| # Behaviour is undefined if passing something other than a 128-bit | |
| # hex string in network order with optional interstitial hyphens. |
OlderNewer