code: function base58(buf) {
    var alphabet = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
    var base = alphabet.length;
    var result = [];
    var divident = new Buffer(buf.length);
  
    buf.copy(divident);
  
    while (!buffer_empty(divident)) {
      result.unshift(alphabet[divide(divident, base)]);
    }
  
    for (var i = 0; i < buf.length && !buf[i]; i++) {
      result.unshift(alphabet[0]);
    }
  
    return result.join('');
  }
docs: internal
  base58(buf) -> String
  - buf(Buffer): buffer to encode
  
  Encodes buffer to base58 format