Bitcoinex.ExtendedKey (bitcoinex v0.1.6) View Source
Contains an an extended key as documented in BIP 32.
Link to this section Summary
Functions
derive_child uses a public or private key xkey to derive the public or private key at index idx. public key -> public child private key -> private child
derive_extended_key uses an extended xkey and a derivation path to derive the extended key at that path
derive_private_child uses a private key xkey to derive the private key at index idx
derive_public_child uses a public or private key xkey to derive the public key at index idx
display returns the extended key as a string
network_from_extended_key returns :testnet or :mainnet depending on the network prefix of the key.
parse_extended_key takes binary or string representation of an extended key and parses it to an extended key object
seed_to_master_private_key transforms a bip32 seed into a master extended private key
serialize_extended_key takes an extended key and returns the binary
to_extended_public_key takes an extended private key and returns an extended public key
to_private_key takes an extended private key and returns the contained private key.
to_public_key takes an extended key xkey and returns the public key.
Link to this section Types
Specs
Link to this section Functions
Specs
derive_child_key(t(), non_neg_integer()) :: {:ok, t()} | {:error, String.t()}
derive_child uses a public or private key xkey to derive the public or private key at index idx. public key -> public child private key -> private child
Specs
derive_extended_key(t() | binary(), Bitcoinex.ExtendedKey.DerivationPath.t()) :: {:ok, t()} | {:error, String.t()}
derive_extended_key uses an extended xkey and a derivation path to derive the extended key at that path
Specs
derive_private_child(t(), non_neg_integer()) :: {:ok, t()} | {:error, String.t()}
derive_private_child uses a private key xkey to derive the private key at index idx
Specs
derive_public_child(t(), non_neg_integer()) :: {:ok, t()} | {:error, String.t()}
derive_public_child uses a public or private key xkey to derive the public key at index idx
Specs
display returns the extended key as a string
Specs
Specs
Specs
Specs
Specs
Specs
network_from_extended_key returns :testnet or :mainnet depending on the network prefix of the key.
Specs
parse_extended_key takes binary or string representation of an extended key and parses it to an extended key object
Specs
seed_to_master_private_key transforms a bip32 seed into a master extended private key
Specs
serialize_extended_key takes an extended key and returns the binary
Specs
to_extended_public_key takes an extended private key and returns an extended public key
Specs
to_private_key(t()) :: {:ok, Bitcoinex.Secp256k1.PrivateKey.t()} | {:error, String.t()}
to_private_key takes an extended private key and returns the contained private key.
Specs
to_public_key(t()) :: {:ok, Bitcoinex.Secp256k1.Point.t()} | {:error, String.t()}
to_public_key takes an extended key xkey and returns the public key.