[#CExtKey]
= CExtKey
:mrdocs:

A BIP32 extended private key&colon; a private key plus the chain code and metadata needed for derivation&period;

== Synopsis

Declared in `&lt;key&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct CExtKey;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:CExtKey/2constructor-0b.adoc[`CExtKey`]         [.small]#[constructor]#
| Constructors
| xref:CExtKey/Decode.adoc[`Decode`] 
| Deserialize this extended key from the BIP32 byte encoding&period;
| xref:CExtKey/Derive.adoc[`Derive`] 
| Derive a BIP32 child extended key&period;
| xref:CExtKey/Encode.adoc[`Encode`] 
| Serialize this extended key into the BIP32 byte encoding&period;
| xref:CExtKey/Neuter.adoc[`Neuter`] 
| Derive the extended public key corresponding to this extended private key&period;
| xref:CExtKey/SetSeed.adoc[`SetSeed`] 
| Initialize this extended key as a master key from a seed&period;
| xref:CExtKey/id_key_fingerprint.adoc[`id&lowbar;key&lowbar;fingerprint`] 
| Compute the fingerprint of this key&apos;s own public key&period;
|===


== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:CExtKey/chaincode.adoc[`chaincode`] 
| Chain code accompanying the private key&period;
| xref:CExtKey/fingerprint.adoc[`fingerprint`] 
| Fingerprint of the parent key&period;
| xref:CExtKey/key.adoc[`key`] 
| The extended private key material&period;
| xref:CExtKey/nChild.adoc[`nChild`] 
| Child index used to derive this key from its parent&period;
| xref:CExtKey/nDepth.adoc[`nDepth`] 
| Depth of this key in the BIP32 derivation tree&period;
|===


== Friends

[cols="1,4"]
|===
| Name| Description
| `xref:operator_eq-005.adoc[operator&equals;&equals;]`
| Compare two extended keys for equality of all fields&period;
|===

== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:DecodeExtKey.adoc[`DecodeExtKey`]
| Decode a Base58Check&hyphen;encoded extended private key&period;
| xref:DeriveExtKey.adoc[`DeriveExtKey`]
| Get extended key and origin info for a given path
| xref:EncodeExtKey.adoc[`EncodeExtKey`]
| Encode an extended private key in Base58Check format&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
