{
  "contractName": "Algorithm",
  "abi": [
    {
      "constant": true,
      "inputs": [
        {
          "name": "key",
          "type": "bytes"
        },
        {
          "name": "data",
          "type": "bytes"
        },
        {
          "name": "signature",
          "type": "bytes"
        }
      ],
      "name": "verify",
      "outputs": [
        {
          "name": "",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    }
  ],
  "bytecode": "0x",
  "deployedBytecode": "0x",
  "sourceMap": "",
  "deployedSourceMap": "",
  "source": "pragma solidity >0.4.23;\n\n/**\n* @dev An interface for contracts implementing a DNSSEC (signing) algorithm.\n*/\ninterface Algorithm {\n    /**\n    * @dev Verifies a signature.\n    * @param key The public key to verify with.\n    * @param data The signed data to verify.\n    * @param signature The signature to verify.\n    * @return True iff the signature is valid.\n    */\n    function verify(bytes calldata key, bytes calldata data, bytes calldata signature) external view returns (bool);\n}\n",
  "sourcePath": "/home/user/Dropbox/projects/enssec/contracts/algorithms/Algorithm.sol",
  "ast": {
    "absolutePath": "/home/user/Dropbox/projects/enssec/contracts/algorithms/Algorithm.sol",
    "exportedSymbols": {
      "Algorithm": [
        3124
      ]
    },
    "id": 3125,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 3112,
        "literals": [
          "solidity",
          ">",
          "0.4",
          ".23"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:24:6"
      },
      {
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "interface",
        "documentation": "@dev An interface for contracts implementing a DNSSEC (signing) algorithm.",
        "fullyImplemented": false,
        "id": 3124,
        "linearizedBaseContracts": [
          3124
        ],
        "name": "Algorithm",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "body": null,
            "documentation": "@dev Verifies a signature.\n@param key The public key to verify with.\n@param data The signed data to verify.\n@param signature The signature to verify.\n@return True iff the signature is valid.",
            "id": 3123,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "verify",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3119,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3114,
                  "name": "key",
                  "nodeType": "VariableDeclaration",
                  "scope": 3123,
                  "src": "388:18:6",
                  "stateVariable": false,
                  "storageLocation": "calldata",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_calldata_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 3113,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "388:5:6",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3116,
                  "name": "data",
                  "nodeType": "VariableDeclaration",
                  "scope": 3123,
                  "src": "408:19:6",
                  "stateVariable": false,
                  "storageLocation": "calldata",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_calldata_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 3115,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "408:5:6",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3118,
                  "name": "signature",
                  "nodeType": "VariableDeclaration",
                  "scope": 3123,
                  "src": "429:24:6",
                  "stateVariable": false,
                  "storageLocation": "calldata",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_calldata_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 3117,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "429:5:6",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "387:67:6"
            },
            "returnParameters": {
              "id": 3122,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3121,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3123,
                  "src": "478:4:6",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 3120,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "478:4:6",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "477:6:6"
            },
            "scope": 3124,
            "src": "372:112:6",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "external"
          }
        ],
        "scope": 3125,
        "src": "110:376:6"
      }
    ],
    "src": "0:487:6"
  },
  "legacyAST": {
    "absolutePath": "/home/user/Dropbox/projects/enssec/contracts/algorithms/Algorithm.sol",
    "exportedSymbols": {
      "Algorithm": [
        3124
      ]
    },
    "id": 3125,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 3112,
        "literals": [
          "solidity",
          ">",
          "0.4",
          ".23"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:24:6"
      },
      {
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "interface",
        "documentation": "@dev An interface for contracts implementing a DNSSEC (signing) algorithm.",
        "fullyImplemented": false,
        "id": 3124,
        "linearizedBaseContracts": [
          3124
        ],
        "name": "Algorithm",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "body": null,
            "documentation": "@dev Verifies a signature.\n@param key The public key to verify with.\n@param data The signed data to verify.\n@param signature The signature to verify.\n@return True iff the signature is valid.",
            "id": 3123,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "verify",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3119,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3114,
                  "name": "key",
                  "nodeType": "VariableDeclaration",
                  "scope": 3123,
                  "src": "388:18:6",
                  "stateVariable": false,
                  "storageLocation": "calldata",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_calldata_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 3113,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "388:5:6",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3116,
                  "name": "data",
                  "nodeType": "VariableDeclaration",
                  "scope": 3123,
                  "src": "408:19:6",
                  "stateVariable": false,
                  "storageLocation": "calldata",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_calldata_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 3115,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "408:5:6",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3118,
                  "name": "signature",
                  "nodeType": "VariableDeclaration",
                  "scope": 3123,
                  "src": "429:24:6",
                  "stateVariable": false,
                  "storageLocation": "calldata",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_calldata_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 3117,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "429:5:6",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "387:67:6"
            },
            "returnParameters": {
              "id": 3122,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3121,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 3123,
                  "src": "478:4:6",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 3120,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "478:4:6",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "477:6:6"
            },
            "scope": 3124,
            "src": "372:112:6",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "external"
          }
        ],
        "scope": 3125,
        "src": "110:376:6"
      }
    ],
    "src": "0:487:6"
  },
  "compiler": {
    "name": "solc",
    "version": "0.5.0+commit.1d4f565a.Emscripten.clang"
  },
  "networks": {},
  "schemaVersion": "3.0.1",
  "updatedAt": "2019-03-12T23:08:21.376Z",
  "devdoc": {
    "details": "An interface for contracts implementing a DNSSEC (signing) algorithm.",
    "methods": {
      "verify(bytes,bytes,bytes)": {
        "details": "Verifies a signature.",
        "params": {
          "data": "The signed data to verify.",
          "key": "The public key to verify with.",
          "signature": "The signature to verify."
        },
        "return": "True iff the signature is valid."
      }
    }
  },
  "userdoc": {
    "methods": {}
  }
}