{
  "contractName": "ECDSALib",
  "abi": [
    {
      "inputs": [
        {
          "internalType": "bytes32",
          "name": "hash",
          "type": "bytes32"
        },
        {
          "components": [
            {
              "internalType": "uint8",
              "name": "v",
              "type": "uint8"
            },
            {
              "internalType": "bytes32",
              "name": "r",
              "type": "bytes32"
            },
            {
              "internalType": "bytes32",
              "name": "s",
              "type": "bytes32"
            }
          ],
          "internalType": "struct ECDSALib.signature",
          "name": "sign",
          "type": "tuple"
        }
      ],
      "name": "recover",
      "outputs": [
        {
          "internalType": "address",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "pure",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "bytes32",
          "name": "hash",
          "type": "bytes32"
        },
        {
          "internalType": "bytes",
          "name": "sign",
          "type": "bytes"
        }
      ],
      "name": "recover",
      "outputs": [
        {
          "internalType": "address",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "pure",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "bytes32",
          "name": "hash",
          "type": "bytes32"
        }
      ],
      "name": "toEthSignedMessageHash",
      "outputs": [
        {
          "internalType": "bytes32",
          "name": "",
          "type": "bytes32"
        }
      ],
      "stateMutability": "pure",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "bytes32",
          "name": "struct_hash",
          "type": "bytes32"
        },
        {
          "internalType": "bytes32",
          "name": "domain_separator",
          "type": "bytes32"
        }
      ],
      "name": "toEthTypedStructHash",
      "outputs": [
        {
          "internalType": "bytes32",
          "name": "",
          "type": "bytes32"
        }
      ],
      "stateMutability": "pure",
      "type": "function"
    }
  ],
  "metadata": "{\"compiler\":{\"version\":\"0.6.12+commit.27d51765\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"internalType\":\"struct ECDSALib.signature\",\"name\":\"sign\",\"type\":\"tuple\"}],\"name\":\"recover\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"sign\",\"type\":\"bytes\"}],\"name\":\"recover\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"}],\"name\":\"toEthSignedMessageHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"struct_hash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"domain_separator\",\"type\":\"bytes32\"}],\"name\":\"toEthTypedStructHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"/Users/gabriel/Documents/iexec/poco-boost/iexec-solidity/contracts/Libs/ECDSALib.sol\":\"ECDSALib\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/Users/gabriel/Documents/iexec/poco-boost/iexec-solidity/contracts/Libs/ECDSALib.sol\":{\"keccak256\":\"0x2dae459397a92139cd67ef959ff2974c024074ed7c25af2b46366564230f5520\",\"license\":\"Apache-2.0\",\"urls\":[\"bzz-raw://444ad518a70a197d9f4e62d12d328d2d2ea3f0a2cd42d0dbd18f2a664c13962b\",\"dweb:/ipfs/QmXne8CBYt9oBMZozR5J5GNtp9P4eTVk14Dm2prp9PL8Du\"]}},\"version\":1}",
  "bytecode": "0x610508610026600b82828239805160001a60731461001957fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106100565760003560e01c8063086dc67c1461005b578063176eaa491461008457806319045a25146100a4578063918a15cf146100b7575b600080fd5b61006e610069366004610386565b6100ca565b60405161007b9190610439565b60405180910390f35b6100976100923660046102d0565b610155565b60405161007b919061044d565b61006e6100b23660046102f1565b610188565b6100976100c53660046102b8565b610288565b6000816000015160ff16601b14806100e95750816000015160ff16601c145b6100f257600080fd5b600183836000015184602001518560400151604051600081526020016040526040516101219493929190610456565b6020604051602081039080840390855afa158015610143573d6000803e3d6000fd5b5050604051601f190151949350505050565b6000818360405160200161016a92919061041e565b60405160208183030381529060405280519060200120905092915050565b6000806000808451604114156101b25750505060208201516040830151606084015160001a610200565b8451604014156101df57505050602082015160408301516001600160ff1b0381169060001a60071c610200565b60405162461bcd60e51b81526004016101f790610474565b60405180910390fd5b601b8160ff16101561021057601b015b8060ff16601b148061022557508060ff16601c145b61022e57600080fd5b600186828585604051600081526020016040526040516102519493929190610456565b6020604051602081039080840390855afa158015610273573d6000803e3d6000fd5b5050604051601f190151979650505050505050565b60008160405160200161029b91906103ed565b604051602081830303815290604052805190602001209050919050565b6000602082840312156102c9578081fd5b5035919050565b600080604083850312156102e2578081fd5b50508035926020909101359150565b60008060408385031215610303578182fd5b8235915060208084013567ffffffffffffffff80821115610322578384fd5b818601915086601f830112610335578384fd5b813581811115610343578485fd5b610355601f8201601f191685016104ab565b9150808252878482850101111561036a578485fd5b8084840185840137810190920192909252919491935090915050565b6000808284036080811215610399578283fd5b833592506060601f19820112156103ae578182fd5b506103b960606104ab565b602084013560ff811681146103cc578283fd5b81526040848101356020830152606090940135938101939093525092909150565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b61190160f01b81526002810192909252602282015260420190565b6001600160a01b0391909116815260200190565b90815260200190565b93845260ff9290921660208401526040830152606082015260800190565b60208082526018908201527f696e76616c69642d7369676e61747572652d666f726d61740000000000000000604082015260600190565b60405181810167ffffffffffffffff811182821017156104ca57600080fd5b60405291905056fea26469706673582212203078e640fb2c72daf7f84f54c3f610e09e824a0a316b17d4645f854394d4c65f64736f6c634300060c0033",
  "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600436106100565760003560e01c8063086dc67c1461005b578063176eaa491461008457806319045a25146100a4578063918a15cf146100b7575b600080fd5b61006e610069366004610386565b6100ca565b60405161007b9190610439565b60405180910390f35b6100976100923660046102d0565b610155565b60405161007b919061044d565b61006e6100b23660046102f1565b610188565b6100976100c53660046102b8565b610288565b6000816000015160ff16601b14806100e95750816000015160ff16601c145b6100f257600080fd5b600183836000015184602001518560400151604051600081526020016040526040516101219493929190610456565b6020604051602081039080840390855afa158015610143573d6000803e3d6000fd5b5050604051601f190151949350505050565b6000818360405160200161016a92919061041e565b60405160208183030381529060405280519060200120905092915050565b6000806000808451604114156101b25750505060208201516040830151606084015160001a610200565b8451604014156101df57505050602082015160408301516001600160ff1b0381169060001a60071c610200565b60405162461bcd60e51b81526004016101f790610474565b60405180910390fd5b601b8160ff16101561021057601b015b8060ff16601b148061022557508060ff16601c145b61022e57600080fd5b600186828585604051600081526020016040526040516102519493929190610456565b6020604051602081039080840390855afa158015610273573d6000803e3d6000fd5b5050604051601f190151979650505050505050565b60008160405160200161029b91906103ed565b604051602081830303815290604052805190602001209050919050565b6000602082840312156102c9578081fd5b5035919050565b600080604083850312156102e2578081fd5b50508035926020909101359150565b60008060408385031215610303578182fd5b8235915060208084013567ffffffffffffffff80821115610322578384fd5b818601915086601f830112610335578384fd5b813581811115610343578485fd5b610355601f8201601f191685016104ab565b9150808252878482850101111561036a578485fd5b8084840185840137810190920192909252919491935090915050565b6000808284036080811215610399578283fd5b833592506060601f19820112156103ae578182fd5b506103b960606104ab565b602084013560ff811681146103cc578283fd5b81526040848101356020830152606090940135938101939093525092909150565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b61190160f01b81526002810192909252602282015260420190565b6001600160a01b0391909116815260200190565b90815260200190565b93845260ff9290921660208401526040830152606082015260800190565b60208082526018908201527f696e76616c69642d7369676e61747572652d666f726d61740000000000000000604082015260600190565b60405181810167ffffffffffffffff811182821017156104ca57600080fd5b60405291905056fea26469706673582212203078e640fb2c72daf7f84f54c3f610e09e824a0a316b17d4645f854394d4c65f64736f6c634300060c0033",
  "immutableReferences": {},
  "sourceMap": "1301:1415:21:-:0;;;;;;;;;;;;;;;;;;;;;;;;;",
  "deployedSourceMap": "1301:1415:21:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1385:181;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;2520:194;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;1569:783::-;;;;;;:::i;:::-;;:::i;2355:162::-;;;;;;:::i;:::-;;:::i;1385:181::-;1461:7;1483:4;:6;;;:12;;1493:2;1483:12;:28;;;;1499:4;:6;;;:12;;1509:2;1499:12;1483:28;1475:37;;;;;;1523:39;1533:4;1539;:6;;;1547:4;:6;;;1555:4;:6;;;1523:39;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1523:39:21;;-1:-1:-1;;1523:39:21;;;1385:181;-1:-1:-1;;;;1385:181:21:o;2520:194::-;2619:7;2679:16;2697:11;2650:59;;;;;;;;;:::i;:::-;;;;;;;;;;;;;2640:70;;;;;;2633:77;;2520:194;;;;:::o;1569:783::-;1641:7;1655:9;1668;1681;1699:4;:11;1714:2;1699:17;1695:564;;;-1:-1:-1;;;1797:4:21;1787:15;;1781:22;1837:4;1827:15;;1821:22;1877:4;1867:15;;1861:22;1858:1;1853:31;1762:127;;;1905:4;:11;1920:2;1905:17;1901:358;;;-1:-1:-1;;;2025:4:21;2015:15;;2009:22;2072:4;2062:15;;2056:22;-1:-1:-1;;;;;2041:106:21;;;2169:1;2164:31;2161:1;2157:39;1983:218;;;2220:34;;-1:-1:-1;;;2220:34:21;;;;;;;:::i;:::-;;;;;;;;1901:358;2271:2;2267:1;:6;;;2263:19;;;2280:2;2275:7;2263:19;2294:1;:7;;2299:2;2294:7;:18;;;;2305:1;:7;;2310:2;2305:7;2294:18;2286:27;;;;;;2324:24;2334:4;2340:1;2343;2346;2324:24;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2324:24:21;;-1:-1:-1;;2324:24:21;;;1569:783;-1:-1:-1;;;;;;;1569:783:21:o;2355:162::-;2423:7;2507:4;2454:58;;;;;;;;:::i;:::-;;;;;;;;;;;;;2444:69;;;;;;2437:76;;2355:162;;;:::o;1365:241:-1:-;;1469:2;1457:9;1448:7;1444:23;1440:32;1437:2;;;-1:-1;;1475:12;1437:2;-1:-1;72:20;;1431:175;-1:-1;1431:175::o;1613:366::-;;;1734:2;1722:9;1713:7;1709:23;1705:32;1702:2;;;-1:-1;;1740:12;1702:2;-1:-1;;72:20;;;1892:2;1931:22;;;72:20;;-1:-1;1696:283::o;1986:470::-;;;2116:2;2104:9;2095:7;2091:23;2087:32;2084:2;;;-1:-1;;2122:12;2084:2;85:6;72:20;2174:63;;2302:2;;2291:9;2287:18;2274:32;2326:18;;2318:6;2315:30;2312:2;;;-1:-1;;2348:12;2312:2;2423:6;2412:9;2408:22;;;244:3;237:4;229:6;225:17;221:27;211:2;;-1:-1;;252:12;211:2;299:6;286:20;2326:18;7748:6;7745:30;7742:2;;;-1:-1;;7778:12;7742:2;321:64;7851:9;7832:17;;-1:-1;;7828:33;7909:15;;321:64;:::i;:::-;312:73;;405:6;398:5;391:21;509:3;2302:2;500:6;433;491:16;;488:25;485:2;;;-1:-1;;516:12;485:2;8742:6;2302:2;433:6;429:17;2302:2;467:5;463:16;8719:30;8780:16;;;;;8773:27;;;;2078:378;;467:5;;-1:-1;2078:378;;-1:-1;;2078:378::o;2463:421::-;;;2599:9;2590:7;2586:23;2611:3;2586:23;2582:33;2579:2;;;-1:-1;;2618:12;2579:2;72:20;;;-1:-1;739:4;-1:-1;;718:19;;714:30;711:2;;;-1:-1;;747:12;711:2;;775:20;739:4;775:20;:::i;:::-;2770:2;2840:9;2836:22;1297:20;8643:4;9102:5;8632:16;9079:5;9076:33;9066:2;;-1:-1;;9113:12;9066:2;849:73;;1034:22;;;;72:20;2770:2;995:16;;988:75;739:4;1175:22;;;72:20;1136:16;;;1129:75;;;;-1:-1;2573:311;856:16;;-1:-1;2573:311::o;4689:520::-;3723:66;3703:87;;3687:2;3809:12;;3090:37;;;;5172:12;;;4906:303::o;5216:659::-;-1:-1;;;4111:87;;4096:1;4217:11;;3090:37;;;;5727:12;;;3090:37;5838:12;;;5461:414::o;5882:238::-;-1:-1;;;;;8506:54;;;;2970:37;;6017:2;6002:18;;5988:132::o;6127:238::-;3090:37;;;6262:2;6247:18;;6233:132::o;6372:548::-;3090:37;;;8643:4;8632:16;;;;6740:2;6725:18;;4642:35;6823:2;6808:18;;3090:37;6906:2;6891:18;;3090:37;6579:3;6564:19;;6550:370::o;6927:416::-;7127:2;7141:47;;;4467:2;7112:18;;;8045:19;4503:26;8085:14;;;4483:47;4549:12;;;7098:245::o;7350:256::-;7412:2;7406:9;7438:17;;;7513:18;7498:34;;7534:22;;;7495:62;7492:2;;;7570:1;;7560:12;7492:2;7412;7579:22;7390:216;;-1:-1;7390:216::o",
  "source": "// SPDX-License-Identifier: Apache-2.0\n\n/******************************************************************************\n * Copyright 2020 IEXEC BLOCKCHAIN TECH                                       *\n *                                                                            *\n * Licensed under the Apache License, Version 2.0 (the \"License\");            *\n * you may not use this file except in compliance with the License.           *\n * You may obtain a copy of the License at                                    *\n *                                                                            *\n *     http://www.apache.org/licenses/LICENSE-2.0                             *\n *                                                                            *\n * Unless required by applicable law or agreed to in writing, software        *\n * distributed under the License is distributed on an \"AS IS\" BASIS,          *\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   *\n * See the License for the specific language governing permissions and        *\n * limitations under the License.                                             *\n ******************************************************************************/\n\npragma solidity ^0.6.0;\npragma experimental ABIEncoderV2;\n\nlibrary ECDSALib\n{\n\tstruct signature\n\t{\n\t\tuint8   v;\n\t\tbytes32 r;\n\t\tbytes32 s;\n\t}\n\n\tfunction recover(bytes32 hash, signature memory sign)\n\tpublic pure returns (address)\n\t{\n\t\trequire(sign.v == 27 || sign.v == 28);\n\t\treturn ecrecover(hash, sign.v, sign.r, sign.s);\n\t}\n\n\tfunction recover(bytes32 hash, bytes memory sign)\n\tpublic pure returns (address)\n\t{\n\t\tbytes32 r;\n\t\tbytes32 s;\n\t\tuint8   v;\n\n\t\tif (sign.length == 65) // 65bytes: (r,s,v) form\n\t\t{\n\t\t\tassembly\n\t\t\t{\n\t\t\t\tr :=         mload(add(sign, 0x20))\n\t\t\t\ts :=         mload(add(sign, 0x40))\n\t\t\t\tv := byte(0, mload(add(sign, 0x60)))\n\t\t\t}\n\t\t}\n\t\telse if (sign.length == 64) // 64bytes: (r,vs) form → see EIP2098\n\t\t{\n\t\t\tassembly\n\t\t\t{\n\t\t\t\tr :=                mload(add(sign, 0x20))\n\t\t\t\ts := and(           mload(add(sign, 0x40)), 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)\n\t\t\t\tv := shr(7, byte(0, mload(add(sign, 0x40))))\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\trevert(\"invalid-signature-format\");\n\t\t}\n\n\t\tif (v < 27) v += 27;\n\t\trequire(v == 27 || v == 28);\n\t\treturn ecrecover(hash, v, r, s);\n\t}\n\n\tfunction toEthSignedMessageHash(bytes32 hash)\n\tpublic pure returns (bytes32)\n\t{\n\t\treturn keccak256(abi.encodePacked(\"\\x19Ethereum Signed Message:\\n32\", hash));\n\t}\n\n\tfunction toEthTypedStructHash(bytes32 struct_hash, bytes32 domain_separator)\n\tpublic pure returns (bytes32)\n\t{\n\t\treturn keccak256(abi.encodePacked(\"\\x19\\x01\", domain_separator, struct_hash));\n\t}\n}\n",
  "sourcePath": "/Users/gabriel/Documents/iexec/poco-boost/iexec-solidity/contracts/Libs/ECDSALib.sol",
  "ast": {
    "absolutePath": "/Users/gabriel/Documents/iexec/poco-boost/iexec-solidity/contracts/Libs/ECDSALib.sol",
    "exportedSymbols": {
      "ECDSALib": [
        1946
      ]
    },
    "id": 1947,
    "license": "Apache-2.0",
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 1807,
        "literals": [
          "solidity",
          "^",
          "0.6",
          ".0"
        ],
        "nodeType": "PragmaDirective",
        "src": "1242:23:21"
      },
      {
        "id": 1808,
        "literals": [
          "experimental",
          "ABIEncoderV2"
        ],
        "nodeType": "PragmaDirective",
        "src": "1266:33:21"
      },
      {
        "abstract": false,
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "library",
        "documentation": null,
        "fullyImplemented": true,
        "id": 1946,
        "linearizedBaseContracts": [
          1946
        ],
        "name": "ECDSALib",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "canonicalName": "ECDSALib.signature",
            "id": 1815,
            "members": [
              {
                "constant": false,
                "id": 1810,
                "mutability": "mutable",
                "name": "v",
                "nodeType": "VariableDeclaration",
                "overrides": null,
                "scope": 1815,
                "src": "1343:9:21",
                "stateVariable": false,
                "storageLocation": "default",
                "typeDescriptions": {
                  "typeIdentifier": "t_uint8",
                  "typeString": "uint8"
                },
                "typeName": {
                  "id": 1809,
                  "name": "uint8",
                  "nodeType": "ElementaryTypeName",
                  "src": "1343:5:21",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint8",
                    "typeString": "uint8"
                  }
                },
                "value": null,
                "visibility": "internal"
              },
              {
                "constant": false,
                "id": 1812,
                "mutability": "mutable",
                "name": "r",
                "nodeType": "VariableDeclaration",
                "overrides": null,
                "scope": 1815,
                "src": "1356:9:21",
                "stateVariable": false,
                "storageLocation": "default",
                "typeDescriptions": {
                  "typeIdentifier": "t_bytes32",
                  "typeString": "bytes32"
                },
                "typeName": {
                  "id": 1811,
                  "name": "bytes32",
                  "nodeType": "ElementaryTypeName",
                  "src": "1356:7:21",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  }
                },
                "value": null,
                "visibility": "internal"
              },
              {
                "constant": false,
                "id": 1814,
                "mutability": "mutable",
                "name": "s",
                "nodeType": "VariableDeclaration",
                "overrides": null,
                "scope": 1815,
                "src": "1369:9:21",
                "stateVariable": false,
                "storageLocation": "default",
                "typeDescriptions": {
                  "typeIdentifier": "t_bytes32",
                  "typeString": "bytes32"
                },
                "typeName": {
                  "id": 1813,
                  "name": "bytes32",
                  "nodeType": "ElementaryTypeName",
                  "src": "1369:7:21",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  }
                },
                "value": null,
                "visibility": "internal"
              }
            ],
            "name": "signature",
            "nodeType": "StructDefinition",
            "scope": 1946,
            "src": "1321:61:21",
            "visibility": "public"
          },
          {
            "body": {
              "id": 1846,
              "nodeType": "Block",
              "src": "1471:95:21",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        "id": 1833,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_uint8",
                            "typeString": "uint8"
                          },
                          "id": 1828,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "id": 1825,
                              "name": "sign",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 1819,
                              "src": "1483:4:21",
                              "typeDescriptions": {
                                "typeIdentifier": "t_struct$_signature_$1815_memory_ptr",
                                "typeString": "struct ECDSALib.signature memory"
                              }
                            },
                            "id": 1826,
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "v",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": 1810,
                            "src": "1483:6:21",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint8",
                              "typeString": "uint8"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "==",
                          "rightExpression": {
                            "argumentTypes": null,
                            "hexValue": "3237",
                            "id": 1827,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "number",
                            "lValueRequested": false,
                            "nodeType": "Literal",
                            "src": "1493:2:21",
                            "subdenomination": null,
                            "typeDescriptions": {
                              "typeIdentifier": "t_rational_27_by_1",
                              "typeString": "int_const 27"
                            },
                            "value": "27"
                          },
                          "src": "1483:12:21",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "||",
                        "rightExpression": {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_uint8",
                            "typeString": "uint8"
                          },
                          "id": 1832,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "id": 1829,
                              "name": "sign",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 1819,
                              "src": "1499:4:21",
                              "typeDescriptions": {
                                "typeIdentifier": "t_struct$_signature_$1815_memory_ptr",
                                "typeString": "struct ECDSALib.signature memory"
                              }
                            },
                            "id": 1830,
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "v",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": 1810,
                            "src": "1499:6:21",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint8",
                              "typeString": "uint8"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "==",
                          "rightExpression": {
                            "argumentTypes": null,
                            "hexValue": "3238",
                            "id": 1831,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "number",
                            "lValueRequested": false,
                            "nodeType": "Literal",
                            "src": "1509:2:21",
                            "subdenomination": null,
                            "typeDescriptions": {
                              "typeIdentifier": "t_rational_28_by_1",
                              "typeString": "int_const 28"
                            },
                            "value": "28"
                          },
                          "src": "1499:12:21",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        },
                        "src": "1483:28:21",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      ],
                      "id": 1824,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "1475:7:21",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                        "typeString": "function (bool) pure"
                      }
                    },
                    "id": 1834,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1475:37:21",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 1835,
                  "nodeType": "ExpressionStatement",
                  "src": "1475:37:21"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 1837,
                        "name": "hash",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1817,
                        "src": "1533:4:21",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 1838,
                          "name": "sign",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1819,
                          "src": "1539:4:21",
                          "typeDescriptions": {
                            "typeIdentifier": "t_struct$_signature_$1815_memory_ptr",
                            "typeString": "struct ECDSALib.signature memory"
                          }
                        },
                        "id": 1839,
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "v",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 1810,
                        "src": "1539:6:21",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint8",
                          "typeString": "uint8"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 1840,
                          "name": "sign",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1819,
                          "src": "1547:4:21",
                          "typeDescriptions": {
                            "typeIdentifier": "t_struct$_signature_$1815_memory_ptr",
                            "typeString": "struct ECDSALib.signature memory"
                          }
                        },
                        "id": 1841,
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "r",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 1812,
                        "src": "1547:6:21",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 1842,
                          "name": "sign",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1819,
                          "src": "1555:4:21",
                          "typeDescriptions": {
                            "typeIdentifier": "t_struct$_signature_$1815_memory_ptr",
                            "typeString": "struct ECDSALib.signature memory"
                          }
                        },
                        "id": 1843,
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "s",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 1814,
                        "src": "1555:6:21",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_uint8",
                          "typeString": "uint8"
                        },
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "id": 1836,
                      "name": "ecrecover",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": -6,
                      "src": "1523:9:21",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_ecrecover_pure$_t_bytes32_$_t_uint8_$_t_bytes32_$_t_bytes32_$returns$_t_address_$",
                        "typeString": "function (bytes32,uint8,bytes32,bytes32) pure returns (address)"
                      }
                    },
                    "id": 1844,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1523:39:21",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "functionReturnParameters": 1823,
                  "id": 1845,
                  "nodeType": "Return",
                  "src": "1516:46:21"
                }
              ]
            },
            "documentation": null,
            "functionSelector": "086dc67c",
            "id": 1847,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "recover",
            "nodeType": "FunctionDefinition",
            "overrides": null,
            "parameters": {
              "id": 1820,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1817,
                  "mutability": "mutable",
                  "name": "hash",
                  "nodeType": "VariableDeclaration",
                  "overrides": null,
                  "scope": 1847,
                  "src": "1402:12:21",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 1816,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "1402:7:21",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1819,
                  "mutability": "mutable",
                  "name": "sign",
                  "nodeType": "VariableDeclaration",
                  "overrides": null,
                  "scope": 1847,
                  "src": "1416:21:21",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_struct$_signature_$1815_memory_ptr",
                    "typeString": "struct ECDSALib.signature"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 1818,
                    "name": "signature",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 1815,
                    "src": "1416:9:21",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_signature_$1815_storage_ptr",
                      "typeString": "struct ECDSALib.signature"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1401:37:21"
            },
            "returnParameters": {
              "id": 1823,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1822,
                  "mutability": "mutable",
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "overrides": null,
                  "scope": 1847,
                  "src": "1461:7:21",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 1821,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1461:7:21",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1460:9:21"
            },
            "scope": 1946,
            "src": "1385:181:21",
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "public"
          },
          {
            "body": {
              "id": 1909,
              "nodeType": "Block",
              "src": "1651:701:21",
              "statements": [
                {
                  "assignments": [
                    1857
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 1857,
                      "mutability": "mutable",
                      "name": "r",
                      "nodeType": "VariableDeclaration",
                      "overrides": null,
                      "scope": 1909,
                      "src": "1655:9:21",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bytes32",
                        "typeString": "bytes32"
                      },
                      "typeName": {
                        "id": 1856,
                        "name": "bytes32",
                        "nodeType": "ElementaryTypeName",
                        "src": "1655:7:21",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 1858,
                  "initialValue": null,
                  "nodeType": "VariableDeclarationStatement",
                  "src": "1655:9:21"
                },
                {
                  "assignments": [
                    1860
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 1860,
                      "mutability": "mutable",
                      "name": "s",
                      "nodeType": "VariableDeclaration",
                      "overrides": null,
                      "scope": 1909,
                      "src": "1668:9:21",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bytes32",
                        "typeString": "bytes32"
                      },
                      "typeName": {
                        "id": 1859,
                        "name": "bytes32",
                        "nodeType": "ElementaryTypeName",
                        "src": "1668:7:21",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 1861,
                  "initialValue": null,
                  "nodeType": "VariableDeclarationStatement",
                  "src": "1668:9:21"
                },
                {
                  "assignments": [
                    1863
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 1863,
                      "mutability": "mutable",
                      "name": "v",
                      "nodeType": "VariableDeclaration",
                      "overrides": null,
                      "scope": 1909,
                      "src": "1681:9:21",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint8",
                        "typeString": "uint8"
                      },
                      "typeName": {
                        "id": 1862,
                        "name": "uint8",
                        "nodeType": "ElementaryTypeName",
                        "src": "1681:5:21",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint8",
                          "typeString": "uint8"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 1864,
                  "initialValue": null,
                  "nodeType": "VariableDeclarationStatement",
                  "src": "1681:9:21"
                },
                {
                  "condition": {
                    "argumentTypes": null,
                    "commonType": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    },
                    "id": 1868,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "argumentTypes": null,
                      "expression": {
                        "argumentTypes": null,
                        "id": 1865,
                        "name": "sign",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1851,
                        "src": "1699:4:21",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      },
                      "id": 1866,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "length",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": null,
                      "src": "1699:11:21",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "==",
                    "rightExpression": {
                      "argumentTypes": null,
                      "hexValue": "3635",
                      "id": 1867,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "kind": "number",
                      "lValueRequested": false,
                      "nodeType": "Literal",
                      "src": "1714:2:21",
                      "subdenomination": null,
                      "typeDescriptions": {
                        "typeIdentifier": "t_rational_65_by_1",
                        "typeString": "int_const 65"
                      },
                      "value": "65"
                    },
                    "src": "1699:17:21",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "falseBody": {
                    "condition": {
                      "argumentTypes": null,
                      "commonType": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      },
                      "id": 1874,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "leftExpression": {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 1871,
                          "name": "sign",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1851,
                          "src": "1905:4:21",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes_memory_ptr",
                            "typeString": "bytes memory"
                          }
                        },
                        "id": 1872,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "length",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": null,
                        "src": "1905:11:21",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      "nodeType": "BinaryOperation",
                      "operator": "==",
                      "rightExpression": {
                        "argumentTypes": null,
                        "hexValue": "3634",
                        "id": 1873,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "number",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "1920:2:21",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_rational_64_by_1",
                          "typeString": "int_const 64"
                        },
                        "value": "64"
                      },
                      "src": "1905:17:21",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "falseBody": {
                      "id": 1881,
                      "nodeType": "Block",
                      "src": "2215:44:21",
                      "statements": [
                        {
                          "expression": {
                            "argumentTypes": null,
                            "arguments": [
                              {
                                "argumentTypes": null,
                                "hexValue": "696e76616c69642d7369676e61747572652d666f726d6174",
                                "id": 1878,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "kind": "string",
                                "lValueRequested": false,
                                "nodeType": "Literal",
                                "src": "2227:26:21",
                                "subdenomination": null,
                                "typeDescriptions": {
                                  "typeIdentifier": "t_stringliteral_bd8109ce21237eb5a33faea603eb071141798f132df6d3ef4d09e9865996cefc",
                                  "typeString": "literal_string \"invalid-signature-format\""
                                },
                                "value": "invalid-signature-format"
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_stringliteral_bd8109ce21237eb5a33faea603eb071141798f132df6d3ef4d09e9865996cefc",
                                  "typeString": "literal_string \"invalid-signature-format\""
                                }
                              ],
                              "id": 1877,
                              "name": "revert",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [
                                -19,
                                -19
                              ],
                              "referencedDeclaration": -19,
                              "src": "2220:6:21",
                              "typeDescriptions": {
                                "typeIdentifier": "t_function_revert_pure$_t_string_memory_ptr_$returns$__$",
                                "typeString": "function (string memory) pure"
                              }
                            },
                            "id": 1879,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "kind": "functionCall",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "2220:34:21",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_tuple$__$",
                              "typeString": "tuple()"
                            }
                          },
                          "id": 1880,
                          "nodeType": "ExpressionStatement",
                          "src": "2220:34:21"
                        }
                      ]
                    },
                    "id": 1882,
                    "nodeType": "IfStatement",
                    "src": "1901:358:21",
                    "trueBody": {
                      "id": 1876,
                      "nodeType": "Block",
                      "src": "1966:239:21",
                      "statements": [
                        {
                          "AST": {
                            "nodeType": "YulBlock",
                            "src": "1983:218:21",
                            "statements": [
                              {
                                "nodeType": "YulAssignment",
                                "src": "1989:42:21",
                                "value": {
                                  "arguments": [
                                    {
                                      "arguments": [
                                        {
                                          "name": "sign",
                                          "nodeType": "YulIdentifier",
                                          "src": "2019:4:21"
                                        },
                                        {
                                          "kind": "number",
                                          "nodeType": "YulLiteral",
                                          "src": "2025:4:21",
                                          "type": "",
                                          "value": "0x20"
                                        }
                                      ],
                                      "functionName": {
                                        "name": "add",
                                        "nodeType": "YulIdentifier",
                                        "src": "2015:3:21"
                                      },
                                      "nodeType": "YulFunctionCall",
                                      "src": "2015:15:21"
                                    }
                                  ],
                                  "functionName": {
                                    "name": "mload",
                                    "nodeType": "YulIdentifier",
                                    "src": "2009:5:21"
                                  },
                                  "nodeType": "YulFunctionCall",
                                  "src": "2009:22:21"
                                },
                                "variableNames": [
                                  {
                                    "name": "r",
                                    "nodeType": "YulIdentifier",
                                    "src": "1989:1:21"
                                  }
                                ]
                              },
                              {
                                "nodeType": "YulAssignment",
                                "src": "2036:111:21",
                                "value": {
                                  "arguments": [
                                    {
                                      "arguments": [
                                        {
                                          "arguments": [
                                            {
                                              "name": "sign",
                                              "nodeType": "YulIdentifier",
                                              "src": "2066:4:21"
                                            },
                                            {
                                              "kind": "number",
                                              "nodeType": "YulLiteral",
                                              "src": "2072:4:21",
                                              "type": "",
                                              "value": "0x40"
                                            }
                                          ],
                                          "functionName": {
                                            "name": "add",
                                            "nodeType": "YulIdentifier",
                                            "src": "2062:3:21"
                                          },
                                          "nodeType": "YulFunctionCall",
                                          "src": "2062:15:21"
                                        }
                                      ],
                                      "functionName": {
                                        "name": "mload",
                                        "nodeType": "YulIdentifier",
                                        "src": "2056:5:21"
                                      },
                                      "nodeType": "YulFunctionCall",
                                      "src": "2056:22:21"
                                    },
                                    {
                                      "kind": "number",
                                      "nodeType": "YulLiteral",
                                      "src": "2080:66:21",
                                      "type": "",
                                      "value": "0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
                                    }
                                  ],
                                  "functionName": {
                                    "name": "and",
                                    "nodeType": "YulIdentifier",
                                    "src": "2041:3:21"
                                  },
                                  "nodeType": "YulFunctionCall",
                                  "src": "2041:106:21"
                                },
                                "variableNames": [
                                  {
                                    "name": "s",
                                    "nodeType": "YulIdentifier",
                                    "src": "2036:1:21"
                                  }
                                ]
                              },
                              {
                                "nodeType": "YulAssignment",
                                "src": "2152:44:21",
                                "value": {
                                  "arguments": [
                                    {
                                      "kind": "number",
                                      "nodeType": "YulLiteral",
                                      "src": "2161:1:21",
                                      "type": "",
                                      "value": "7"
                                    },
                                    {
                                      "arguments": [
                                        {
                                          "kind": "number",
                                          "nodeType": "YulLiteral",
                                          "src": "2169:1:21",
                                          "type": "",
                                          "value": "0"
                                        },
                                        {
                                          "arguments": [
                                            {
                                              "arguments": [
                                                {
                                                  "name": "sign",
                                                  "nodeType": "YulIdentifier",
                                                  "src": "2182:4:21"
                                                },
                                                {
                                                  "kind": "number",
                                                  "nodeType": "YulLiteral",
                                                  "src": "2188:4:21",
                                                  "type": "",
                                                  "value": "0x40"
                                                }
                                              ],
                                              "functionName": {
                                                "name": "add",
                                                "nodeType": "YulIdentifier",
                                                "src": "2178:3:21"
                                              },
                                              "nodeType": "YulFunctionCall",
                                              "src": "2178:15:21"
                                            }
                                          ],
                                          "functionName": {
                                            "name": "mload",
                                            "nodeType": "YulIdentifier",
                                            "src": "2172:5:21"
                                          },
                                          "nodeType": "YulFunctionCall",
                                          "src": "2172:22:21"
                                        }
                                      ],
                                      "functionName": {
                                        "name": "byte",
                                        "nodeType": "YulIdentifier",
                                        "src": "2164:4:21"
                                      },
                                      "nodeType": "YulFunctionCall",
                                      "src": "2164:31:21"
                                    }
                                  ],
                                  "functionName": {
                                    "name": "shr",
                                    "nodeType": "YulIdentifier",
                                    "src": "2157:3:21"
                                  },
                                  "nodeType": "YulFunctionCall",
                                  "src": "2157:39:21"
                                },
                                "variableNames": [
                                  {
                                    "name": "v",
                                    "nodeType": "YulIdentifier",
                                    "src": "2152:1:21"
                                  }
                                ]
                              }
                            ]
                          },
                          "evmVersion": "istanbul",
                          "externalReferences": [
                            {
                              "declaration": 1857,
                              "isOffset": false,
                              "isSlot": false,
                              "src": "1989:1:21",
                              "valueSize": 1
                            },
                            {
                              "declaration": 1860,
                              "isOffset": false,
                              "isSlot": false,
                              "src": "2036:1:21",
                              "valueSize": 1
                            },
                            {
                              "declaration": 1851,
                              "isOffset": false,
                              "isSlot": false,
                              "src": "2019:4:21",
                              "valueSize": 1
                            },
                            {
                              "declaration": 1851,
                              "isOffset": false,
                              "isSlot": false,
                              "src": "2066:4:21",
                              "valueSize": 1
                            },
                            {
                              "declaration": 1851,
                              "isOffset": false,
                              "isSlot": false,
                              "src": "2182:4:21",
                              "valueSize": 1
                            },
                            {
                              "declaration": 1863,
                              "isOffset": false,
                              "isSlot": false,
                              "src": "2152:1:21",
                              "valueSize": 1
                            }
                          ],
                          "id": 1875,
                          "nodeType": "InlineAssembly",
                          "src": "1971:230:21"
                        }
                      ]
                    }
                  },
                  "id": 1883,
                  "nodeType": "IfStatement",
                  "src": "1695:564:21",
                  "trueBody": {
                    "id": 1870,
                    "nodeType": "Block",
                    "src": "1745:148:21",
                    "statements": [
                      {
                        "AST": {
                          "nodeType": "YulBlock",
                          "src": "1762:127:21",
                          "statements": [
                            {
                              "nodeType": "YulAssignment",
                              "src": "1768:35:21",
                              "value": {
                                "arguments": [
                                  {
                                    "arguments": [
                                      {
                                        "name": "sign",
                                        "nodeType": "YulIdentifier",
                                        "src": "1791:4:21"
                                      },
                                      {
                                        "kind": "number",
                                        "nodeType": "YulLiteral",
                                        "src": "1797:4:21",
                                        "type": "",
                                        "value": "0x20"
                                      }
                                    ],
                                    "functionName": {
                                      "name": "add",
                                      "nodeType": "YulIdentifier",
                                      "src": "1787:3:21"
                                    },
                                    "nodeType": "YulFunctionCall",
                                    "src": "1787:15:21"
                                  }
                                ],
                                "functionName": {
                                  "name": "mload",
                                  "nodeType": "YulIdentifier",
                                  "src": "1781:5:21"
                                },
                                "nodeType": "YulFunctionCall",
                                "src": "1781:22:21"
                              },
                              "variableNames": [
                                {
                                  "name": "r",
                                  "nodeType": "YulIdentifier",
                                  "src": "1768:1:21"
                                }
                              ]
                            },
                            {
                              "nodeType": "YulAssignment",
                              "src": "1808:35:21",
                              "value": {
                                "arguments": [
                                  {
                                    "arguments": [
                                      {
                                        "name": "sign",
                                        "nodeType": "YulIdentifier",
                                        "src": "1831:4:21"
                                      },
                                      {
                                        "kind": "number",
                                        "nodeType": "YulLiteral",
                                        "src": "1837:4:21",
                                        "type": "",
                                        "value": "0x40"
                                      }
                                    ],
                                    "functionName": {
                                      "name": "add",
                                      "nodeType": "YulIdentifier",
                                      "src": "1827:3:21"
                                    },
                                    "nodeType": "YulFunctionCall",
                                    "src": "1827:15:21"
                                  }
                                ],
                                "functionName": {
                                  "name": "mload",
                                  "nodeType": "YulIdentifier",
                                  "src": "1821:5:21"
                                },
                                "nodeType": "YulFunctionCall",
                                "src": "1821:22:21"
                              },
                              "variableNames": [
                                {
                                  "name": "s",
                                  "nodeType": "YulIdentifier",
                                  "src": "1808:1:21"
                                }
                              ]
                            },
                            {
                              "nodeType": "YulAssignment",
                              "src": "1848:36:21",
                              "value": {
                                "arguments": [
                                  {
                                    "kind": "number",
                                    "nodeType": "YulLiteral",
                                    "src": "1858:1:21",
                                    "type": "",
                                    "value": "0"
                                  },
                                  {
                                    "arguments": [
                                      {
                                        "arguments": [
                                          {
                                            "name": "sign",
                                            "nodeType": "YulIdentifier",
                                            "src": "1871:4:21"
                                          },
                                          {
                                            "kind": "number",
                                            "nodeType": "YulLiteral",
                                            "src": "1877:4:21",
                                            "type": "",
                                            "value": "0x60"
                                          }
                                        ],
                                        "functionName": {
                                          "name": "add",
                                          "nodeType": "YulIdentifier",
                                          "src": "1867:3:21"
                                        },
                                        "nodeType": "YulFunctionCall",
                                        "src": "1867:15:21"
                                      }
                                    ],
                                    "functionName": {
                                      "name": "mload",
                                      "nodeType": "YulIdentifier",
                                      "src": "1861:5:21"
                                    },
                                    "nodeType": "YulFunctionCall",
                                    "src": "1861:22:21"
                                  }
                                ],
                                "functionName": {
                                  "name": "byte",
                                  "nodeType": "YulIdentifier",
                                  "src": "1853:4:21"
                                },
                                "nodeType": "YulFunctionCall",
                                "src": "1853:31:21"
                              },
                              "variableNames": [
                                {
                                  "name": "v",
                                  "nodeType": "YulIdentifier",
                                  "src": "1848:1:21"
                                }
                              ]
                            }
                          ]
                        },
                        "evmVersion": "istanbul",
                        "externalReferences": [
                          {
                            "declaration": 1857,
                            "isOffset": false,
                            "isSlot": false,
                            "src": "1768:1:21",
                            "valueSize": 1
                          },
                          {
                            "declaration": 1860,
                            "isOffset": false,
                            "isSlot": false,
                            "src": "1808:1:21",
                            "valueSize": 1
                          },
                          {
                            "declaration": 1851,
                            "isOffset": false,
                            "isSlot": false,
                            "src": "1791:4:21",
                            "valueSize": 1
                          },
                          {
                            "declaration": 1851,
                            "isOffset": false,
                            "isSlot": false,
                            "src": "1831:4:21",
                            "valueSize": 1
                          },
                          {
                            "declaration": 1851,
                            "isOffset": false,
                            "isSlot": false,
                            "src": "1871:4:21",
                            "valueSize": 1
                          },
                          {
                            "declaration": 1863,
                            "isOffset": false,
                            "isSlot": false,
                            "src": "1848:1:21",
                            "valueSize": 1
                          }
                        ],
                        "id": 1869,
                        "nodeType": "InlineAssembly",
                        "src": "1750:139:21"
                      }
                    ]
                  }
                },
                {
                  "condition": {
                    "argumentTypes": null,
                    "commonType": {
                      "typeIdentifier": "t_uint8",
                      "typeString": "uint8"
                    },
                    "id": 1886,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "argumentTypes": null,
                      "id": 1884,
                      "name": "v",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 1863,
                      "src": "2267:1:21",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint8",
                        "typeString": "uint8"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "<",
                    "rightExpression": {
                      "argumentTypes": null,
                      "hexValue": "3237",
                      "id": 1885,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "kind": "number",
                      "lValueRequested": false,
                      "nodeType": "Literal",
                      "src": "2271:2:21",
                      "subdenomination": null,
                      "typeDescriptions": {
                        "typeIdentifier": "t_rational_27_by_1",
                        "typeString": "int_const 27"
                      },
                      "value": "27"
                    },
                    "src": "2267:6:21",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "falseBody": null,
                  "id": 1891,
                  "nodeType": "IfStatement",
                  "src": "2263:19:21",
                  "trueBody": {
                    "expression": {
                      "argumentTypes": null,
                      "id": 1889,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "leftHandSide": {
                        "argumentTypes": null,
                        "id": 1887,
                        "name": "v",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1863,
                        "src": "2275:1:21",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint8",
                          "typeString": "uint8"
                        }
                      },
                      "nodeType": "Assignment",
                      "operator": "+=",
                      "rightHandSide": {
                        "argumentTypes": null,
                        "hexValue": "3237",
                        "id": 1888,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "number",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "2280:2:21",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_rational_27_by_1",
                          "typeString": "int_const 27"
                        },
                        "value": "27"
                      },
                      "src": "2275:7:21",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint8",
                        "typeString": "uint8"
                      }
                    },
                    "id": 1890,
                    "nodeType": "ExpressionStatement",
                    "src": "2275:7:21"
                  }
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        "id": 1899,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_uint8",
                            "typeString": "uint8"
                          },
                          "id": 1895,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "id": 1893,
                            "name": "v",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 1863,
                            "src": "2294:1:21",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint8",
                              "typeString": "uint8"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "==",
                          "rightExpression": {
                            "argumentTypes": null,
                            "hexValue": "3237",
                            "id": 1894,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "number",
                            "lValueRequested": false,
                            "nodeType": "Literal",
                            "src": "2299:2:21",
                            "subdenomination": null,
                            "typeDescriptions": {
                              "typeIdentifier": "t_rational_27_by_1",
                              "typeString": "int_const 27"
                            },
                            "value": "27"
                          },
                          "src": "2294:7:21",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "||",
                        "rightExpression": {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_uint8",
                            "typeString": "uint8"
                          },
                          "id": 1898,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "id": 1896,
                            "name": "v",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 1863,
                            "src": "2305:1:21",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint8",
                              "typeString": "uint8"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "==",
                          "rightExpression": {
                            "argumentTypes": null,
                            "hexValue": "3238",
                            "id": 1897,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "number",
                            "lValueRequested": false,
                            "nodeType": "Literal",
                            "src": "2310:2:21",
                            "subdenomination": null,
                            "typeDescriptions": {
                              "typeIdentifier": "t_rational_28_by_1",
                              "typeString": "int_const 28"
                            },
                            "value": "28"
                          },
                          "src": "2305:7:21",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        },
                        "src": "2294:18:21",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      ],
                      "id": 1892,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "2286:7:21",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                        "typeString": "function (bool) pure"
                      }
                    },
                    "id": 1900,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "2286:27:21",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 1901,
                  "nodeType": "ExpressionStatement",
                  "src": "2286:27:21"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 1903,
                        "name": "hash",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1849,
                        "src": "2334:4:21",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 1904,
                        "name": "v",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1863,
                        "src": "2340:1:21",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint8",
                          "typeString": "uint8"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 1905,
                        "name": "r",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1857,
                        "src": "2343:1:21",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 1906,
                        "name": "s",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1860,
                        "src": "2346:1:21",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_uint8",
                          "typeString": "uint8"
                        },
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "id": 1902,
                      "name": "ecrecover",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": -6,
                      "src": "2324:9:21",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_ecrecover_pure$_t_bytes32_$_t_uint8_$_t_bytes32_$_t_bytes32_$returns$_t_address_$",
                        "typeString": "function (bytes32,uint8,bytes32,bytes32) pure returns (address)"
                      }
                    },
                    "id": 1907,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "2324:24:21",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "functionReturnParameters": 1855,
                  "id": 1908,
                  "nodeType": "Return",
                  "src": "2317:31:21"
                }
              ]
            },
            "documentation": null,
            "functionSelector": "19045a25",
            "id": 1910,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "recover",
            "nodeType": "FunctionDefinition",
            "overrides": null,
            "parameters": {
              "id": 1852,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1849,
                  "mutability": "mutable",
                  "name": "hash",
                  "nodeType": "VariableDeclaration",
                  "overrides": null,
                  "scope": 1910,
                  "src": "1586:12:21",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 1848,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "1586:7:21",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1851,
                  "mutability": "mutable",
                  "name": "sign",
                  "nodeType": "VariableDeclaration",
                  "overrides": null,
                  "scope": 1910,
                  "src": "1600:17:21",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 1850,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "1600:5:21",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1585:33:21"
            },
            "returnParameters": {
              "id": 1855,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1854,
                  "mutability": "mutable",
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "overrides": null,
                  "scope": 1910,
                  "src": "1641:7:21",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 1853,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1641:7:21",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1640:9:21"
            },
            "scope": 1946,
            "src": "1569:783:21",
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "public"
          },
          {
            "body": {
              "id": 1925,
              "nodeType": "Block",
              "src": "2433:84:21",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "arguments": [
                          {
                            "argumentTypes": null,
                            "hexValue": "19457468657265756d205369676e6564204d6573736167653a0a3332",
                            "id": 1920,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "string",
                            "lValueRequested": false,
                            "nodeType": "Literal",
                            "src": "2471:34:21",
                            "subdenomination": null,
                            "typeDescriptions": {
                              "typeIdentifier": "t_stringliteral_178a2411ab6fbc1ba11064408972259c558d0e82fd48b0aba3ad81d14f065e73",
                              "typeString": "literal_string \"\u0019Ethereum Signed Message:\n32\""
                            },
                            "value": "\u0019Ethereum Signed Message:\n32"
                          },
                          {
                            "argumentTypes": null,
                            "id": 1921,
                            "name": "hash",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 1912,
                            "src": "2507:4:21",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes32",
                              "typeString": "bytes32"
                            }
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_stringliteral_178a2411ab6fbc1ba11064408972259c558d0e82fd48b0aba3ad81d14f065e73",
                              "typeString": "literal_string \"\u0019Ethereum Signed Message:\n32\""
                            },
                            {
                              "typeIdentifier": "t_bytes32",
                              "typeString": "bytes32"
                            }
                          ],
                          "expression": {
                            "argumentTypes": null,
                            "id": 1918,
                            "name": "abi",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": -1,
                            "src": "2454:3:21",
                            "typeDescriptions": {
                              "typeIdentifier": "t_magic_abi",
                              "typeString": "abi"
                            }
                          },
                          "id": 1919,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "memberName": "encodePacked",
                          "nodeType": "MemberAccess",
                          "referencedDeclaration": null,
                          "src": "2454:16:21",
                          "typeDescriptions": {
                            "typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$",
                            "typeString": "function () pure returns (bytes memory)"
                          }
                        },
                        "id": 1922,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "functionCall",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "2454:58:21",
                        "tryCall": false,
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      ],
                      "id": 1917,
                      "name": "keccak256",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": -8,
                      "src": "2444:9:21",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$",
                        "typeString": "function (bytes memory) pure returns (bytes32)"
                      }
                    },
                    "id": 1923,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "2444:69:21",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "functionReturnParameters": 1916,
                  "id": 1924,
                  "nodeType": "Return",
                  "src": "2437:76:21"
                }
              ]
            },
            "documentation": null,
            "functionSelector": "918a15cf",
            "id": 1926,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toEthSignedMessageHash",
            "nodeType": "FunctionDefinition",
            "overrides": null,
            "parameters": {
              "id": 1913,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1912,
                  "mutability": "mutable",
                  "name": "hash",
                  "nodeType": "VariableDeclaration",
                  "overrides": null,
                  "scope": 1926,
                  "src": "2387:12:21",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 1911,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "2387:7:21",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "2386:14:21"
            },
            "returnParameters": {
              "id": 1916,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1915,
                  "mutability": "mutable",
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "overrides": null,
                  "scope": 1926,
                  "src": "2423:7:21",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 1914,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "2423:7:21",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "2422:9:21"
            },
            "scope": 1946,
            "src": "2355:162:21",
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "public"
          },
          {
            "body": {
              "id": 1944,
              "nodeType": "Block",
              "src": "2629:85:21",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "arguments": [
                          {
                            "argumentTypes": null,
                            "hexValue": "1901",
                            "id": 1938,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "string",
                            "lValueRequested": false,
                            "nodeType": "Literal",
                            "src": "2667:10:21",
                            "subdenomination": null,
                            "typeDescriptions": {
                              "typeIdentifier": "t_stringliteral_301a50b291d33ce1e8e9064e3f6a6c51d902ec22892b50d58abf6357c6a45541",
                              "typeString": "literal_string \"\u0019\u0001\""
                            },
                            "value": "\u0019\u0001"
                          },
                          {
                            "argumentTypes": null,
                            "id": 1939,
                            "name": "domain_separator",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 1930,
                            "src": "2679:16:21",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes32",
                              "typeString": "bytes32"
                            }
                          },
                          {
                            "argumentTypes": null,
                            "id": 1940,
                            "name": "struct_hash",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 1928,
                            "src": "2697:11:21",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes32",
                              "typeString": "bytes32"
                            }
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_stringliteral_301a50b291d33ce1e8e9064e3f6a6c51d902ec22892b50d58abf6357c6a45541",
                              "typeString": "literal_string \"\u0019\u0001\""
                            },
                            {
                              "typeIdentifier": "t_bytes32",
                              "typeString": "bytes32"
                            },
                            {
                              "typeIdentifier": "t_bytes32",
                              "typeString": "bytes32"
                            }
                          ],
                          "expression": {
                            "argumentTypes": null,
                            "id": 1936,
                            "name": "abi",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": -1,
                            "src": "2650:3:21",
                            "typeDescriptions": {
                              "typeIdentifier": "t_magic_abi",
                              "typeString": "abi"
                            }
                          },
                          "id": 1937,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "memberName": "encodePacked",
                          "nodeType": "MemberAccess",
                          "referencedDeclaration": null,
                          "src": "2650:16:21",
                          "typeDescriptions": {
                            "typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$",
                            "typeString": "function () pure returns (bytes memory)"
                          }
                        },
                        "id": 1941,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "functionCall",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "2650:59:21",
                        "tryCall": false,
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      ],
                      "id": 1935,
                      "name": "keccak256",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": -8,
                      "src": "2640:9:21",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$",
                        "typeString": "function (bytes memory) pure returns (bytes32)"
                      }
                    },
                    "id": 1942,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "2640:70:21",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "functionReturnParameters": 1934,
                  "id": 1943,
                  "nodeType": "Return",
                  "src": "2633:77:21"
                }
              ]
            },
            "documentation": null,
            "functionSelector": "176eaa49",
            "id": 1945,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toEthTypedStructHash",
            "nodeType": "FunctionDefinition",
            "overrides": null,
            "parameters": {
              "id": 1931,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1928,
                  "mutability": "mutable",
                  "name": "struct_hash",
                  "nodeType": "VariableDeclaration",
                  "overrides": null,
                  "scope": 1945,
                  "src": "2550:19:21",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 1927,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "2550:7:21",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1930,
                  "mutability": "mutable",
                  "name": "domain_separator",
                  "nodeType": "VariableDeclaration",
                  "overrides": null,
                  "scope": 1945,
                  "src": "2571:24:21",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 1929,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "2571:7:21",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "2549:47:21"
            },
            "returnParameters": {
              "id": 1934,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1933,
                  "mutability": "mutable",
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "overrides": null,
                  "scope": 1945,
                  "src": "2619:7:21",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 1932,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "2619:7:21",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "2618:9:21"
            },
            "scope": 1946,
            "src": "2520:194:21",
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "public"
          }
        ],
        "scope": 1947,
        "src": "1301:1415:21"
      }
    ],
    "src": "1242:1475:21"
  },
  "legacyAST": {
    "absolutePath": "/Users/gabriel/Documents/iexec/poco-boost/iexec-solidity/contracts/Libs/ECDSALib.sol",
    "exportedSymbols": {
      "ECDSALib": [
        1946
      ]
    },
    "id": 1947,
    "license": "Apache-2.0",
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 1807,
        "literals": [
          "solidity",
          "^",
          "0.6",
          ".0"
        ],
        "nodeType": "PragmaDirective",
        "src": "1242:23:21"
      },
      {
        "id": 1808,
        "literals": [
          "experimental",
          "ABIEncoderV2"
        ],
        "nodeType": "PragmaDirective",
        "src": "1266:33:21"
      },
      {
        "abstract": false,
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "library",
        "documentation": null,
        "fullyImplemented": true,
        "id": 1946,
        "linearizedBaseContracts": [
          1946
        ],
        "name": "ECDSALib",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "canonicalName": "ECDSALib.signature",
            "id": 1815,
            "members": [
              {
                "constant": false,
                "id": 1810,
                "mutability": "mutable",
                "name": "v",
                "nodeType": "VariableDeclaration",
                "overrides": null,
                "scope": 1815,
                "src": "1343:9:21",
                "stateVariable": false,
                "storageLocation": "default",
                "typeDescriptions": {
                  "typeIdentifier": "t_uint8",
                  "typeString": "uint8"
                },
                "typeName": {
                  "id": 1809,
                  "name": "uint8",
                  "nodeType": "ElementaryTypeName",
                  "src": "1343:5:21",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint8",
                    "typeString": "uint8"
                  }
                },
                "value": null,
                "visibility": "internal"
              },
              {
                "constant": false,
                "id": 1812,
                "mutability": "mutable",
                "name": "r",
                "nodeType": "VariableDeclaration",
                "overrides": null,
                "scope": 1815,
                "src": "1356:9:21",
                "stateVariable": false,
                "storageLocation": "default",
                "typeDescriptions": {
                  "typeIdentifier": "t_bytes32",
                  "typeString": "bytes32"
                },
                "typeName": {
                  "id": 1811,
                  "name": "bytes32",
                  "nodeType": "ElementaryTypeName",
                  "src": "1356:7:21",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  }
                },
                "value": null,
                "visibility": "internal"
              },
              {
                "constant": false,
                "id": 1814,
                "mutability": "mutable",
                "name": "s",
                "nodeType": "VariableDeclaration",
                "overrides": null,
                "scope": 1815,
                "src": "1369:9:21",
                "stateVariable": false,
                "storageLocation": "default",
                "typeDescriptions": {
                  "typeIdentifier": "t_bytes32",
                  "typeString": "bytes32"
                },
                "typeName": {
                  "id": 1813,
                  "name": "bytes32",
                  "nodeType": "ElementaryTypeName",
                  "src": "1369:7:21",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  }
                },
                "value": null,
                "visibility": "internal"
              }
            ],
            "name": "signature",
            "nodeType": "StructDefinition",
            "scope": 1946,
            "src": "1321:61:21",
            "visibility": "public"
          },
          {
            "body": {
              "id": 1846,
              "nodeType": "Block",
              "src": "1471:95:21",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        "id": 1833,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_uint8",
                            "typeString": "uint8"
                          },
                          "id": 1828,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "id": 1825,
                              "name": "sign",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 1819,
                              "src": "1483:4:21",
                              "typeDescriptions": {
                                "typeIdentifier": "t_struct$_signature_$1815_memory_ptr",
                                "typeString": "struct ECDSALib.signature memory"
                              }
                            },
                            "id": 1826,
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "v",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": 1810,
                            "src": "1483:6:21",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint8",
                              "typeString": "uint8"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "==",
                          "rightExpression": {
                            "argumentTypes": null,
                            "hexValue": "3237",
                            "id": 1827,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "number",
                            "lValueRequested": false,
                            "nodeType": "Literal",
                            "src": "1493:2:21",
                            "subdenomination": null,
                            "typeDescriptions": {
                              "typeIdentifier": "t_rational_27_by_1",
                              "typeString": "int_const 27"
                            },
                            "value": "27"
                          },
                          "src": "1483:12:21",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "||",
                        "rightExpression": {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_uint8",
                            "typeString": "uint8"
                          },
                          "id": 1832,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "id": 1829,
                              "name": "sign",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 1819,
                              "src": "1499:4:21",
                              "typeDescriptions": {
                                "typeIdentifier": "t_struct$_signature_$1815_memory_ptr",
                                "typeString": "struct ECDSALib.signature memory"
                              }
                            },
                            "id": 1830,
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "v",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": 1810,
                            "src": "1499:6:21",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint8",
                              "typeString": "uint8"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "==",
                          "rightExpression": {
                            "argumentTypes": null,
                            "hexValue": "3238",
                            "id": 1831,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "number",
                            "lValueRequested": false,
                            "nodeType": "Literal",
                            "src": "1509:2:21",
                            "subdenomination": null,
                            "typeDescriptions": {
                              "typeIdentifier": "t_rational_28_by_1",
                              "typeString": "int_const 28"
                            },
                            "value": "28"
                          },
                          "src": "1499:12:21",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        },
                        "src": "1483:28:21",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      ],
                      "id": 1824,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "1475:7:21",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                        "typeString": "function (bool) pure"
                      }
                    },
                    "id": 1834,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1475:37:21",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 1835,
                  "nodeType": "ExpressionStatement",
                  "src": "1475:37:21"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 1837,
                        "name": "hash",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1817,
                        "src": "1533:4:21",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 1838,
                          "name": "sign",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1819,
                          "src": "1539:4:21",
                          "typeDescriptions": {
                            "typeIdentifier": "t_struct$_signature_$1815_memory_ptr",
                            "typeString": "struct ECDSALib.signature memory"
                          }
                        },
                        "id": 1839,
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "v",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 1810,
                        "src": "1539:6:21",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint8",
                          "typeString": "uint8"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 1840,
                          "name": "sign",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1819,
                          "src": "1547:4:21",
                          "typeDescriptions": {
                            "typeIdentifier": "t_struct$_signature_$1815_memory_ptr",
                            "typeString": "struct ECDSALib.signature memory"
                          }
                        },
                        "id": 1841,
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "r",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 1812,
                        "src": "1547:6:21",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 1842,
                          "name": "sign",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1819,
                          "src": "1555:4:21",
                          "typeDescriptions": {
                            "typeIdentifier": "t_struct$_signature_$1815_memory_ptr",
                            "typeString": "struct ECDSALib.signature memory"
                          }
                        },
                        "id": 1843,
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "s",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 1814,
                        "src": "1555:6:21",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_uint8",
                          "typeString": "uint8"
                        },
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "id": 1836,
                      "name": "ecrecover",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": -6,
                      "src": "1523:9:21",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_ecrecover_pure$_t_bytes32_$_t_uint8_$_t_bytes32_$_t_bytes32_$returns$_t_address_$",
                        "typeString": "function (bytes32,uint8,bytes32,bytes32) pure returns (address)"
                      }
                    },
                    "id": 1844,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1523:39:21",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "functionReturnParameters": 1823,
                  "id": 1845,
                  "nodeType": "Return",
                  "src": "1516:46:21"
                }
              ]
            },
            "documentation": null,
            "functionSelector": "086dc67c",
            "id": 1847,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "recover",
            "nodeType": "FunctionDefinition",
            "overrides": null,
            "parameters": {
              "id": 1820,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1817,
                  "mutability": "mutable",
                  "name": "hash",
                  "nodeType": "VariableDeclaration",
                  "overrides": null,
                  "scope": 1847,
                  "src": "1402:12:21",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 1816,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "1402:7:21",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1819,
                  "mutability": "mutable",
                  "name": "sign",
                  "nodeType": "VariableDeclaration",
                  "overrides": null,
                  "scope": 1847,
                  "src": "1416:21:21",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_struct$_signature_$1815_memory_ptr",
                    "typeString": "struct ECDSALib.signature"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 1818,
                    "name": "signature",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 1815,
                    "src": "1416:9:21",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_signature_$1815_storage_ptr",
                      "typeString": "struct ECDSALib.signature"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1401:37:21"
            },
            "returnParameters": {
              "id": 1823,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1822,
                  "mutability": "mutable",
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "overrides": null,
                  "scope": 1847,
                  "src": "1461:7:21",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 1821,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1461:7:21",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1460:9:21"
            },
            "scope": 1946,
            "src": "1385:181:21",
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "public"
          },
          {
            "body": {
              "id": 1909,
              "nodeType": "Block",
              "src": "1651:701:21",
              "statements": [
                {
                  "assignments": [
                    1857
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 1857,
                      "mutability": "mutable",
                      "name": "r",
                      "nodeType": "VariableDeclaration",
                      "overrides": null,
                      "scope": 1909,
                      "src": "1655:9:21",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bytes32",
                        "typeString": "bytes32"
                      },
                      "typeName": {
                        "id": 1856,
                        "name": "bytes32",
                        "nodeType": "ElementaryTypeName",
                        "src": "1655:7:21",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 1858,
                  "initialValue": null,
                  "nodeType": "VariableDeclarationStatement",
                  "src": "1655:9:21"
                },
                {
                  "assignments": [
                    1860
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 1860,
                      "mutability": "mutable",
                      "name": "s",
                      "nodeType": "VariableDeclaration",
                      "overrides": null,
                      "scope": 1909,
                      "src": "1668:9:21",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bytes32",
                        "typeString": "bytes32"
                      },
                      "typeName": {
                        "id": 1859,
                        "name": "bytes32",
                        "nodeType": "ElementaryTypeName",
                        "src": "1668:7:21",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 1861,
                  "initialValue": null,
                  "nodeType": "VariableDeclarationStatement",
                  "src": "1668:9:21"
                },
                {
                  "assignments": [
                    1863
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 1863,
                      "mutability": "mutable",
                      "name": "v",
                      "nodeType": "VariableDeclaration",
                      "overrides": null,
                      "scope": 1909,
                      "src": "1681:9:21",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint8",
                        "typeString": "uint8"
                      },
                      "typeName": {
                        "id": 1862,
                        "name": "uint8",
                        "nodeType": "ElementaryTypeName",
                        "src": "1681:5:21",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint8",
                          "typeString": "uint8"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 1864,
                  "initialValue": null,
                  "nodeType": "VariableDeclarationStatement",
                  "src": "1681:9:21"
                },
                {
                  "condition": {
                    "argumentTypes": null,
                    "commonType": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    },
                    "id": 1868,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "argumentTypes": null,
                      "expression": {
                        "argumentTypes": null,
                        "id": 1865,
                        "name": "sign",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1851,
                        "src": "1699:4:21",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      },
                      "id": 1866,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "length",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": null,
                      "src": "1699:11:21",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "==",
                    "rightExpression": {
                      "argumentTypes": null,
                      "hexValue": "3635",
                      "id": 1867,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "kind": "number",
                      "lValueRequested": false,
                      "nodeType": "Literal",
                      "src": "1714:2:21",
                      "subdenomination": null,
                      "typeDescriptions": {
                        "typeIdentifier": "t_rational_65_by_1",
                        "typeString": "int_const 65"
                      },
                      "value": "65"
                    },
                    "src": "1699:17:21",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "falseBody": {
                    "condition": {
                      "argumentTypes": null,
                      "commonType": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      },
                      "id": 1874,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "leftExpression": {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 1871,
                          "name": "sign",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1851,
                          "src": "1905:4:21",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes_memory_ptr",
                            "typeString": "bytes memory"
                          }
                        },
                        "id": 1872,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "length",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": null,
                        "src": "1905:11:21",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      "nodeType": "BinaryOperation",
                      "operator": "==",
                      "rightExpression": {
                        "argumentTypes": null,
                        "hexValue": "3634",
                        "id": 1873,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "number",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "1920:2:21",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_rational_64_by_1",
                          "typeString": "int_const 64"
                        },
                        "value": "64"
                      },
                      "src": "1905:17:21",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "falseBody": {
                      "id": 1881,
                      "nodeType": "Block",
                      "src": "2215:44:21",
                      "statements": [
                        {
                          "expression": {
                            "argumentTypes": null,
                            "arguments": [
                              {
                                "argumentTypes": null,
                                "hexValue": "696e76616c69642d7369676e61747572652d666f726d6174",
                                "id": 1878,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "kind": "string",
                                "lValueRequested": false,
                                "nodeType": "Literal",
                                "src": "2227:26:21",
                                "subdenomination": null,
                                "typeDescriptions": {
                                  "typeIdentifier": "t_stringliteral_bd8109ce21237eb5a33faea603eb071141798f132df6d3ef4d09e9865996cefc",
                                  "typeString": "literal_string \"invalid-signature-format\""
                                },
                                "value": "invalid-signature-format"
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_stringliteral_bd8109ce21237eb5a33faea603eb071141798f132df6d3ef4d09e9865996cefc",
                                  "typeString": "literal_string \"invalid-signature-format\""
                                }
                              ],
                              "id": 1877,
                              "name": "revert",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [
                                -19,
                                -19
                              ],
                              "referencedDeclaration": -19,
                              "src": "2220:6:21",
                              "typeDescriptions": {
                                "typeIdentifier": "t_function_revert_pure$_t_string_memory_ptr_$returns$__$",
                                "typeString": "function (string memory) pure"
                              }
                            },
                            "id": 1879,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "kind": "functionCall",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "2220:34:21",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_tuple$__$",
                              "typeString": "tuple()"
                            }
                          },
                          "id": 1880,
                          "nodeType": "ExpressionStatement",
                          "src": "2220:34:21"
                        }
                      ]
                    },
                    "id": 1882,
                    "nodeType": "IfStatement",
                    "src": "1901:358:21",
                    "trueBody": {
                      "id": 1876,
                      "nodeType": "Block",
                      "src": "1966:239:21",
                      "statements": [
                        {
                          "AST": {
                            "nodeType": "YulBlock",
                            "src": "1983:218:21",
                            "statements": [
                              {
                                "nodeType": "YulAssignment",
                                "src": "1989:42:21",
                                "value": {
                                  "arguments": [
                                    {
                                      "arguments": [
                                        {
                                          "name": "sign",
                                          "nodeType": "YulIdentifier",
                                          "src": "2019:4:21"
                                        },
                                        {
                                          "kind": "number",
                                          "nodeType": "YulLiteral",
                                          "src": "2025:4:21",
                                          "type": "",
                                          "value": "0x20"
                                        }
                                      ],
                                      "functionName": {
                                        "name": "add",
                                        "nodeType": "YulIdentifier",
                                        "src": "2015:3:21"
                                      },
                                      "nodeType": "YulFunctionCall",
                                      "src": "2015:15:21"
                                    }
                                  ],
                                  "functionName": {
                                    "name": "mload",
                                    "nodeType": "YulIdentifier",
                                    "src": "2009:5:21"
                                  },
                                  "nodeType": "YulFunctionCall",
                                  "src": "2009:22:21"
                                },
                                "variableNames": [
                                  {
                                    "name": "r",
                                    "nodeType": "YulIdentifier",
                                    "src": "1989:1:21"
                                  }
                                ]
                              },
                              {
                                "nodeType": "YulAssignment",
                                "src": "2036:111:21",
                                "value": {
                                  "arguments": [
                                    {
                                      "arguments": [
                                        {
                                          "arguments": [
                                            {
                                              "name": "sign",
                                              "nodeType": "YulIdentifier",
                                              "src": "2066:4:21"
                                            },
                                            {
                                              "kind": "number",
                                              "nodeType": "YulLiteral",
                                              "src": "2072:4:21",
                                              "type": "",
                                              "value": "0x40"
                                            }
                                          ],
                                          "functionName": {
                                            "name": "add",
                                            "nodeType": "YulIdentifier",
                                            "src": "2062:3:21"
                                          },
                                          "nodeType": "YulFunctionCall",
                                          "src": "2062:15:21"
                                        }
                                      ],
                                      "functionName": {
                                        "name": "mload",
                                        "nodeType": "YulIdentifier",
                                        "src": "2056:5:21"
                                      },
                                      "nodeType": "YulFunctionCall",
                                      "src": "2056:22:21"
                                    },
                                    {
                                      "kind": "number",
                                      "nodeType": "YulLiteral",
                                      "src": "2080:66:21",
                                      "type": "",
                                      "value": "0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
                                    }
                                  ],
                                  "functionName": {
                                    "name": "and",
                                    "nodeType": "YulIdentifier",
                                    "src": "2041:3:21"
                                  },
                                  "nodeType": "YulFunctionCall",
                                  "src": "2041:106:21"
                                },
                                "variableNames": [
                                  {
                                    "name": "s",
                                    "nodeType": "YulIdentifier",
                                    "src": "2036:1:21"
                                  }
                                ]
                              },
                              {
                                "nodeType": "YulAssignment",
                                "src": "2152:44:21",
                                "value": {
                                  "arguments": [
                                    {
                                      "kind": "number",
                                      "nodeType": "YulLiteral",
                                      "src": "2161:1:21",
                                      "type": "",
                                      "value": "7"
                                    },
                                    {
                                      "arguments": [
                                        {
                                          "kind": "number",
                                          "nodeType": "YulLiteral",
                                          "src": "2169:1:21",
                                          "type": "",
                                          "value": "0"
                                        },
                                        {
                                          "arguments": [
                                            {
                                              "arguments": [
                                                {
                                                  "name": "sign",
                                                  "nodeType": "YulIdentifier",
                                                  "src": "2182:4:21"
                                                },
                                                {
                                                  "kind": "number",
                                                  "nodeType": "YulLiteral",
                                                  "src": "2188:4:21",
                                                  "type": "",
                                                  "value": "0x40"
                                                }
                                              ],
                                              "functionName": {
                                                "name": "add",
                                                "nodeType": "YulIdentifier",
                                                "src": "2178:3:21"
                                              },
                                              "nodeType": "YulFunctionCall",
                                              "src": "2178:15:21"
                                            }
                                          ],
                                          "functionName": {
                                            "name": "mload",
                                            "nodeType": "YulIdentifier",
                                            "src": "2172:5:21"
                                          },
                                          "nodeType": "YulFunctionCall",
                                          "src": "2172:22:21"
                                        }
                                      ],
                                      "functionName": {
                                        "name": "byte",
                                        "nodeType": "YulIdentifier",
                                        "src": "2164:4:21"
                                      },
                                      "nodeType": "YulFunctionCall",
                                      "src": "2164:31:21"
                                    }
                                  ],
                                  "functionName": {
                                    "name": "shr",
                                    "nodeType": "YulIdentifier",
                                    "src": "2157:3:21"
                                  },
                                  "nodeType": "YulFunctionCall",
                                  "src": "2157:39:21"
                                },
                                "variableNames": [
                                  {
                                    "name": "v",
                                    "nodeType": "YulIdentifier",
                                    "src": "2152:1:21"
                                  }
                                ]
                              }
                            ]
                          },
                          "evmVersion": "istanbul",
                          "externalReferences": [
                            {
                              "declaration": 1857,
                              "isOffset": false,
                              "isSlot": false,
                              "src": "1989:1:21",
                              "valueSize": 1
                            },
                            {
                              "declaration": 1860,
                              "isOffset": false,
                              "isSlot": false,
                              "src": "2036:1:21",
                              "valueSize": 1
                            },
                            {
                              "declaration": 1851,
                              "isOffset": false,
                              "isSlot": false,
                              "src": "2019:4:21",
                              "valueSize": 1
                            },
                            {
                              "declaration": 1851,
                              "isOffset": false,
                              "isSlot": false,
                              "src": "2066:4:21",
                              "valueSize": 1
                            },
                            {
                              "declaration": 1851,
                              "isOffset": false,
                              "isSlot": false,
                              "src": "2182:4:21",
                              "valueSize": 1
                            },
                            {
                              "declaration": 1863,
                              "isOffset": false,
                              "isSlot": false,
                              "src": "2152:1:21",
                              "valueSize": 1
                            }
                          ],
                          "id": 1875,
                          "nodeType": "InlineAssembly",
                          "src": "1971:230:21"
                        }
                      ]
                    }
                  },
                  "id": 1883,
                  "nodeType": "IfStatement",
                  "src": "1695:564:21",
                  "trueBody": {
                    "id": 1870,
                    "nodeType": "Block",
                    "src": "1745:148:21",
                    "statements": [
                      {
                        "AST": {
                          "nodeType": "YulBlock",
                          "src": "1762:127:21",
                          "statements": [
                            {
                              "nodeType": "YulAssignment",
                              "src": "1768:35:21",
                              "value": {
                                "arguments": [
                                  {
                                    "arguments": [
                                      {
                                        "name": "sign",
                                        "nodeType": "YulIdentifier",
                                        "src": "1791:4:21"
                                      },
                                      {
                                        "kind": "number",
                                        "nodeType": "YulLiteral",
                                        "src": "1797:4:21",
                                        "type": "",
                                        "value": "0x20"
                                      }
                                    ],
                                    "functionName": {
                                      "name": "add",
                                      "nodeType": "YulIdentifier",
                                      "src": "1787:3:21"
                                    },
                                    "nodeType": "YulFunctionCall",
                                    "src": "1787:15:21"
                                  }
                                ],
                                "functionName": {
                                  "name": "mload",
                                  "nodeType": "YulIdentifier",
                                  "src": "1781:5:21"
                                },
                                "nodeType": "YulFunctionCall",
                                "src": "1781:22:21"
                              },
                              "variableNames": [
                                {
                                  "name": "r",
                                  "nodeType": "YulIdentifier",
                                  "src": "1768:1:21"
                                }
                              ]
                            },
                            {
                              "nodeType": "YulAssignment",
                              "src": "1808:35:21",
                              "value": {
                                "arguments": [
                                  {
                                    "arguments": [
                                      {
                                        "name": "sign",
                                        "nodeType": "YulIdentifier",
                                        "src": "1831:4:21"
                                      },
                                      {
                                        "kind": "number",
                                        "nodeType": "YulLiteral",
                                        "src": "1837:4:21",
                                        "type": "",
                                        "value": "0x40"
                                      }
                                    ],
                                    "functionName": {
                                      "name": "add",
                                      "nodeType": "YulIdentifier",
                                      "src": "1827:3:21"
                                    },
                                    "nodeType": "YulFunctionCall",
                                    "src": "1827:15:21"
                                  }
                                ],
                                "functionName": {
                                  "name": "mload",
                                  "nodeType": "YulIdentifier",
                                  "src": "1821:5:21"
                                },
                                "nodeType": "YulFunctionCall",
                                "src": "1821:22:21"
                              },
                              "variableNames": [
                                {
                                  "name": "s",
                                  "nodeType": "YulIdentifier",
                                  "src": "1808:1:21"
                                }
                              ]
                            },
                            {
                              "nodeType": "YulAssignment",
                              "src": "1848:36:21",
                              "value": {
                                "arguments": [
                                  {
                                    "kind": "number",
                                    "nodeType": "YulLiteral",
                                    "src": "1858:1:21",
                                    "type": "",
                                    "value": "0"
                                  },
                                  {
                                    "arguments": [
                                      {
                                        "arguments": [
                                          {
                                            "name": "sign",
                                            "nodeType": "YulIdentifier",
                                            "src": "1871:4:21"
                                          },
                                          {
                                            "kind": "number",
                                            "nodeType": "YulLiteral",
                                            "src": "1877:4:21",
                                            "type": "",
                                            "value": "0x60"
                                          }
                                        ],
                                        "functionName": {
                                          "name": "add",
                                          "nodeType": "YulIdentifier",
                                          "src": "1867:3:21"
                                        },
                                        "nodeType": "YulFunctionCall",
                                        "src": "1867:15:21"
                                      }
                                    ],
                                    "functionName": {
                                      "name": "mload",
                                      "nodeType": "YulIdentifier",
                                      "src": "1861:5:21"
                                    },
                                    "nodeType": "YulFunctionCall",
                                    "src": "1861:22:21"
                                  }
                                ],
                                "functionName": {
                                  "name": "byte",
                                  "nodeType": "YulIdentifier",
                                  "src": "1853:4:21"
                                },
                                "nodeType": "YulFunctionCall",
                                "src": "1853:31:21"
                              },
                              "variableNames": [
                                {
                                  "name": "v",
                                  "nodeType": "YulIdentifier",
                                  "src": "1848:1:21"
                                }
                              ]
                            }
                          ]
                        },
                        "evmVersion": "istanbul",
                        "externalReferences": [
                          {
                            "declaration": 1857,
                            "isOffset": false,
                            "isSlot": false,
                            "src": "1768:1:21",
                            "valueSize": 1
                          },
                          {
                            "declaration": 1860,
                            "isOffset": false,
                            "isSlot": false,
                            "src": "1808:1:21",
                            "valueSize": 1
                          },
                          {
                            "declaration": 1851,
                            "isOffset": false,
                            "isSlot": false,
                            "src": "1791:4:21",
                            "valueSize": 1
                          },
                          {
                            "declaration": 1851,
                            "isOffset": false,
                            "isSlot": false,
                            "src": "1831:4:21",
                            "valueSize": 1
                          },
                          {
                            "declaration": 1851,
                            "isOffset": false,
                            "isSlot": false,
                            "src": "1871:4:21",
                            "valueSize": 1
                          },
                          {
                            "declaration": 1863,
                            "isOffset": false,
                            "isSlot": false,
                            "src": "1848:1:21",
                            "valueSize": 1
                          }
                        ],
                        "id": 1869,
                        "nodeType": "InlineAssembly",
                        "src": "1750:139:21"
                      }
                    ]
                  }
                },
                {
                  "condition": {
                    "argumentTypes": null,
                    "commonType": {
                      "typeIdentifier": "t_uint8",
                      "typeString": "uint8"
                    },
                    "id": 1886,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "argumentTypes": null,
                      "id": 1884,
                      "name": "v",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 1863,
                      "src": "2267:1:21",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint8",
                        "typeString": "uint8"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "<",
                    "rightExpression": {
                      "argumentTypes": null,
                      "hexValue": "3237",
                      "id": 1885,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "kind": "number",
                      "lValueRequested": false,
                      "nodeType": "Literal",
                      "src": "2271:2:21",
                      "subdenomination": null,
                      "typeDescriptions": {
                        "typeIdentifier": "t_rational_27_by_1",
                        "typeString": "int_const 27"
                      },
                      "value": "27"
                    },
                    "src": "2267:6:21",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "falseBody": null,
                  "id": 1891,
                  "nodeType": "IfStatement",
                  "src": "2263:19:21",
                  "trueBody": {
                    "expression": {
                      "argumentTypes": null,
                      "id": 1889,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "leftHandSide": {
                        "argumentTypes": null,
                        "id": 1887,
                        "name": "v",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1863,
                        "src": "2275:1:21",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint8",
                          "typeString": "uint8"
                        }
                      },
                      "nodeType": "Assignment",
                      "operator": "+=",
                      "rightHandSide": {
                        "argumentTypes": null,
                        "hexValue": "3237",
                        "id": 1888,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "number",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "2280:2:21",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_rational_27_by_1",
                          "typeString": "int_const 27"
                        },
                        "value": "27"
                      },
                      "src": "2275:7:21",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint8",
                        "typeString": "uint8"
                      }
                    },
                    "id": 1890,
                    "nodeType": "ExpressionStatement",
                    "src": "2275:7:21"
                  }
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        "id": 1899,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_uint8",
                            "typeString": "uint8"
                          },
                          "id": 1895,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "id": 1893,
                            "name": "v",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 1863,
                            "src": "2294:1:21",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint8",
                              "typeString": "uint8"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "==",
                          "rightExpression": {
                            "argumentTypes": null,
                            "hexValue": "3237",
                            "id": 1894,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "number",
                            "lValueRequested": false,
                            "nodeType": "Literal",
                            "src": "2299:2:21",
                            "subdenomination": null,
                            "typeDescriptions": {
                              "typeIdentifier": "t_rational_27_by_1",
                              "typeString": "int_const 27"
                            },
                            "value": "27"
                          },
                          "src": "2294:7:21",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "||",
                        "rightExpression": {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_uint8",
                            "typeString": "uint8"
                          },
                          "id": 1898,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "argumentTypes": null,
                            "id": 1896,
                            "name": "v",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 1863,
                            "src": "2305:1:21",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint8",
                              "typeString": "uint8"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "==",
                          "rightExpression": {
                            "argumentTypes": null,
                            "hexValue": "3238",
                            "id": 1897,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "number",
                            "lValueRequested": false,
                            "nodeType": "Literal",
                            "src": "2310:2:21",
                            "subdenomination": null,
                            "typeDescriptions": {
                              "typeIdentifier": "t_rational_28_by_1",
                              "typeString": "int_const 28"
                            },
                            "value": "28"
                          },
                          "src": "2305:7:21",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        },
                        "src": "2294:18:21",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      ],
                      "id": 1892,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "2286:7:21",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
                        "typeString": "function (bool) pure"
                      }
                    },
                    "id": 1900,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "2286:27:21",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 1901,
                  "nodeType": "ExpressionStatement",
                  "src": "2286:27:21"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 1903,
                        "name": "hash",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1849,
                        "src": "2334:4:21",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 1904,
                        "name": "v",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1863,
                        "src": "2340:1:21",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint8",
                          "typeString": "uint8"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 1905,
                        "name": "r",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1857,
                        "src": "2343:1:21",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 1906,
                        "name": "s",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1860,
                        "src": "2346:1:21",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_uint8",
                          "typeString": "uint8"
                        },
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "id": 1902,
                      "name": "ecrecover",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": -6,
                      "src": "2324:9:21",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_ecrecover_pure$_t_bytes32_$_t_uint8_$_t_bytes32_$_t_bytes32_$returns$_t_address_$",
                        "typeString": "function (bytes32,uint8,bytes32,bytes32) pure returns (address)"
                      }
                    },
                    "id": 1907,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "2324:24:21",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "functionReturnParameters": 1855,
                  "id": 1908,
                  "nodeType": "Return",
                  "src": "2317:31:21"
                }
              ]
            },
            "documentation": null,
            "functionSelector": "19045a25",
            "id": 1910,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "recover",
            "nodeType": "FunctionDefinition",
            "overrides": null,
            "parameters": {
              "id": 1852,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1849,
                  "mutability": "mutable",
                  "name": "hash",
                  "nodeType": "VariableDeclaration",
                  "overrides": null,
                  "scope": 1910,
                  "src": "1586:12:21",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 1848,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "1586:7:21",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1851,
                  "mutability": "mutable",
                  "name": "sign",
                  "nodeType": "VariableDeclaration",
                  "overrides": null,
                  "scope": 1910,
                  "src": "1600:17:21",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 1850,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "1600:5:21",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1585:33:21"
            },
            "returnParameters": {
              "id": 1855,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1854,
                  "mutability": "mutable",
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "overrides": null,
                  "scope": 1910,
                  "src": "1641:7:21",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 1853,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1641:7:21",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1640:9:21"
            },
            "scope": 1946,
            "src": "1569:783:21",
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "public"
          },
          {
            "body": {
              "id": 1925,
              "nodeType": "Block",
              "src": "2433:84:21",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "arguments": [
                          {
                            "argumentTypes": null,
                            "hexValue": "19457468657265756d205369676e6564204d6573736167653a0a3332",
                            "id": 1920,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "string",
                            "lValueRequested": false,
                            "nodeType": "Literal",
                            "src": "2471:34:21",
                            "subdenomination": null,
                            "typeDescriptions": {
                              "typeIdentifier": "t_stringliteral_178a2411ab6fbc1ba11064408972259c558d0e82fd48b0aba3ad81d14f065e73",
                              "typeString": "literal_string \"\u0019Ethereum Signed Message:\n32\""
                            },
                            "value": "\u0019Ethereum Signed Message:\n32"
                          },
                          {
                            "argumentTypes": null,
                            "id": 1921,
                            "name": "hash",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 1912,
                            "src": "2507:4:21",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes32",
                              "typeString": "bytes32"
                            }
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_stringliteral_178a2411ab6fbc1ba11064408972259c558d0e82fd48b0aba3ad81d14f065e73",
                              "typeString": "literal_string \"\u0019Ethereum Signed Message:\n32\""
                            },
                            {
                              "typeIdentifier": "t_bytes32",
                              "typeString": "bytes32"
                            }
                          ],
                          "expression": {
                            "argumentTypes": null,
                            "id": 1918,
                            "name": "abi",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": -1,
                            "src": "2454:3:21",
                            "typeDescriptions": {
                              "typeIdentifier": "t_magic_abi",
                              "typeString": "abi"
                            }
                          },
                          "id": 1919,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "memberName": "encodePacked",
                          "nodeType": "MemberAccess",
                          "referencedDeclaration": null,
                          "src": "2454:16:21",
                          "typeDescriptions": {
                            "typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$",
                            "typeString": "function () pure returns (bytes memory)"
                          }
                        },
                        "id": 1922,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "functionCall",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "2454:58:21",
                        "tryCall": false,
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      ],
                      "id": 1917,
                      "name": "keccak256",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": -8,
                      "src": "2444:9:21",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$",
                        "typeString": "function (bytes memory) pure returns (bytes32)"
                      }
                    },
                    "id": 1923,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "2444:69:21",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "functionReturnParameters": 1916,
                  "id": 1924,
                  "nodeType": "Return",
                  "src": "2437:76:21"
                }
              ]
            },
            "documentation": null,
            "functionSelector": "918a15cf",
            "id": 1926,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toEthSignedMessageHash",
            "nodeType": "FunctionDefinition",
            "overrides": null,
            "parameters": {
              "id": 1913,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1912,
                  "mutability": "mutable",
                  "name": "hash",
                  "nodeType": "VariableDeclaration",
                  "overrides": null,
                  "scope": 1926,
                  "src": "2387:12:21",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 1911,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "2387:7:21",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "2386:14:21"
            },
            "returnParameters": {
              "id": 1916,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1915,
                  "mutability": "mutable",
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "overrides": null,
                  "scope": 1926,
                  "src": "2423:7:21",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 1914,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "2423:7:21",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "2422:9:21"
            },
            "scope": 1946,
            "src": "2355:162:21",
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "public"
          },
          {
            "body": {
              "id": 1944,
              "nodeType": "Block",
              "src": "2629:85:21",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "arguments": [
                          {
                            "argumentTypes": null,
                            "hexValue": "1901",
                            "id": 1938,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "string",
                            "lValueRequested": false,
                            "nodeType": "Literal",
                            "src": "2667:10:21",
                            "subdenomination": null,
                            "typeDescriptions": {
                              "typeIdentifier": "t_stringliteral_301a50b291d33ce1e8e9064e3f6a6c51d902ec22892b50d58abf6357c6a45541",
                              "typeString": "literal_string \"\u0019\u0001\""
                            },
                            "value": "\u0019\u0001"
                          },
                          {
                            "argumentTypes": null,
                            "id": 1939,
                            "name": "domain_separator",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 1930,
                            "src": "2679:16:21",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes32",
                              "typeString": "bytes32"
                            }
                          },
                          {
                            "argumentTypes": null,
                            "id": 1940,
                            "name": "struct_hash",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 1928,
                            "src": "2697:11:21",
                            "typeDescriptions": {
                              "typeIdentifier": "t_bytes32",
                              "typeString": "bytes32"
                            }
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_stringliteral_301a50b291d33ce1e8e9064e3f6a6c51d902ec22892b50d58abf6357c6a45541",
                              "typeString": "literal_string \"\u0019\u0001\""
                            },
                            {
                              "typeIdentifier": "t_bytes32",
                              "typeString": "bytes32"
                            },
                            {
                              "typeIdentifier": "t_bytes32",
                              "typeString": "bytes32"
                            }
                          ],
                          "expression": {
                            "argumentTypes": null,
                            "id": 1936,
                            "name": "abi",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": -1,
                            "src": "2650:3:21",
                            "typeDescriptions": {
                              "typeIdentifier": "t_magic_abi",
                              "typeString": "abi"
                            }
                          },
                          "id": 1937,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "memberName": "encodePacked",
                          "nodeType": "MemberAccess",
                          "referencedDeclaration": null,
                          "src": "2650:16:21",
                          "typeDescriptions": {
                            "typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$",
                            "typeString": "function () pure returns (bytes memory)"
                          }
                        },
                        "id": 1941,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "functionCall",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "2650:59:21",
                        "tryCall": false,
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      ],
                      "id": 1935,
                      "name": "keccak256",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": -8,
                      "src": "2640:9:21",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$",
                        "typeString": "function (bytes memory) pure returns (bytes32)"
                      }
                    },
                    "id": 1942,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "2640:70:21",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "functionReturnParameters": 1934,
                  "id": 1943,
                  "nodeType": "Return",
                  "src": "2633:77:21"
                }
              ]
            },
            "documentation": null,
            "functionSelector": "176eaa49",
            "id": 1945,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "toEthTypedStructHash",
            "nodeType": "FunctionDefinition",
            "overrides": null,
            "parameters": {
              "id": 1931,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1928,
                  "mutability": "mutable",
                  "name": "struct_hash",
                  "nodeType": "VariableDeclaration",
                  "overrides": null,
                  "scope": 1945,
                  "src": "2550:19:21",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 1927,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "2550:7:21",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1930,
                  "mutability": "mutable",
                  "name": "domain_separator",
                  "nodeType": "VariableDeclaration",
                  "overrides": null,
                  "scope": 1945,
                  "src": "2571:24:21",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 1929,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "2571:7:21",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "2549:47:21"
            },
            "returnParameters": {
              "id": 1934,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1933,
                  "mutability": "mutable",
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "overrides": null,
                  "scope": 1945,
                  "src": "2619:7:21",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 1932,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "2619:7:21",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "2618:9:21"
            },
            "scope": 1946,
            "src": "2520:194:21",
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "public"
          }
        ],
        "scope": 1947,
        "src": "1301:1415:21"
      }
    ],
    "src": "1242:1475:21"
  },
  "compiler": {
    "name": "solc",
    "version": "0.6.12+commit.27d51765.Emscripten.clang"
  },
  "networks": {},
  "schemaVersion": "3.2.5",
  "updatedAt": "2023-05-04T08:29:47.206Z",
  "devdoc": {
    "kind": "dev",
    "methods": {},
    "version": 1
  },
  "userdoc": {
    "kind": "user",
    "methods": {},
    "version": 1
  }
}