Base58 (b58 v1.0.3) View Source
Base58
provides two functions: encode/1
and decode/1
.
encode/1
takes an Elixir binary (String, Number, etc.)
and returns a Base58 encoded String.
decode/1
receives a Base58 encoded String and returns a binary.
Link to this section Summary
Functions
decode/1
decodes the given Base58 string back to binary.
decode_to_int/1
decodes the given Base58 string back to an Integer.
Examples
iex> Base58.encode("hello") "Cn8eVZg"
Link to this section Functions
decode/1
decodes the given Base58 string back to binary.
Examples
iex> Base58.encode("hello") |> Base58.decode() "hello"
decode_to_int/1
decodes the given Base58 string back to an Integer.
Examples
iex> Base58.encode(42) |> Base58.decode_to_int() 42
Examples
iex> Base58.encode("hello") "Cn8eVZg"
iex> Base58.encode(42) "4yP"