mruby Base58 encoding
C Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
mrblib
src
test
.travis.yml
.travis_build_config.rb
LICENSE
README.md
mrbgem.rake

README.md

mruby-base58

mruby Base58 encoding

Base58.encode "hello!"  
  # => "TZcKu5dH"
  
Base58.encode "hello!", Base58::BITCOIN_SYMBOLS  
  # => "tzCkV5Di"
  
Base58.encode "hello!", "ABCDEFGHJKLMNPQRSTUVWXYZ123456789abcdefghijkmnopqrstuvwxyz"
  # => "tzMk5ENi"
Base58.decode "TZcKu5dH"
  # => "hello!"
  
Base58.decode "tzCkV5Di", Base58::BITCOIN_SYMBOLS  
  # => "hello!"
  
Base58.decode "tzMk5ENi", "ABCDEFGHJKLMNPQRSTUVWXYZ123456789abcdefghijkmnopqrstuvwxyz"
  # => "hello!"