UNPKG

multiformats

Version:

Interface for multihash, multicodec, multibase and CID

16 lines (13 loc) 282 B
import { rfc4648 } from './base.ts' export const base16 = rfc4648({ prefix: 'f', name: 'base16', alphabet: '0123456789abcdef', bitsPerChar: 4 }) export const base16upper = rfc4648({ prefix: 'F', name: 'base16upper', alphabet: '0123456789ABCDEF', bitsPerChar: 4 })