class TezosClient::Tools::ConvertToHash::Key
Public Instance Methods
decode()
click to toggle source
# File lib/tezos_client/tools/convert_to_hash/key.rb, line 9 def decode if tmp_data.start_with?("00") encode_tz(:edpk, tmp_data[2..-1]) elsif tmp_data.start_with?("01") encode_tz(:sppk, tmp_data[2..-1]) elsif tmp_data.start_with?("02") encode_tz(:p2pk, tmp_data[2..-1]) else tmp_data end end
tmp_data()
click to toggle source
# File lib/tezos_client/tools/convert_to_hash/key.rb, line 21 def tmp_data @tmp_data ||= data[:bytes] || data[:string] end