UNPKG

multiformats

Version:

Interface for multihash, multicodec, multibase and CID

12 lines 232 B
import { fromHex, toHex } from '../bytes.js'; import { withAlphabet } from './base.js'; export const base16 = withAlphabet({ prefix: 'f', name: 'base16', alphabet: '0123456789abcdef', encode: toHex, decode: fromHex });