[
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "hubAddress",
        "type": "address"
      }
    ],
    "stateMutability": "nonpayable",
    "type": "constructor"
  },
  {
    "inputs": [],
    "name": "AdminAddressZero",
    "type": "error"
  },
  {
    "inputs": [],
    "name": "AdminEqualsOperational",
    "type": "error"
  },
  {
    "inputs": [
      {
        "internalType": "uint72",
        "name": "identityId",
        "type": "uint72"
      },
      {
        "internalType": "address",
        "name": "sender",
        "type": "address"
      }
    ],
    "name": "AdminFunctionOnly",
    "type": "error"
  },
  {
    "inputs": [
      {
        "internalType": "uint72",
        "name": "identityId",
        "type": "uint72"
      }
    ],
    "name": "CannotDeleteOnlyAdminKey",
    "type": "error"
  },
  {
    "inputs": [
      {
        "internalType": "uint72",
        "name": "identityId",
        "type": "uint72"
      }
    ],
    "name": "CannotDeleteOnlyOperationalKey",
    "type": "error"
  },
  {
    "inputs": [
      {
        "internalType": "bytes32",
        "name": "key",
        "type": "bytes32"
      }
    ],
    "name": "KeyAlreadyAttached",
    "type": "error"
  },
  {
    "inputs": [],
    "name": "KeyIsEmpty",
    "type": "error"
  },
  {
    "inputs": [
      {
        "internalType": "bytes32",
        "name": "key",
        "type": "bytes32"
      }
    ],
    "name": "KeyNotAttached",
    "type": "error"
  },
  {
    "inputs": [],
    "name": "OperationalAddressZero",
    "type": "error"
  },
  {
    "inputs": [
      {
        "internalType": "bytes32",
        "name": "key",
        "type": "bytes32"
      }
    ],
    "name": "OperationalKeyTaken",
    "type": "error"
  },
  {
    "inputs": [
      {
        "internalType": "string",
        "name": "msg",
        "type": "string"
      }
    ],
    "name": "UnauthorizedAccess",
    "type": "error"
  },
  {
    "inputs": [],
    "name": "ZeroAddressHub",
    "type": "error"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "uint72",
        "name": "identityId",
        "type": "uint72"
      },
      {
        "indexed": true,
        "internalType": "bytes32",
        "name": "operationalKey",
        "type": "bytes32"
      },
      {
        "indexed": true,
        "internalType": "bytes32",
        "name": "adminKey",
        "type": "bytes32"
      }
    ],
    "name": "IdentityCreated",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "uint72",
        "name": "identityId",
        "type": "uint72"
      }
    ],
    "name": "IdentityDeleted",
    "type": "event"
  },
  {
    "inputs": [
      {
        "internalType": "uint72",
        "name": "identityId",
        "type": "uint72"
      },
      {
        "internalType": "bytes32",
        "name": "key",
        "type": "bytes32"
      },
      {
        "internalType": "uint256",
        "name": "keyPurpose",
        "type": "uint256"
      },
      {
        "internalType": "uint256",
        "name": "keyType",
        "type": "uint256"
      }
    ],
    "name": "addKey",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint72",
        "name": "identityId",
        "type": "uint72"
      },
      {
        "internalType": "address[]",
        "name": "operationalWallets",
        "type": "address[]"
      }
    ],
    "name": "addOperationalWallets",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "operational",
        "type": "address"
      },
      {
        "internalType": "address",
        "name": "admin",
        "type": "address"
      }
    ],
    "name": "createIdentity",
    "outputs": [
      {
        "internalType": "uint72",
        "name": "",
        "type": "uint72"
      }
    ],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint72",
        "name": "identityId",
        "type": "uint72"
      }
    ],
    "name": "deleteIdentity",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "hub",
    "outputs": [
      {
        "internalType": "contract Hub",
        "name": "",
        "type": "address"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "identityStorage",
    "outputs": [
      {
        "internalType": "contract IdentityStorage",
        "name": "",
        "type": "address"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "initialize",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "name",
    "outputs": [
      {
        "internalType": "string",
        "name": "",
        "type": "string"
      }
    ],
    "stateMutability": "pure",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint72",
        "name": "identityId",
        "type": "uint72"
      },
      {
        "internalType": "bytes32",
        "name": "key",
        "type": "bytes32"
      }
    ],
    "name": "removeKey",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "bool",
        "name": "_status",
        "type": "bool"
      }
    ],
    "name": "setStatus",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "status",
    "outputs": [
      {
        "internalType": "bool",
        "name": "",
        "type": "bool"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "version",
    "outputs": [
      {
        "internalType": "string",
        "name": "",
        "type": "string"
      }
    ],
    "stateMutability": "pure",
    "type": "function"
  }
]
