Module: Base58::Private
- Defined in:
- lib/shipengine/utils/base58.rb
Class Method Summary collapse
Class Method Details
.int_to_hex(int) ⇒ Object
96 97 98 99 100 101 |
# File 'lib/shipengine/utils/base58.rb', line 96 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.even? ? hex : "0#{hex}" end |