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)
wifaddrcompdata, common/cryptocurrency.yamlwifaddrcomp_by_fieldfield, common/cryptocurrency.yaml
- Supported by tools
- metacrafter
Regular expression
^[KL][1-9A-HJ-NP-Za-km-z]{51}$
Python re syntax.
Examples
| Value | Description |
|---|---|
| L1aW4aubDFB7yfras2S1mN3bqg9nwySY8nkoLmJebSLD5BWv3ENZ | Example from https://allprivatekeys.com/bitcoin-address-format |
| KwdMAjGmerYanjeui5SHS7JkmpZvVipYvB2LJGU1ZxJwYvP98617 | Sample key of the Bitcoin Wiki article on WIF with the compression flag; never import or fund it |
| L1aW4aubDFB7yfras2S1mN3bqg9nwySY8nkoLmJebSLD5BWv3ENa invalid | last character changed, the checksum fails |
| 5HueCGU8rMjxEXxiPuD5BDku4MkFqeZyd4dZ1jvhTVqvbTLvyTJ invalid | key for an uncompressed public key (wifaddruncomp) |
Translations
| Language | Name | Description |
|---|---|---|
| Russian | Закрытый ключ Bitcoin в формате WIF (сжатый открытый ключ) |
Sources
- other: https://en.bitcoin.it/wiki/Wallet_import_format
- other: https://allprivatekeys.com/bitcoin-address-format
Use this record
- Page URL:
http://registry.apicrafter.io/datatype/wifaddrcomp - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/cryptocurrency/wifaddrcomp.yamlon GitHub