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)
bip32addr_by_fieldfield, common/cryptocurrency.yamlbip32addr_xprvdata, common/cryptocurrency.yamlbip32addr_xpubdata, common/cryptocurrency.yaml
- Supported by tools
- metacrafter
Regular expression
^[xt](?:pub|prv)[1-9A-HJ-NP-Za-km-z]{107}$
Python re syntax.
Examples
| Value | Description |
|---|---|
| xpub661MyMwAqRbcFtXgS5sYJABqqG9YLmC4Q1Rdap9gSE8NqtwybGhePY2gZ29ESFjqJoCu1Rupje8YtGqsefD265TMg7usUDFdp6W1EGMcet8 | BIP-32 test vector 1, extended public key of the master node (chain m) |
| xprv9s21ZrQH143K3QTDL4LXw2F7HEK3wJUD2nW2nRk4stbPy6cq3jPPqjiChkVvvNKmPGJxWUtg6LnF5kejMRNNU3TGtRBeJgk33yuGBxrMPHi | BIP-32 test vector 1, extended private key of the master node (chain m) |
| xpub661MyMwAqRbcFtXgS5sYJABqqG9YLmC4Q1Rdap9gSE8NqtwybGhePY2gZ29ESFjqJoCu1Rupje8YtGqsefD265TMg7usUDFdp6W1EGMcet9 invalid | test vector with the last character changed, the checksum fails |
Translations
| Language | Name | Description |
|---|---|---|
| Russian | Расширенный ключ BIP-32 (xpub, xprv) |
Sources
- doc: https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki
- other: https://en.bitcoin.it/wiki/BIP_0032
Use this record
- Page URL:
http://registry.apicrafter.io/datatype/bip32addr - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/cryptocurrency/bip32addr.yamlon GitHub