Tradehub.ExtendedKey.from_string

You're seeing just the function from_string, go back to Tradehub.ExtendedKey module for more information.

Specs

from_string(key_string :: String.t()) :: key()

Generates ExtendedKey instance from given key string

Examples

iex> ExtendedKey.from_string("xpub6934X9tFysrrNCTyWyFPkXPJRRY6r32gBYxAdaXCqqMhoPTEiwU9dxx4Hyc3PURqGE2sZBVq5m6gAYdr9cJoqZfB4vxZ4iFAtDNmacdccDn")
%ExtendedKey{
  chain_code: <<198, 248, 135, 0, 62, 141, 53, 185, 57, 202,
    175, 125, 253, 73, 139, 246, 205, 111, 67, 194, 153,
    100, 132, 144, 106, 181, 125, 11, 98, 78, 126, 33>>,
  child_num: 0,
  depth: 1,
  key: <<3, 56, 201, 189, 255, 96, 60, 207, 74, 104, 151,
    220, 159, 3, 155, 27, 1, 50, 33, 253, 125, 240, 201, 9,
    55, 77, 5, 200, 44, 30, 112, 6, 104>>,
  parent_fingerprint: <<156, 35, 137, 101>>,
  version: <<4, 136, 178, 30>>
}