Tradehub.ExtendedKey.derive_child
You're seeing just the function
derive_child
, go back to Tradehub.ExtendedKey module for more information.
Specs
Derives a child extended key with a given index
Examples
iex> seed = Base.decode16!("81D0E7581BF0C55B2941B2295EB4FD1F9C52D080F8D58A3DB634DE80200BA238")
iex> master = ExtendedKey.master(seed)
iex> ExtendedKey.derive_child(master, 0)
%ExtendedKey{
chain_code: <<81, 134, 58, 230, 254, 116, 95, 133, 120,
201, 148, 202, 21, 162, 172, 251, 172, 207, 11, 123, 23,
163, 17, 104, 229, 164, 4, 203, 82, 235, 182, 98>>,
child_num: 0,
depth: 1,
key: <<221, 183, 68, 24, 208, 227, 114, 203, 222, 172, 41,
97, 113, 120, 208, 123, 220, 241, 248, 18, 174, 129, 46,
20, 141, 240, 111, 137, 78, 163, 176, 38>>,
parent_fingerprint: <<197, 217, 101, 7>>,
version: <<4, 136, 173, 228>>
}