sig
  type alphabet
  exception Invalid_alphabet
  val make_alphabet : string -> B58.alphabet
  val encode : B58.alphabet -> bytes -> bytes
  exception Invalid_base58_character
  val decode : B58.alphabet -> bytes -> bytes
end