{
  "id": "p2pkhaddr",
  "kind": "datatype",
  "status": "stable",
  "name": "Bitcoin P2PKH address",
  "doc": "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": "crypto_address",
  "is_pii": false,
  "categories": [
    "cryptocurrency"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^1[1-9A-HJ-NP-Za-km-z]{25,33}$",
  "checksum": "base58check",
  "examples": [
    {
      "value": "1PMycacnJaSqwwJqjawXBErnLsZ7RkXUAs",
      "description": "Address derived step by step in the Bitcoin Wiki article on version 1 addresses",
      "valid": true
    },
    {
      "value": "1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2",
      "description": "Example address of the Bitcoin Wiki article on invoice addresses",
      "valid": true
    },
    {
      "value": "1PMycacnJaSqwwJqjawXBErnLsZ7RkXUAt",
      "description": "last character changed, the checksum fails",
      "valid": false
    },
    {
      "value": "3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy",
      "description": "P2SH address (p2shaddr)",
      "valid": false
    }
  ],
  "mappings": {
    "autotype": "bitcoin",
    "presidio": "CRYPTO",
    "stdnum": "bitcoin"
  },
  "links": [
    {
      "type": "other",
      "url": "https://en.bitcoin.it/wiki/Technical_background_of_version_1_Bitcoin_addresses"
    },
    {
      "type": "other",
      "url": "https://en.bitcoin.it/wiki/Invoice_address"
    }
  ],
  "translations": {
    "ru": {
      "name": "Адрес Bitcoin P2PKH"
    }
  },
  "detected_by": {
    "tools": [
      "autotype",
      "dataprep",
      "greatexpectations",
      "metacrafter",
      "openmetadata",
      "presidio",
      "pythonstdnum"
    ],
    "metacrafter_rules": [
      {
        "rule": "p2pkhaddr",
        "type": "data",
        "match": "ppr",
        "file": "common/cryptocurrency.yaml"
      },
      {
        "rule": "p2pkhaddr_by_field",
        "type": "field",
        "match": "text",
        "file": "common/cryptocurrency.yaml"
      }
    ]
  },
  "quality": {
    "score": 93,
    "missing": [
      "authoritative source link"
    ]
  },
  "source": {
    "path": "data/datatypes/any/cryptocurrency/p2pkhaddr.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/cryptocurrency/p2pkhaddr.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/cryptocurrency/p2pkhaddr.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/p2pkhaddr",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/p2pkhaddr.json"
  }
}