Datatypes

BIP-32 extended key (xpub, xprv)

ID bip32addr

DatatypeNot PIIidentifier

Extended public or private key of a hierarchical deterministic (HD) wallet in the serialization of BIP-32: 4 version bytes, depth, fingerprint of the parent key, child number, 32-byte chain code and 33-byte key data, followed by a 4-byte checksum and encoded with Base58Check into 111 characters. Mainnet keys start with xpub (public) or xprv (private), testnet keys with tpub or tprv. An xprv value is a wallet secret that controls all funds below it; an xpub value reveals every address of its branch. Keys with the prefixes of SLIP-132 (ypub, zpub and others) use the same structure but are not matched here.

Categories
Cryptocurrency, Secrets and credentials (passwords, keys, tokens)
Countries
Global (not tied to a country)
Languages
Common to most languages
Check digit
base58check
Quality
90/100 · missing: mapping (Wikidata, Schema.org, ...)
Metacrafter rules
3 rules (1 by field name, 2 by value)
Supported by tools
metacrafter

Regular expression

^[xt](?:pub|prv)[1-9A-HJ-NP-Za-km-z]{107}$

Python re syntax.

Examples

ValueDescription
xpub661MyMwAqRbcFtXgS5sYJABqqG9YLmC4Q1Rdap9gSE8NqtwybGhePY2gZ29ESFjqJoCu1Rupje8YtGqsefD265TMg7usUDFdp6W1EGMcet8BIP-32 test vector 1, extended public key of the master node (chain m)
xprv9s21ZrQH143K3QTDL4LXw2F7HEK3wJUD2nW2nRk4stbPy6cq3jPPqjiChkVvvNKmPGJxWUtg6LnF5kejMRNNU3TGtRBeJgk33yuGBxrMPHiBIP-32 test vector 1, extended private key of the master node (chain m)
xpub661MyMwAqRbcFtXgS5sYJABqqG9YLmC4Q1Rdap9gSE8NqtwybGhePY2gZ29ESFjqJoCu1Rupje8YtGqsefD265TMg7usUDFdp6W1EGMcet9 invalidtest vector with the last character changed, the checksum fails

Translations

LanguageNameDescription
RussianРасширенный ключ BIP-32 (xpub, xprv)

Sources

Use this record