module Base58::Private

Public Class Methods

int_to_hex(int) click to toggle source
# File lib/base58.rb, line 70
def self.int_to_hex int
  hex = int.to_s(16)
  # The hex string must always consist of an even number of characters,
  # otherwise the pack() parsing will be misaligned.
  (hex.length % 2 == 0) ? hex : ('0'+hex)
end