{
  "provenance": {
    "generated_by": "verifier/vectors/generate.ts",
    "from": "@masterdb/shared (envelope, ids, records, projection) — the implementation the services sign with",
    "generated_at": "2026-10-04T12:46:02.755Z",
    "note": "Test keys only, derived from public seeds. ECDSA and ML-DSA signatures are randomised, so a re-run changes signature bytes; commit a re-run with its reason."
  },
  "description": "RFC 6962 inclusion proofs that every verifier must ACCEPT.",
  "cases": [
    {
      "id": "merkle/7-leaves-index-0",
      "description": "RFC 6962: leaf data → 0x00 leaf hash; audit path to the root of a 7-leaf tree.",
      "input": {
        "leaf_base64": "bGVhZiAw",
        "leaf_index": 0,
        "tree_size": 7,
        "proof": [
          "sha256:cb5a3ce862c3e321f3f7df6d2690549e936a8e377135aae9f3d69f691f547d5b",
          "sha256:4f7494071ca382a5c5067cc41077a999fd7722e06a26aa9de771be933dc1021d",
          "sha256:01571b557bc70672650d467c7bad8337e09a7f354a72051f23b43a782c0f48e6"
        ],
        "root": "sha256:5a61fc2b54f9cfa71774f2432143dd40c6cb2b11947faf65a7d3da5cb65199c8"
      },
      "expect": {
        "valid": true
      }
    },
    {
      "id": "merkle/7-leaves-index-1",
      "description": "RFC 6962: leaf data → 0x00 leaf hash; audit path to the root of a 7-leaf tree.",
      "input": {
        "leaf_base64": "bGVhZiAx",
        "leaf_index": 1,
        "tree_size": 7,
        "proof": [
          "sha256:1bb97dcc21635d47e2663efdfd0a174686d98dd701352dd2cd06e8b43fd3d305",
          "sha256:4f7494071ca382a5c5067cc41077a999fd7722e06a26aa9de771be933dc1021d",
          "sha256:01571b557bc70672650d467c7bad8337e09a7f354a72051f23b43a782c0f48e6"
        ],
        "root": "sha256:5a61fc2b54f9cfa71774f2432143dd40c6cb2b11947faf65a7d3da5cb65199c8"
      },
      "expect": {
        "valid": true
      }
    },
    {
      "id": "merkle/7-leaves-index-2",
      "description": "RFC 6962: leaf data → 0x00 leaf hash; audit path to the root of a 7-leaf tree.",
      "input": {
        "leaf_base64": "bGVhZiAy",
        "leaf_index": 2,
        "tree_size": 7,
        "proof": [
          "sha256:58bd1496e1684aac9201c2e687ee7ae4f51c96a8b0d81ef3583628b93d3cd345",
          "sha256:fc5f6b88ff8554f75bb2f9e6f39c31b1936d44b69276edf7b1205a955b9761e3",
          "sha256:01571b557bc70672650d467c7bad8337e09a7f354a72051f23b43a782c0f48e6"
        ],
        "root": "sha256:5a61fc2b54f9cfa71774f2432143dd40c6cb2b11947faf65a7d3da5cb65199c8"
      },
      "expect": {
        "valid": true
      }
    },
    {
      "id": "merkle/7-leaves-index-3",
      "description": "RFC 6962: leaf data → 0x00 leaf hash; audit path to the root of a 7-leaf tree.",
      "input": {
        "leaf_base64": "bGVhZiAz",
        "leaf_index": 3,
        "tree_size": 7,
        "proof": [
          "sha256:ab37ba34d1dfe29015de717a6d5764a8fb029c3a7a0f5b64b93b54351885bf7c",
          "sha256:fc5f6b88ff8554f75bb2f9e6f39c31b1936d44b69276edf7b1205a955b9761e3",
          "sha256:01571b557bc70672650d467c7bad8337e09a7f354a72051f23b43a782c0f48e6"
        ],
        "root": "sha256:5a61fc2b54f9cfa71774f2432143dd40c6cb2b11947faf65a7d3da5cb65199c8"
      },
      "expect": {
        "valid": true
      }
    },
    {
      "id": "merkle/7-leaves-index-4",
      "description": "RFC 6962: leaf data → 0x00 leaf hash; audit path to the root of a 7-leaf tree.",
      "input": {
        "leaf_base64": "bGVhZiA0",
        "leaf_index": 4,
        "tree_size": 7,
        "proof": [
          "sha256:95adf15b7ef5db67386a8bafbefee4d145662afa450740e1868553e8348ed3a0",
          "sha256:fb7f869ce8b7b51fdf719fc8c21a4736c98cc160a825606a81f78a7f4d2261d9",
          "sha256:4f631084a157c54f54fcfb23ff5eb8650c4ba160c295bb13a9832b109d52677e"
        ],
        "root": "sha256:5a61fc2b54f9cfa71774f2432143dd40c6cb2b11947faf65a7d3da5cb65199c8"
      },
      "expect": {
        "valid": true
      }
    },
    {
      "id": "merkle/7-leaves-index-5",
      "description": "RFC 6962: leaf data → 0x00 leaf hash; audit path to the root of a 7-leaf tree.",
      "input": {
        "leaf_base64": "bGVhZiA1",
        "leaf_index": 5,
        "tree_size": 7,
        "proof": [
          "sha256:83115f8947955fafdc2a27e7f4c0854bbd8da27bb1b3e3405db571c9af8dbe1a",
          "sha256:fb7f869ce8b7b51fdf719fc8c21a4736c98cc160a825606a81f78a7f4d2261d9",
          "sha256:4f631084a157c54f54fcfb23ff5eb8650c4ba160c295bb13a9832b109d52677e"
        ],
        "root": "sha256:5a61fc2b54f9cfa71774f2432143dd40c6cb2b11947faf65a7d3da5cb65199c8"
      },
      "expect": {
        "valid": true
      }
    },
    {
      "id": "merkle/7-leaves-index-6",
      "description": "RFC 6962: leaf data → 0x00 leaf hash; audit path to the root of a 7-leaf tree.",
      "input": {
        "leaf_base64": "bGVhZiA2",
        "leaf_index": 6,
        "tree_size": 7,
        "proof": [
          "sha256:75ab928268c86f44da5d4241188ed71e4aab2d4d77d6d50117dad94a842ede03",
          "sha256:4f631084a157c54f54fcfb23ff5eb8650c4ba160c295bb13a9832b109d52677e"
        ],
        "root": "sha256:5a61fc2b54f9cfa71774f2432143dd40c6cb2b11947faf65a7d3da5cb65199c8"
      },
      "expect": {
        "valid": true
      }
    }
  ]
}
