Datatypes

Bitcoin private key in WIF (compressed public key)

ID wifaddrcomp

DatatypeNot PIIidentifier

Bitcoin private key in Wallet Import Format (WIF) for a compressed public key: the Base58Check encoding of the byte 0x80, the 32-byte private key and the flag byte 0x01. Such keys have 52 characters and start with K or L. The value is a secret: whoever knows it can spend the funds. Testnet keys start with c and are not matched; keys for an uncompressed public key are wifaddruncomp.

Parent datatype
Private key or wallet seed (generic) private_key
Categories
Cryptocurrency, Secrets and credentials (passwords, keys, tokens)
Countries
Global (not tied to a country)
Languages
Common to most languages
Check digit
base58check
Quality
83/100 · missing: authoritative source link, mapping (Wikidata, Schema.org, ...)
Metacrafter rules
2 rules (1 by field name, 1 by value)
Supported by tools
metacrafter

Regular expression

^[KL][1-9A-HJ-NP-Za-km-z]{51}$

Python re syntax.

Examples

ValueDescription
L1aW4aubDFB7yfras2S1mN3bqg9nwySY8nkoLmJebSLD5BWv3ENZExample from https://allprivatekeys.com/bitcoin-address-format
KwdMAjGmerYanjeui5SHS7JkmpZvVipYvB2LJGU1ZxJwYvP98617Sample key of the Bitcoin Wiki article on WIF with the compression flag; never import or fund it
L1aW4aubDFB7yfras2S1mN3bqg9nwySY8nkoLmJebSLD5BWv3ENa invalidlast character changed, the checksum fails
5HueCGU8rMjxEXxiPuD5BDku4MkFqeZyd4dZ1jvhTVqvbTLvyTJ invalidkey for an uncompressed public key (wifaddruncomp)

Translations

LanguageNameDescription
RussianЗакрытый ключ Bitcoin в формате WIF (сжатый открытый ключ)

Sources

Use this record