Base 58 Encoding for OCaml
  • OCaml 89.8%
  • Makefile 10.2%
Find a file
2016-05-17 23:48:07 +00:00
examples Fix example 2016-05-14 17:38:06 -04:00
src Add README and example 2016-05-14 17:36:28 -04:00
tests Add README and example 2016-05-14 17:36:28 -04:00
_tags Finalize the library 2016-05-14 19:07:50 +00:00
Makefile Add README and example 2016-05-14 17:36:28 -04:00
META Fix META file 2016-05-14 19:13:56 +00:00
opam Fix opam constraint on ocaml version 2016-05-17 23:48:07 +00:00
README.md Add link to Doc 2016-05-14 17:42:00 -04:00

Base 58 Encoding OCaml library

This library provide encoding and decoding function for the Base 58 encoding.

Install

opam install base58 

Documentation

OCamldoc generated doc can be found here.

Example

let () = 
  let alphabet = B58.make_alphabet "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz" in 
  let data     = Bytes.of_string "Hello World"  in 
  let b58      = B58.encode alphabet data in 
  print_endline @@ Bytes.to_string b58

Then to compile:

ocamlbuild -use-ocamlfind -pkgs base58 example01.native