Multibase is a protocol for distinguishing base encodings and other simple string encodings, and for ensuring full compatibility with program interfaces.
Multibase is a protocol for distinguishing base encodings and other simple string encodings, and for ensuring full compatibility with program interfaces. https://github.com/multiformats/multibase
Map of base keys to multicodec packed symbols from the standard table.
Map of base keys to multicodec packed symbols from the standard table.
(format base-key data)
Formats binary data into a string with the given base. Returns the formatted string, prefixed with the base constant.
Formats binary data into a string with the given base. Returns the formatted string, prefixed with the base constant.
(format* base-key data)
Formats binary data into a string with the given base. Returns the formatted string without a prefix.
Formats binary data into a string with the given base. Returns the formatted string without a prefix.
(inspect string)
Inspect a string and return a map of information including the prefix character, base key, and parsed data.
Inspect a string and return a map of information including the prefix character, base key, and parsed data.
(parse string)
Parses a multibase-prefixed string into binary data. Returns an array with the parsed bytes, or throws an error if there is no known base.
Parses a multibase-prefixed string into binary data. Returns an array with the parsed bytes, or throws an error if there is no known base.
(parse* base-key string)
Parse a non-prefixed string into binary data using the given base. Returns the decoded byte array.
Parse a non-prefixed string into binary data using the given base. Returns the decoded byte array.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close