Datatypes

Bitcoin P2PKH address

ID p2pkhaddr

DatatypeNot PIIidentifier

Legacy Bitcoin address of the pay-to-public-key-hash (P2PKH) type. It is the Base58Check encoding of the version byte 0 and the 20-byte RIPEMD-160 hash of the SHA-256 hash of a public key, so it always starts with 1. Most such addresses have 33 or 34 characters; each leading zero byte of the hash adds a 1 and makes the address shorter. Testnet P2PKH addresses start with m or n and are not matched.

Parent datatype
Cryptocurrency address crypto_address
Categories
Cryptocurrency
Countries
Global (not tied to a country)
Languages
Common to most languages
AutoType benchmark
bitcoin
Presidio
CRYPTO
python-stdnum
stdnum.bitcoin
Check digit
base58check
Quality
93/100 · missing: authoritative source link
Metacrafter rules
2 rules (1 by field name, 1 by value)
Supported by tools
Auto-Type, DataPrep, Great Expectations Semantic Types Expectations, metacrafter, OpenMetadata auto-classification, Microsoft Presidio, python-stdnum

Regular expression

^1[1-9A-HJ-NP-Za-km-z]{25,33}$

Python re syntax.

Examples

ValueDescription
1PMycacnJaSqwwJqjawXBErnLsZ7RkXUAsAddress derived step by step in the Bitcoin Wiki article on version 1 addresses
1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2Example address of the Bitcoin Wiki article on invoice addresses
1PMycacnJaSqwwJqjawXBErnLsZ7RkXUAt invalidlast character changed, the checksum fails
3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy invalidP2SH address (p2shaddr)

Translations

LanguageNameDescription
RussianАдрес Bitcoin P2PKH

Sources

Use this record