{
  "slug": "hd-key-derive",
  "name": "gizza-ai/hd-key-derive",
  "version": "0.1.0",
  "title": "HD Key Derive — BIP32 xprv/xpub and Bitcoin Address — gizza.ai",
  "description": "Derive BIP32 child private keys, xpubs, WIF keys, and Bitcoin mainnet/testnet P2PKH or SegWit addresses from a seed or xprv. Private and offline in your browser.",
  "tags": [
    "bip32",
    "hd wallet",
    "xprv",
    "xpub",
    "bitcoin",
    "wallet",
    "derivation path",
    "p2pkh",
    "segwit",
    "wif"
  ],
  "category": "utilities",
  "urls": {
    "page": "https://gizza.ai/tools/hd-key-derive/",
    "markdown": "https://gizza.ai/tools/hd-key-derive/index.md",
    "descriptor": "https://gizza.ai/tools/hd-key-derive/tool.json",
    "deep_link_example": "https://gizza.ai/tools/hd-key-derive/?seed=000102030405060708090a0b0c0d0e0f&xprv=xprv9s21ZrQH143K...&path=m%2F44%27%2F0%27%2F0%27%2F0%2F0&network=mainnet&address_type=p2pkh"
  },
  "cli": "gizza tool hd-key-derive \"000102030405060708090a0b0c0d0e0f\"",
  "tool": {
    "description": "Derive a BIP32 hierarchical-deterministic child private key from either a hex seed or an xprv/tprv plus a path such as m/44'/0'/0'/0/0. Returns xprv/xpub, raw private/public keys, WIF, fingerprint, and a Bitcoin mainnet/testnet P2PKH, wrapped SegWit, or native SegWit address. Runs locally; provide exactly one of seed or xprv.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "address_type": {
          "default": "p2pkh",
          "description": "Address format to render for the derived public key: legacy 'p2pkh', wrapped SegWit 'p2sh_p2wpkh', or native SegWit 'p2wpkh'.",
          "enum": [
            "p2pkh",
            "p2sh_p2wpkh",
            "p2wpkh"
          ],
          "type": "string"
        },
        "network": {
          "default": "mainnet",
          "description": "Bitcoin network for version bytes and address prefixes: 'mainnet' (xprv/xpub, 1/3/bc1) or 'testnet' (tprv/tpub, m/n/2/tb1).",
          "enum": [
            "mainnet",
            "testnet"
          ],
          "type": "string"
        },
        "path": {
          "description": "BIP32 derivation path such as m, m/0', m/44'/0'/0'/0/0. Hardened segments may end with ', h, or H.",
          "type": "string"
        },
        "seed": {
          "description": "Optional BIP32 seed as hex (16–64 bytes, often produced by the bip39-seed-derive tool). Provide exactly one of seed or xprv.",
          "type": "string"
        },
        "xprv": {
          "description": "Optional BIP32 extended private key (xprv/tprv) to start from instead of a seed. Provide exactly one of seed or xprv.",
          "type": "string"
        }
      },
      "required": [
        "path"
      ],
      "type": "object"
    }
  }
}