[#CExtPubKey] = CExtPubKey :mrdocs: A BIP32 extended public key: a public key plus the chain code and metadata needed for derivation. == Synopsis Declared in `<pubkey.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct CExtPubKey; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:CExtPubKey/Decode.adoc[`Decode`] | Deserialize this extended public key from the BIP32 byte encoding (without version). | xref:CExtPubKey/DecodeWithVersion.adoc[`DecodeWithVersion`] | Deserialize this extended public key from the BIP32 byte encoding including the version prefix. | xref:CExtPubKey/Derive.adoc[`Derive`] | Derive a BIP32 child extended public key. | xref:CExtPubKey/Encode.adoc[`Encode`] | Serialize this extended public key into the BIP32 byte encoding (without version). | xref:CExtPubKey/EncodeWithVersion.adoc[`EncodeWithVersion`] | Serialize this extended public key into the BIP32 byte encoding including the version prefix. | xref:CExtPubKey/id_key_fingerprint.adoc[`id_key_fingerprint`] | Compute the fingerprint of this key's own public key. |=== == Data Members [cols="1,4"] |=== | Name| Description | xref:CExtPubKey/chaincode.adoc[`chaincode`] | Chain code accompanying the public key. | xref:CExtPubKey/fingerprint.adoc[`fingerprint`] | Fingerprint of the parent key. | xref:CExtPubKey/nChild.adoc[`nChild`] | Child index used to derive this key from its parent. | xref:CExtPubKey/nDepth.adoc[`nDepth`] | Depth of this key in the BIP32 derivation tree. | xref:CExtPubKey/pubkey.adoc[`pubkey`] | The extended public key material. | xref:CExtPubKey/version.adoc[`version`] | Version bytes prefixed to the serialized extended key. |=== == Friends [cols="1,4"] |=== | Name| Description | `xref:operator_lt-0e.adoc[operator<]` | Order two extended public keys by public key, then by chain code. | `xref:operator_eq-012.adoc[operator==]` | Compare two extended public keys for equality of all fields (excluding version). |=== == Non-Member Functions [cols="1,4"] |=== | Name| Description | xref:CreateMuSig2SyntheticXpub.adoc[`CreateMuSig2SyntheticXpub`] | Construct the BIP 328 synthetic xpub for a pubkey | xref:DecodeExtPubKey.adoc[`DecodeExtPubKey`] | Decode a Base58Check‐encoded extended public key. | xref:EncodeExtPubKey.adoc[`EncodeExtPubKey`] | Encode an extended public key in Base58Check format. | xref:wallet/GenerateWalletDescriptor.adoc[`wallet::GenerateWalletDescriptor`] | Builds a new wallet descriptor for the given key and output type. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#