{
  "_comment": "Deterministic vectors for ERC-KYA (ERC-8419). Regenerate with `node tools/vectors.js`.",
  "subjectTypes": {
    "erc8004": "0xb126d82eb3261515f478c495d152d01425c0b2efa0a1ac1715bb26c2755b65cb",
    "account": "0xd844bb55167ab332117049e2ccd3d8863d241bcc80f46302310a6d942a90e851",
    "erc721": "0x0e23893281f878f0088dd044e35b03661018bff448ff89faadef02011e687deb",
    "did": "0x9cb4777bc61baeb5c84f2ed7e7dc586e5e21f1c1194bf295bc2430cbabe5eeae"
  },
  "subject": {
    "chainId": "11155111",
    "identityRegistry": "0x8004A818BFB912233c491871b3d84c89A494BD9e",
    "agentId": "22",
    "subjectType": "0xb126d82eb3261515f478c495d152d01425c0b2efa0a1ac1715bb26c2755b65cb",
    "subjectData": "0x0000000000000000000000000000000000000000000000000000000000aa36a70000000000000000000000008004a818bfb912233c491871b3d84c89a494bd9e0000000000000000000000000000000000000000000000000000000000000016",
    "subjectKey": "0x782d83168799d65b4fd438524964d8e506ce0524248efa9e3968e497b71bdbf7"
  },
  "scheme": {
    "chainId": "11155111",
    "schemeRegistry": "0x6666666666666666666666666666666666666666",
    "controller": "0x1111111111111111111111111111111111111111",
    "schemeHash": "0xa05e1d9ca43820ea149cdd67da371d13f15f6dc15f8b2b2a49e76a737dc49d1b",
    "nonce": "0",
    "schemeId": "0x0b5b3ab84b23cc2b5da7675b6f63befea809fbd405b01544fad3092d0c70aa8e",
    "schemeIdPreimage": "abi.encode(chainId, schemeRegistry, controller, schemeHash, nonce)",
    "descriptorKeccak": "keccak256 of the raw bytes of example-scheme.json",
    "binding": "controller (1)",
    "resultKind": 0,
    "levelMask": "0x15",
    "levelMaskDecimal": "21",
    "declaredLevels": [
      0,
      2,
      4
    ],
    "levelMaskRule": "bit n set <=> level n is a declared, valid result; equals the key set of descriptor.levels (ordered-level) or descriptor.result.codes (categorical); opaque is exactly 0x1",
    "bindingWitnessExample": {
      "controller": "0x8888888888888888888888888888888888888888",
      "witness": "0xeaad5b910795ac2a3b6dc3e37149f6c0fb81e849dc96185d30667b47ed8621f5"
    }
  },
  "assertion": {
    "issuer": "0x2222222222222222222222222222222222222222",
    "issuerNonce": "0",
    "assertionId": "0x971471ce4b7f9216131b5cacd3b8f2db4ff8ed0d6d2f1d99cba0f6c5b3c26052",
    "provedIssuer": "0x3333333333333333333333333333333333333333",
    "provedAssertionId": "0x755af38397d7fbaf498bb073e51da91b3be6b06c42f6f05ce05d27799fb685e2"
  },
  "admission": {
    "registryAdmissionType": "0xafe880890b0e36eeef353d0959fd90a5ba4940dba3deda7399bb6b8dfb1cee1b",
    "kyaRegistry": "0x4444444444444444444444444444444444444444",
    "schemeRegistry": "0x6666666666666666666666666666666666666666",
    "admissionDomain": "0xd84a5247053d9c3d414a1956dcdcd81a9bb49b88a95704fec6826a72ea2daa48",
    "preimage": "abi.encode(keccak256(\"erc-kya-registry-admission-v1\"), chainId, schemeRegistry, kyaRegistry)",
    "note": "computed by the admitting KYA Registry from its own state and passed to IKYAVerifier.verify; proofs and nullifiers are scoped to it"
  },
  "zk": {
    "layout": "kya-public-v1",
    "signalOrder": "[nullifier.hi, nullifier.lo, subjectKey.hi, subjectKey.lo, level, claimDigest.hi, claimDigest.lo, expiresAt, issuerSetRoot.hi, issuerSetRoot.lo, schemeId.hi, schemeId.lo, epoch, admissionDomain.hi, admissionDomain.lo]",
    "proverSecret": "0x000000000000000000000000000000000000000000000000000000000000abcd",
    "epoch": "0",
    "nullifier": "0xc69ce7dd3771e3c99dcab7626e8b8d2df8cf044de2873088e3a4c53882203a7c",
    "claimDigest": "0x44377fc6ed42398cddfb46b1752939aae0c5f0c5635b726aaad07f8bfa21717f",
    "issuerSetRoot": "0xcfe631ae5a05fd7cd3fb8e50a6e7706244f806df313d48c7700f2f428cf56452",
    "expiresAt": "1900000000",
    "publicInputs": "0x782d83168799d65b4fd438524964d8e506ce0524248efa9e3968e497b71bdbf7c69ce7dd3771e3c99dcab7626e8b8d2df8cf044de2873088e3a4c53882203a7c000000000000000000000000000000000000000000000000000000000000000444377fc6ed42398cddfb46b1752939aae0c5f0c5635b726aaad07f8bfa21717f00000000000000000000000000000000000000000000000000000000713fb300cfe631ae5a05fd7cd3fb8e50a6e7706244f806df313d48c7700f2f428cf564520000000000000000000000000000000000000000000000000000000000000000",
    "evidenceHash": "0x7484d273471bbba179106ae703706454c1f1475a8fa7b453ae67d26279f4e8dc",
    "groth16Signals": [
      "264001844238546494987438799295454350637",
      "330723435704689820408309439008700643964",
      "159743671633468079921497635619690830053",
      "9045085403143849831065186181656075255",
      "4",
      "90675671667217544668693239151729392042",
      "298774836953954976823590032580316066175",
      "1900000000",
      "276345431056572345033906109855245496418",
      "91675332711867632845910232882123990098",
      "15095197948754310640669227943358349054",
      "223362141646533946125319778357277141646",
      "0",
      "287499145841482351084706849070964856858",
      "206968107382125064017448036190403799624"
    ]
  },
  "policy": {
    "owner": "0x5555555555555555555555555555555555555555",
    "policyHash": "0x4027360eae2d3e8ac0ebb341bc5d4b77a459bbce032a9177519722ed44e2bb5a",
    "withoutRules": {
      "nonce": "0",
      "rulesHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
      "policyId": "0x8226e99b21dca0a226e4c0f93043dc6628521424173e64fe39c106d6f004255a"
    },
    "withRules": {
      "nonce": "1",
      "projection": [
        {
          "schemeId": "0x0000000000000000000000000000000000000000000000000000000000000001",
          "minLevel": 2,
          "issuers": [
            "0x2222222222222222222222222222222222222222"
          ]
        }
      ],
      "rulesHash": "0x8703f7f542e0834b40914bb5a539fb89b9fec8254d02b19467af2f35c68741c9",
      "rulesHashPreimage": "abi.encode(Rule[] allOf)",
      "policyId": "0x6121d3b1aa93061eaefbe3f80d6d432179c11985895e22246fca955da748b511"
    },
    "policyIdPreimage": "abi.encode(owner, policyHash, rulesHash, nonce)"
  },
  "bridge8004": {
    "requestType": "0x85315338ad9dfcd88a21d511b4684f865ccf8cd30766a803deed258455043e1f",
    "bridge": "0x7777777777777777777777777777777777777777",
    "trustedIssuers": [
      "0x2222222222222222222222222222222222222222"
    ],
    "responseMap": [
      0,
      50,
      100
    ],
    "configHash": "0xd0a8f3822f1f99e7573f747ee40b81fe4ae031397ab3a4768f7ed43d75888036",
    "configHashPreimage": "abi.encode(schemeId, trustedIssuers, responseMap)",
    "requestHashPreimage": "abi.encode(requestType, chainId, identityRegistry, bridge, agentId, schemeId)",
    "requestHash": "0x2e33f18d7aa5a917158ef4d923bef673649b2c3f1fe3e9cf45e95ac1b29d5065",
    "responseHashExample": {
      "assertionId": "0x971471ce4b7f9216131b5cacd3b8f2db4ff8ed0d6d2f1d99cba0f6c5b3c26052",
      "level": 2,
      "responseHash": "0x2f40fde770420fa1f1fd1a757c34bca943cb0d7cbeedc48148b00ba01132aade"
    },
    "responseHashPreimage": "abi.encode(assertionId, level, configHash)",
    "tag": "kya:0b5b3ab84b23cc2b5da7675b6f63befea809fbd405b01544fad3092d0c70aa8e",
    "metadataKey": "kya",
    "metadataValue": "0x0000000000000000000000004444444444444444444444444444444444444444000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000010b5b3ab84b23cc2b5da7675b6f63befea809fbd405b01544fad3092d0c70aa8e"
  },
  "eip712": {
    "domain": {
      "name": "KYA",
      "version": "1",
      "chainId": 11155111,
      "verifyingContract": "0x4444444444444444444444444444444444444444"
    },
    "types": {
      "KYAChallenge": [
        {
          "name": "verifierSubjectKey",
          "type": "bytes32"
        },
        {
          "name": "proverSubjectKey",
          "type": "bytes32"
        },
        {
          "name": "schemeIds",
          "type": "bytes32[]"
        },
        {
          "name": "policyId",
          "type": "bytes32"
        },
        {
          "name": "nonce",
          "type": "bytes32"
        },
        {
          "name": "expiry",
          "type": "uint64"
        }
      ],
      "KYAPresentation": [
        {
          "name": "challengeHash",
          "type": "bytes32"
        },
        {
          "name": "assertionIds",
          "type": "bytes32[]"
        },
        {
          "name": "proofSchemeId",
          "type": "bytes32"
        },
        {
          "name": "publicInputs",
          "type": "bytes"
        },
        {
          "name": "proof",
          "type": "bytes"
        }
      ]
    },
    "challenge": {
      "verifierSubjectKey": "0xe36a9d6529469401cc2d137b6fbf9fc01478b03a00fafee209a62319c75b12f2",
      "proverSubjectKey": "0x782d83168799d65b4fd438524964d8e506ce0524248efa9e3968e497b71bdbf7",
      "schemeIds": [
        "0x0b5b3ab84b23cc2b5da7675b6f63befea809fbd405b01544fad3092d0c70aa8e"
      ],
      "policyId": "0x6121d3b1aa93061eaefbe3f80d6d432179c11985895e22246fca955da748b511",
      "nonce": "0x9c6230254ac733f54ec47298f0a5ddaf93dc9efe6e05fb726dcb6faf10ddece2",
      "expiry": 1800003600
    },
    "challengeHash": "0x0335acbe9ee626a7e599c3dd1611dfadd26902acdff564bcfc0078afb4945c33",
    "presentation": {
      "challengeHash": "0x0335acbe9ee626a7e599c3dd1611dfadd26902acdff564bcfc0078afb4945c33",
      "assertionIds": [
        "0x971471ce4b7f9216131b5cacd3b8f2db4ff8ed0d6d2f1d99cba0f6c5b3c26052"
      ],
      "proofSchemeId": "0x0000000000000000000000000000000000000000000000000000000000000000",
      "publicInputs": "0x",
      "proof": "0x"
    },
    "presentationHash": "0x5a96adb3a8a971ba3a7a15853920a097e71ba0b39f3d0e89dec1f2154c5163a5",
    "zkPresentation": {
      "challengeHash": "0x0335acbe9ee626a7e599c3dd1611dfadd26902acdff564bcfc0078afb4945c33",
      "assertionIds": [],
      "proofSchemeId": "0x0b5b3ab84b23cc2b5da7675b6f63befea809fbd405b01544fad3092d0c70aa8e",
      "publicInputs": "0x782d83168799d65b4fd438524964d8e506ce0524248efa9e3968e497b71bdbf7c69ce7dd3771e3c99dcab7626e8b8d2df8cf044de2873088e3a4c53882203a7c000000000000000000000000000000000000000000000000000000000000000444377fc6ed42398cddfb46b1752939aae0c5f0c5635b726aaad07f8bfa21717f00000000000000000000000000000000000000000000000000000000713fb300cfe631ae5a05fd7cd3fb8e50a6e7706244f806df313d48c7700f2f428cf564520000000000000000000000000000000000000000000000000000000000000000",
      "proof": "0x"
    },
    "zkPresentationHash": "0x85d645fa9f3740fa2215a83a76ac1dd372445b4127d911702b6e48d88b3b4e3e",
    "signer": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8",
    "presentationSignature": "0xfec827b6ca59ee790deed3a881dea7647bc9734f967137346140148a192f01fb166f40b7e7c56128634d170bd0ada6785a80f2f397b023c760442d45bf5c56f31b"
  },
  "interfaceIds": {
    "IKYASchemeRegistry": "0xe6dbd933",
    "IKYARegistry": "0x5d1bec61",
    "IKYAPolicyRegistry": "0x1cf9e558",
    "IKYAPolicyEvaluator": "0x173ff2b6",
    "IKYAVerifier": "0xfc2b4271"
  }
}