module Zilliqa::Util
Public Instance Methods
decode_hex(s)
click to toggle source
# File lib/zilliqa/util/util.rb, line 13 def decode_hex(s) [s].pack('H*') end
encode_hex(b)
click to toggle source
# File lib/zilliqa/util/util.rb, line 9 def encode_hex(b) b.unpack('H*').first end
pack(a, b)
click to toggle source
# File lib/zilliqa/util/util.rb, line 5 def pack(a, b) a << 16 + b end