{
  "id": "p2traddr",
  "kind": "datatype",
  "status": "draft",
  "name": "Bitcoin P2TR address (Taproot, bc1p)",
  "doc": "Taproot address of the pay-to-taproot (P2TR) type: witness version 1 with a 32-byte x-only public key (BIP 341), encoded with Bech32m (BIP 350), not Bech32. Mainnet addresses have the prefix bc1p and 62 characters. Lower or upper case, never mixed. Testnet addresses (tb1p) are not matched.",
  "parent": "crypto_address",
  "is_pii": false,
  "categories": [
    "cryptocurrency"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^(?:bc1p[02-9ac-hj-np-z]{58}|BC1P[02-9AC-HJ-NP-Z]{58})$",
  "checksum": "bech32m",
  "examples": [
    {
      "value": "bc1p0xlxvlhemja6c4dqv22uapctqupfhlxm9h8z3k2e72q4k9hcz7vqzk5jj0",
      "description": "BIP 350 test vector",
      "valid": true
    },
    {
      "value": "bc1p0xlxvlhemja6c4dqv22uapctqupfhlxm9h8z3k2e72q4k9hcz7vqzk5jj2",
      "description": "last character changed, the checksum fails",
      "valid": false
    },
    {
      "value": "bc1qrp33g0q5c5txsp9arysrx4k6zdkfs4nce4xj0gdcccefvpysxf3qccfmv3",
      "description": "witness version 0 address (p2wshaddr)",
      "valid": false
    }
  ],
  "mappings": {
    "presidio": "CRYPTO"
  },
  "links": [
    {
      "type": "doc",
      "url": "https://github.com/bitcoin/bips/blob/master/bip-0350.mediawiki"
    },
    {
      "type": "doc",
      "url": "https://github.com/bitcoin/bips/blob/master/bip-0341.mediawiki"
    },
    {
      "type": "other",
      "url": "https://en.bitcoin.it/wiki/Taproot"
    }
  ],
  "translations": {
    "ru": {
      "name": "Адрес Bitcoin P2TR (Taproot, bc1p)"
    }
  },
  "detected_by": {
    "tools": [
      "presidio"
    ]
  },
  "quality": {
    "score": 93,
    "missing": [
      "second example"
    ]
  },
  "source": {
    "path": "data/datatypes/any/cryptocurrency/p2traddr.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/cryptocurrency/p2traddr.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/cryptocurrency/p2traddr.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/p2traddr",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/p2traddr.json"
  }
}