Sha256: 028d5eb3a1aa097ddaf7f45db46421432fa89ad8784d9e109386e31433f294e8

Contents?: true

Size: 270 Bytes

Versions: 8

Compression:

Stored size: 270 Bytes

Contents

module Bip44
  module Utils
    def self.hex_to_bin(string)
      RLP::Utils.decode_hex string
    end

    def self.bin_to_hex(string)
      RLP::Utils.encode_hex string
    end

    def self.prefix_hex(hex)
      hex.match(/\A0x/) ? hex : "0x#{hex}"
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
bip44-0.2.10 lib/bip44/utils.rb
bip44-0.2.9 lib/bip44/utils.rb
bip44-0.2.8 lib/bip44/utils.rb
bip44-0.2.7 lib/bip44/utils.rb
bip44-0.2.6 lib/bip44/utils.rb
bip44-0.2.5 lib/bip44/utils.rb
bip44-0.2.4 lib/bip44/utils.rb
bip44-0.2.3 lib/bip44/utils.rb