---
id: "wifaddruncomp"
kind: "datatype"
status: "stable"
is_pii: false
categories: ["cryptocurrency", "secrets"]
langs: ["common"]
quality: 83
url: "http://registry.apicrafter.io/datatype/wifaddruncomp"
---

# Bitcoin private key in WIF (uncompressed public key) (`wifaddruncomp`)

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

- Parent datatype: `private_key`
- Personal data (PII): no
- Categories: Cryptocurrency (cryptocurrency), Secrets and credentials (passwords, keys, tokens) (secrets)
- Countries: global
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^5[HJK][1-9A-HJ-NP-Za-km-z]{49}$
```

Check digit algorithm: `base58check`

## Examples

- `5HueCGU8rMjxEXxiPuD5BDku4MkFqeZyd4dZ1jvhTVqvbTLvyTJ` — Sample key of the Bitcoin Wiki article on WIF; never import or fund it
- `5Hwgr3u458GLafKBgxtssHSPqJnYoGrSzgQsPwLFhLNYskDPyyA` — Example from https://allprivatekeys.com/bitcoin-address-format
- `5HueCGU8rMjxEXxiPuD5BDku4MkFqeZyd4dZ1jvhTVqvbTLvyTK` (invalid example) — last character changed, the checksum fails

## Metacrafter rules

2 rules: 1 match the field name, 1 match values.

- `wifaddruncomp` (data, `common/cryptocurrency.yaml`)
- `wifaddruncomp_by_field` (field, `common/cryptocurrency.yaml`)

## Supported by tools

- `metacrafter`

## Translations

- ru: Закрытый ключ Bitcoin в формате WIF (несжатый открытый ключ)

## Sources

- other: <https://en.bitcoin.it/wiki/Wallet_import_format>
- other: <https://allprivatekeys.com/bitcoin-address-format>

## Quality

Score 83/100. Missing: authoritative source link, mapping (Wikidata, Schema.org, ...).

JSON: <http://registry.apicrafter.io/api/v1/datatypes/wifaddruncomp.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/cryptocurrency/wifaddruncomp.yaml>
