{ "contractName": "SquareVerifier", "abi": [ { "constant": true, "inputs": [ { "components": [ { "components": [ { "internalType": "uint256", "name": "X", "type": "uint256" }, { "internalType": "uint256", "name": "Y", "type": "uint256" } ], "internalType": "struct Pairing.G1Point", "name": "a", "type": "tuple" }, { "components": [ { "internalType": "uint256[2]", "name": "X", "type": "uint256[2]" }, { "internalType": "uint256[2]", "name": "Y", "type": "uint256[2]" } ], "internalType": "struct Pairing.G2Point", "name": "b", "type": "tuple" }, { "components": [ { "internalType": "uint256", "name": "X", "type": "uint256" }, { "internalType": "uint256", "name": "Y", "type": "uint256" } ], "internalType": "struct Pairing.G1Point", "name": "c", "type": "tuple" } ], "internalType": "struct SquareVerifier.Proof", "name": "proof", "type": "tuple" }, { "internalType": "uint256[2]", "name": "input", "type": "uint256[2]" } ], "name": "verifyTx", "outputs": [ { "internalType": "bool", "name": "r", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function" } ], "metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":true,\"inputs\":[{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"X\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"Y\",\"type\":\"uint256\"}],\"internalType\":\"struct Pairing.G1Point\",\"name\":\"a\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256[2]\",\"name\":\"X\",\"type\":\"uint256[2]\"},{\"internalType\":\"uint256[2]\",\"name\":\"Y\",\"type\":\"uint256[2]\"}],\"internalType\":\"struct Pairing.G2Point\",\"name\":\"b\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"X\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"Y\",\"type\":\"uint256\"}],\"internalType\":\"struct Pairing.G1Point\",\"name\":\"c\",\"type\":\"tuple\"}],\"internalType\":\"struct SquareVerifier.Proof\",\"name\":\"proof\",\"type\":\"tuple\"},{\"internalType\":\"uint256[2]\",\"name\":\"input\",\"type\":\"uint256[2]\"}],\"name\":\"verifyTx\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"r\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"project:/contracts/SquareVerifier.sol\":\"SquareVerifier\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"project:/contracts/SquareVerifier.sol\":{\"keccak256\":\"0x57c8b8165952d2526795a0d5a5a40d415e206a5299bcc9f16dd99b4aac9cbf1b\",\"urls\":[\"bzz-raw://62caf95c88da34fa32c37a8d8bcec48b52806d301c1d39c7d5c7decd6c471781\",\"dweb:/ipfs/QmZcBTWfBSh6B4QA5kKCCCXMZX4uF3euLGGHk7MduCw7fX\"]}},\"version\":1}", "bytecode": "0x608060405234801561001057600080fd5b506110c0806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c806343cd76fc14610030575b600080fd5b61004a60048036036100459190810190610f77565b610060565b6040516100579190610fc4565b60405180910390f35b6000606060026040519080825280602002602001820160405280156100945781602001602082028038833980820191505090505b50905060008090505b60028110156100dc578381600281106100b257fe5b60200201518282815181106100c357fe5b602002602001018181525050808060010191505061009d565b5060006100e98286610105565b14156100f95760019150506100ff565b60009150505b92915050565b6000807f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000019050610133610c58565b61013b610277565b905080608001515160018651011461015257600080fd5b61015a610c9f565b6040518060400160405280600081526020016000815250905060008090505b86518110156101f0578387828151811061018f57fe5b6020026020010151106101a157600080fd5b6101e1826101dc856080015160018501815181106101bb57fe5b60200260200101518a85815181106101cf57fe5b60200260200101516106c4565b610756565b91508080600101915050610179565b5061021381836080015160008151811061020657fe5b6020026020010151610756565b90506102598560000151866020015161022b84610807565b856040015161023d8a60400151610807565b876060015161024f8960000151610807565b89602001516108a1565b6102695760019350505050610271565b600093505050505b92915050565b61027f610c58565b60405180604001604052807f0bde003d8508e4bed5b27e1b48e9f4ffba62caeee8400093e61f6303af3359e681526020017f035c68eb8e284ab8876283502c57118c5dadae091ec8c46752fb28b12821994c8152508160000181905250604051806040016040528060405180604001604052807f0d85d66f1b113ab2e9aae73bdf8459044d74365d6cb2fef7f3f4647cce2fae2781526020017f2bc6f69570cd8309b08a51c7c836ae7dfe218aff5142b988c5891cda12200935815250815260200160405180604001604052807f1ef2a041820b87ea470803b25180251a2030e25601080373e91f6149b0b0bebe81526020017f1d8a3e0e804caf6b19a326a6db6228dc2b720e7eb7405ed357e7c17b3ec4f77c8152508152508160200181905250604051806040016040528060405180604001604052807f2ac7e042fc63739fa3d68e4cb702c4c938d999a7c3aec324c1dba2412aaa652381526020017f0caf9f626f05758cd65696394fc9205bf462d4f060ba6805b302ee43c12815a2815250815260200160405180604001604052807ee11572860fe2f6ea87487d4d1d4a6017c1d19db57f06a73722393ba44d586181526020017f064a651e2c8852a997fcc9d52794f7dbc897f3592b3ffa07049af52942437bee8152508152508160400181905250604051806040016040528060405180604001604052807f101c1a99512194cad86644ddc1e6f6be69fb228b44b52d34c8bfa02c4c1d07c381526020017f29f5271a8bc75c7978b67b40e8b7e5c45a9e6e5acf6c8f679cbe52f8b898c888815250815260200160405180604001604052807f2b7b17c8d183a91b80ce34dbff327afc78088928c3fc9c10f155a8d8c329157881526020017f05ae747fb2cb09d6eba3f44db6c1d9bdc4856bda366316b40191f43d6bd3888b8152508152508160600181905250600360405190808252806020026020018201604052801561056557816020015b610552610cb9565b81526020019060019003908161054a5790505b50816080018190525060405180604001604052807f2e3a368d8f8427f6159aab434245439938f467847bbb5cc0f1cc68a788e2bc3081526020017f0fd2fa679e6cf2558c267ac55f208d1223510e7b88dcce5259039afb9dce3b8b81525081608001516000815181106105d457fe5b602002602001018190525060405180604001604052807f23e62792ffadf9b9a58096f590729df2deba3b0dd7f392c8a902dce14e21e59481526020017f03992c1a870a5e46696a25ba44464f95b28840128c5736e2eb48bd4ce30a0b2a815250816080015160018151811061064557fe5b602002602001018190525060405180604001604052807f08a8fc02013022e79ec9ddbeb315152bb4074d167c060e9000593f45c06f812b81526020017f1545e91384b7172964a43b281da70a19ad9b2299f3a670dfa0cfc2b00c83ffa781525081608001516002815181106106b657fe5b602002602001018190525090565b6106cc610c9f565b6106d4610cd3565b8360000151816000600381106106e657fe5b60200201818152505083602001518160016003811061070157fe5b602002018181525050828160026003811061071857fe5b602002018181525050600060608360808460076107d05a03fa9050806000811461074157610743565bfe5b508061074e57600080fd5b505092915050565b61075e610c9f565b610766610cf5565b83600001518160006004811061077857fe5b60200201818152505083602001518160016004811061079357fe5b6020020181815250508260000151816002600481106107ae57fe5b6020020181815250508260200151816003600481106107c957fe5b602002018181525050600060608360c08460066107d05a03fa905080600081146107f2576107f4565bfe5b50806107ff57600080fd5b505092915050565b61080f610c9f565b60007f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4790506000836000015114801561084c575060008360200151145b1561087057604051806040016040528060008152602001600081525091505061089c565b6040518060400160405280846000015181526020018285602001518161089257fe5b0683038152509150505b919050565b6000606060046040519080825280602002602001820160405280156108e057816020015b6108cd610cb9565b8152602001906001900390816108c55790505b5090506060600460405190808252806020026020018201604052801561092057816020015b61090d610d17565b8152602001906001900390816109055790505b5090508a8260008151811061093157fe5b6020026020010181905250888260018151811061094a57fe5b6020026020010181905250868260028151811061096357fe5b6020026020010181905250848260038151811061097c57fe5b6020026020010181905250898160008151811061099557fe5b602002602001018190525087816001815181106109ae57fe5b602002602001018190525085816002815181106109c757fe5b602002602001018190525083816003815181106109e057fe5b60200260200101819052506109f58282610a05565b9250505098975050505050505050565b60008151835114610a1557600080fd5b6000835190506000600682029050606081604051908082528060200260200182016040528015610a545781602001602082028038833980820191505090505b50905060008090505b83811015610bfa57868181518110610a7157fe5b602002602001015160000151826000600684020181518110610a8f57fe5b602002602001018181525050868181518110610aa757fe5b602002602001015160200151826001600684020181518110610ac557fe5b602002602001018181525050858181518110610add57fe5b602002602001015160000151600160028110610af557fe5b6020020151826002600684020181518110610b0c57fe5b602002602001018181525050858181518110610b2457fe5b602002602001015160000151600060028110610b3c57fe5b6020020151826003600684020181518110610b5357fe5b602002602001018181525050858181518110610b6b57fe5b602002602001015160200151600160028110610b8357fe5b6020020151826004600684020181518110610b9a57fe5b602002602001018181525050858181518110610bb257fe5b602002602001015160200151600060028110610bca57fe5b6020020151826005600684020181518110610be157fe5b6020026020010181815250508080600101915050610a5d565b50610c03610d3d565b6000602082602086026020860160086107d05a03fa90508060008114610c2857610c2a565bfe5b5080610c3557600080fd5b600082600060018110610c4457fe5b602002015114159550505050505092915050565b6040518060a00160405280610c6b610cb9565b8152602001610c78610d17565b8152602001610c85610d17565b8152602001610c92610d17565b8152602001606081525090565b604051806040016040528060008152602001600081525090565b604051806040016040528060008152602001600081525090565b6040518060600160405280600390602082028038833980820191505090505090565b6040518060800160405280600490602082028038833980820191505090505090565b6040518060400160405280610d2a610d5f565b8152602001610d37610d5f565b81525090565b6040518060200160405280600190602082028038833980820191505090505090565b6040518060400160405280600290602082028038833980820191505090505090565b600082601f830112610d9257600080fd5b6002610da5610da08261100c565b610fdf565b91508183856020840282011115610dbb57600080fd5b60005b83811015610deb5781610dd18882610f62565b845260208401935060208301925050600181019050610dbe565b5050505092915050565b600082601f830112610e0657600080fd5b6002610e19610e148261102e565b610fdf565b91508183856020840282011115610e2f57600080fd5b60005b83811015610e5f5781610e458882610f62565b845260208401935060208301925050600181019050610e32565b5050505092915050565b600060408284031215610e7b57600080fd5b610e856040610fdf565b90506000610e9584828501610f62565b6000830152506020610ea984828501610f62565b60208301525092915050565b600060808284031215610ec757600080fd5b610ed16040610fdf565b90506000610ee184828501610d81565b6000830152506040610ef584828501610d81565b60208301525092915050565b60006101008284031215610f1457600080fd5b610f1e6060610fdf565b90506000610f2e84828501610e69565b6000830152506040610f4284828501610eb5565b60208301525060c0610f5684828501610e69565b60408301525092915050565b600081359050610f7181611066565b92915050565b6000806101408385031215610f8b57600080fd5b6000610f9985828601610f01565b925050610100610fab85828601610df5565b9150509250929050565b610fbe81611050565b82525050565b6000602082019050610fd96000830184610fb5565b92915050565b6000604051905081810181811067ffffffffffffffff8211171561100257600080fd5b8060405250919050565b600067ffffffffffffffff82111561102357600080fd5b602082029050919050565b600067ffffffffffffffff82111561104557600080fd5b602082029050919050565b60008115159050919050565b6000819050919050565b61106f8161105c565b811461107a57600080fd5b5056fea365627a7a7231582085934e3221954f3380b86870bea2d3edf8cde556c2c6eed1f986e9fe336b3bd76c6578706572696d656e74616cf564736f6c63430005100040", "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061002b5760003560e01c806343cd76fc14610030575b600080fd5b61004a60048036036100459190810190610f77565b610060565b6040516100579190610fc4565b60405180910390f35b6000606060026040519080825280602002602001820160405280156100945781602001602082028038833980820191505090505b50905060008090505b60028110156100dc578381600281106100b257fe5b60200201518282815181106100c357fe5b602002602001018181525050808060010191505061009d565b5060006100e98286610105565b14156100f95760019150506100ff565b60009150505b92915050565b6000807f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000019050610133610c58565b61013b610277565b905080608001515160018651011461015257600080fd5b61015a610c9f565b6040518060400160405280600081526020016000815250905060008090505b86518110156101f0578387828151811061018f57fe5b6020026020010151106101a157600080fd5b6101e1826101dc856080015160018501815181106101bb57fe5b60200260200101518a85815181106101cf57fe5b60200260200101516106c4565b610756565b91508080600101915050610179565b5061021381836080015160008151811061020657fe5b6020026020010151610756565b90506102598560000151866020015161022b84610807565b856040015161023d8a60400151610807565b876060015161024f8960000151610807565b89602001516108a1565b6102695760019350505050610271565b600093505050505b92915050565b61027f610c58565b60405180604001604052807f0bde003d8508e4bed5b27e1b48e9f4ffba62caeee8400093e61f6303af3359e681526020017f035c68eb8e284ab8876283502c57118c5dadae091ec8c46752fb28b12821994c8152508160000181905250604051806040016040528060405180604001604052807f0d85d66f1b113ab2e9aae73bdf8459044d74365d6cb2fef7f3f4647cce2fae2781526020017f2bc6f69570cd8309b08a51c7c836ae7dfe218aff5142b988c5891cda12200935815250815260200160405180604001604052807f1ef2a041820b87ea470803b25180251a2030e25601080373e91f6149b0b0bebe81526020017f1d8a3e0e804caf6b19a326a6db6228dc2b720e7eb7405ed357e7c17b3ec4f77c8152508152508160200181905250604051806040016040528060405180604001604052807f2ac7e042fc63739fa3d68e4cb702c4c938d999a7c3aec324c1dba2412aaa652381526020017f0caf9f626f05758cd65696394fc9205bf462d4f060ba6805b302ee43c12815a2815250815260200160405180604001604052807ee11572860fe2f6ea87487d4d1d4a6017c1d19db57f06a73722393ba44d586181526020017f064a651e2c8852a997fcc9d52794f7dbc897f3592b3ffa07049af52942437bee8152508152508160400181905250604051806040016040528060405180604001604052807f101c1a99512194cad86644ddc1e6f6be69fb228b44b52d34c8bfa02c4c1d07c381526020017f29f5271a8bc75c7978b67b40e8b7e5c45a9e6e5acf6c8f679cbe52f8b898c888815250815260200160405180604001604052807f2b7b17c8d183a91b80ce34dbff327afc78088928c3fc9c10f155a8d8c329157881526020017f05ae747fb2cb09d6eba3f44db6c1d9bdc4856bda366316b40191f43d6bd3888b8152508152508160600181905250600360405190808252806020026020018201604052801561056557816020015b610552610cb9565b81526020019060019003908161054a5790505b50816080018190525060405180604001604052807f2e3a368d8f8427f6159aab434245439938f467847bbb5cc0f1cc68a788e2bc3081526020017f0fd2fa679e6cf2558c267ac55f208d1223510e7b88dcce5259039afb9dce3b8b81525081608001516000815181106105d457fe5b602002602001018190525060405180604001604052807f23e62792ffadf9b9a58096f590729df2deba3b0dd7f392c8a902dce14e21e59481526020017f03992c1a870a5e46696a25ba44464f95b28840128c5736e2eb48bd4ce30a0b2a815250816080015160018151811061064557fe5b602002602001018190525060405180604001604052807f08a8fc02013022e79ec9ddbeb315152bb4074d167c060e9000593f45c06f812b81526020017f1545e91384b7172964a43b281da70a19ad9b2299f3a670dfa0cfc2b00c83ffa781525081608001516002815181106106b657fe5b602002602001018190525090565b6106cc610c9f565b6106d4610cd3565b8360000151816000600381106106e657fe5b60200201818152505083602001518160016003811061070157fe5b602002018181525050828160026003811061071857fe5b602002018181525050600060608360808460076107d05a03fa9050806000811461074157610743565bfe5b508061074e57600080fd5b505092915050565b61075e610c9f565b610766610cf5565b83600001518160006004811061077857fe5b60200201818152505083602001518160016004811061079357fe5b6020020181815250508260000151816002600481106107ae57fe5b6020020181815250508260200151816003600481106107c957fe5b602002018181525050600060608360c08460066107d05a03fa905080600081146107f2576107f4565bfe5b50806107ff57600080fd5b505092915050565b61080f610c9f565b60007f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4790506000836000015114801561084c575060008360200151145b1561087057604051806040016040528060008152602001600081525091505061089c565b6040518060400160405280846000015181526020018285602001518161089257fe5b0683038152509150505b919050565b6000606060046040519080825280602002602001820160405280156108e057816020015b6108cd610cb9565b8152602001906001900390816108c55790505b5090506060600460405190808252806020026020018201604052801561092057816020015b61090d610d17565b8152602001906001900390816109055790505b5090508a8260008151811061093157fe5b6020026020010181905250888260018151811061094a57fe5b6020026020010181905250868260028151811061096357fe5b6020026020010181905250848260038151811061097c57fe5b6020026020010181905250898160008151811061099557fe5b602002602001018190525087816001815181106109ae57fe5b602002602001018190525085816002815181106109c757fe5b602002602001018190525083816003815181106109e057fe5b60200260200101819052506109f58282610a05565b9250505098975050505050505050565b60008151835114610a1557600080fd5b6000835190506000600682029050606081604051908082528060200260200182016040528015610a545781602001602082028038833980820191505090505b50905060008090505b83811015610bfa57868181518110610a7157fe5b602002602001015160000151826000600684020181518110610a8f57fe5b602002602001018181525050868181518110610aa757fe5b602002602001015160200151826001600684020181518110610ac557fe5b602002602001018181525050858181518110610add57fe5b602002602001015160000151600160028110610af557fe5b6020020151826002600684020181518110610b0c57fe5b602002602001018181525050858181518110610b2457fe5b602002602001015160000151600060028110610b3c57fe5b6020020151826003600684020181518110610b5357fe5b602002602001018181525050858181518110610b6b57fe5b602002602001015160200151600160028110610b8357fe5b6020020151826004600684020181518110610b9a57fe5b602002602001018181525050858181518110610bb257fe5b602002602001015160200151600060028110610bca57fe5b6020020151826005600684020181518110610be157fe5b6020026020010181815250508080600101915050610a5d565b50610c03610d3d565b6000602082602086026020860160086107d05a03fa90508060008114610c2857610c2a565bfe5b5080610c3557600080fd5b600082600060018110610c4457fe5b602002015114159550505050505092915050565b6040518060a00160405280610c6b610cb9565b8152602001610c78610d17565b8152602001610c85610d17565b8152602001610c92610d17565b8152602001606081525090565b604051806040016040528060008152602001600081525090565b604051806040016040528060008152602001600081525090565b6040518060600160405280600390602082028038833980820191505090505090565b6040518060800160405280600490602082028038833980820191505090505090565b6040518060400160405280610d2a610d5f565b8152602001610d37610d5f565b81525090565b6040518060200160405280600190602082028038833980820191505090505090565b6040518060400160405280600290602082028038833980820191505090505090565b600082601f830112610d9257600080fd5b6002610da5610da08261100c565b610fdf565b91508183856020840282011115610dbb57600080fd5b60005b83811015610deb5781610dd18882610f62565b845260208401935060208301925050600181019050610dbe565b5050505092915050565b600082601f830112610e0657600080fd5b6002610e19610e148261102e565b610fdf565b91508183856020840282011115610e2f57600080fd5b60005b83811015610e5f5781610e458882610f62565b845260208401935060208301925050600181019050610e32565b5050505092915050565b600060408284031215610e7b57600080fd5b610e856040610fdf565b90506000610e9584828501610f62565b6000830152506020610ea984828501610f62565b60208301525092915050565b600060808284031215610ec757600080fd5b610ed16040610fdf565b90506000610ee184828501610d81565b6000830152506040610ef584828501610d81565b60208301525092915050565b60006101008284031215610f1457600080fd5b610f1e6060610fdf565b90506000610f2e84828501610e69565b6000830152506040610f4284828501610eb5565b60208301525060c0610f5684828501610e69565b60408301525092915050565b600081359050610f7181611066565b92915050565b6000806101408385031215610f8b57600080fd5b6000610f9985828601610f01565b925050610100610fab85828601610df5565b9150509250929050565b610fbe81611050565b82525050565b6000602082019050610fd96000830184610fb5565b92915050565b6000604051905081810181811067ffffffffffffffff8211171561100257600080fd5b8060405250919050565b600067ffffffffffffffff82111561102357600080fd5b602082029050919050565b600067ffffffffffffffff82111561104557600080fd5b602082029050919050565b60008115159050919050565b6000819050919050565b61106f8161105c565b811461107a57600080fd5b5056fea365627a7a7231582085934e3221954f3380b86870bea2d3edf8cde556c2c6eed1f986e9fe336b3bd76c6578706572696d656e74616cf564736f6c63430005100040", "sourceMap": "6791:5057:8:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6791:5057:8;;;;;;;", "deployedSourceMap": "6791:5057:8:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6791:5057:8;;;;;;;;;;;;;;;;;;;11434:412;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;11542:6;11564:28;11609:1;11595:16;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;148:4;140:6;136:17;126:27;;0:157;11595:16:8;;;;11564:47;;11627:9;11639:1;11627:13;;11622:93;11646:12;11642:1;:16;11622:93;;;11696:5;11702:1;11696:8;;;;;;;;;;;11679:11;11691:1;11679:14;;;;;;;;;;;;;:25;;;;;11660:3;;;;;;;11622:93;;;;11758:1;11728:26;11735:11;11748:5;11728:6;:26::i;:::-;:31;11724:116;;;11782:4;11775:11;;;;;11724:116;11824:5;11817:12;;;11434:412;;;;;:::o;10312:1116::-;10419:7;10442:26;10471:77;10442:106;;10558:22;;:::i;:::-;10583:14;:12;:14::i;:::-;10558:39;;10635:2;:12;;;:19;10630:1;10615:5;:12;:16;:39;10607:48;;;;;;10712:27;;:::i;:::-;10742:21;;;;;;;;10758:1;10742:21;;;;10761:1;10742:21;;;10712:51;;10778:9;10790:1;10778:13;;10773:246;10797:5;:12;10793:1;:16;10773:246;;;10849:18;10838:5;10844:1;10838:8;;;;;;;;;;;;;;:29;10830:38;;;;;;10889:119;10923:4;10945:49;10964:2;:12;;;10981:1;10977;:5;10964:19;;;;;;;;;;;;;;10985:5;10991:1;10985:8;;;;;;;;;;;;;;10945:18;:49::i;:::-;10889:16;:119::i;:::-;10882:126;;10811:3;;;;;;;10773:246;;;;11035:39;11052:4;11058:2;:12;;;11071:1;11058:15;;;;;;;;;;;;;;11035:16;:39::i;:::-;11028:46;;11102:282;11140:5;:7;;;11165:5;:7;;;11190:20;11205:4;11190:14;:20::i;:::-;11228:2;:8;;;11254:23;11269:5;:7;;;11254:14;:23::i;:::-;11295:2;:8;;;11321:24;11336:2;:8;;;11321:14;:24::i;:::-;11363:2;:7;;;11102:20;:282::i;:::-;11084:319;;11402:1;11395:8;;;;;;;11084:319;11420:1;11413:8;;;;;10312:1116;;;;;:::o;7145:3161::-;7192:22;;:::i;:::-;7237:263;;;;;;;;7291:66;7237:263;;;;7410:66;7237:263;;;7226:2;:8;;:274;;;;7520:605;;;;;;;;;;;;;;;;7596:66;7520:605;;;;7727:66;7520:605;;;;;;;;;;;;;;;7886:66;7520:605;;;;8017:66;7520:605;;;;;;7510:2;:7;;:615;;;;8146:605;;;;;;;;;;;;;;;;8222:66;8146:605;;;;8353:66;8146:605;;;;;;;;;;;;;;;8512:66;8146:605;;;;8643:66;8146:605;;;;;;8135:2;:8;;:616;;;;8772:605;;;;;;;;;;;;;;;;8848:66;8772:605;;;;8979:66;8772:605;;;;;;;;;;;;;;;9138:66;8772:605;;;;9269:66;8772:605;;;;;;8761:2;:8;;:616;;;;9424:1;9402:24;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;9387:2;:12;;:39;;;;9454:263;;;;;;;;9508:66;9454:263;;;;9627:66;9454:263;;;9436:2;:12;;;9449:1;9436:15;;;;;;;;;;;;;:281;;;;9745:263;;;;;;;;9799:66;9745:263;;;;9918:66;9745:263;;;9727:2;:12;;;9740:1;9727:15;;;;;;;;;;;;;:281;;;;10036:263;;;;;;;;10090:66;10036:263;;;;10209:66;10036:263;;;10018:2;:12;;;10031:1;10018:15;;;;;;;;;;;;;:281;;;;7145:3161;:::o;3308:527::-;3404:16;;:::i;:::-;3436:23;;:::i;:::-;3480:1;:3;;;3469:5;3475:1;3469:8;;;;;;;;;;:14;;;;;3504:1;:3;;;3493:5;3499:1;3493:8;;;;;;;;;;:14;;;;;3528:1;3517:5;3523:1;3517:8;;;;;;;;;;:12;;;;;3539;3643:4;3640:1;3634:4;3627:5;3624:1;3617:4;3610:5;3606:16;3595:53;3584:64;;3725:7;3750:1;3745:48;;;;3718:75;;3745:48;3770:9;3718:75;;3820:7;3812:16;;;;;;3308:527;;;;;;:::o;2588:564::-;2691:16;;:::i;:::-;2723:23;;:::i;:::-;2767:2;:4;;;2756:5;2762:1;2756:8;;;;;;;;;;:15;;;;;2792:2;:4;;;2781:5;2787:1;2781:8;;;;;;;;;;:15;;;;;2817:2;:4;;;2806:5;2812:1;2806:8;;;;;;;;;;:15;;;;;2842:2;:4;;;2831:5;2837:1;2831:8;;;;;;;;;;:15;;;;;2856:12;2960:4;2957:1;2951:4;2944:5;2941:1;2934:4;2927:5;2923:16;2912:53;2901:64;;3042:7;3067:1;3062:48;;;;3035:75;;3062:48;3087:9;3035:75;;3137:7;3129:16;;;;;;2588:564;;;;;;:::o;2205:331::-;2262:14;;:::i;:::-;2340:9;2352:77;2340:89;;2450:1;2443;:3;;;:8;:20;;;;;2462:1;2455;:3;;;:8;2443:20;2439:46;;;2472:13;;;;;;;;2480:1;2472:13;;;;2483:1;2472:13;;;2465:20;;;;;2439:46;2502:27;;;;;;;;2510:1;:3;;;2502:27;;;;2526:1;2520;:3;;;:7;;;;;;2515:1;:13;2502:27;;;2495:34;;;2205:331;;;;:::o;6219:568::-;6486:4;6502:19;6538:1;6524:16;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;6502:38;;6550:19;6586:1;6572:16;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;6550:38;;6606:2;6598;6601:1;6598:5;;;;;;;;;;;;;:10;;;;6626:2;6618;6621:1;6618:5;;;;;;;;;;;;;:10;;;;6646:2;6638;6641:1;6638:5;;;;;;;;;;;;;:10;;;;6666:2;6658;6661:1;6658:5;;;;;;;;;;;;;:10;;;;6686:2;6678;6681:1;6678:5;;;;;;;;;;;;;:10;;;;6706:2;6698;6701:1;6698:5;;;;;;;;;;;;;:10;;;;6726:2;6718;6721:1;6718:5;;;;;;;;;;;;;:10;;;;6746:2;6738;6741:1;6738:5;;;;;;;;;;;;;:10;;;;6765:15;6773:2;6777;6765:7;:15::i;:::-;6758:22;;;;6219:568;;;;;;;;;;:::o;4047:1111::-;4153:4;4194:2;:9;4181:2;:9;:22;4173:31;;;;;;4214:16;4233:2;:9;4214:28;;4252:17;4283:1;4272:8;:12;4252:32;;4294:22;4333:9;4319:24;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;148:4;140:6;136:17;126:27;;0:157;4319:24:8;;;;4294:49;;4358:9;4370:1;4358:13;;4353:302;4377:8;4373:1;:12;4353:302;;;4425:2;4428:1;4425:5;;;;;;;;;;;;;;:7;;;4406:5;4420:1;4416;4412;:5;:9;4406:16;;;;;;;;;;;;;:26;;;;;4465:2;4468:1;4465:5;;;;;;;;;;;;;;:7;;;4446:5;4460:1;4456;4452;:5;:9;4446:16;;;;;;;;;;;;;:26;;;;;4505:2;4508:1;4505:5;;;;;;;;;;;;;;:7;;;4513:1;4505:10;;;;;;;;;;;4486:5;4500:1;4496;4492;:5;:9;4486:16;;;;;;;;;;;;;:29;;;;;4548:2;4551:1;4548:5;;;;;;;;;;;;;;:7;;;4556:1;4548:10;;;;;;;;;;;4529:5;4543:1;4539;4535;:5;:9;4529:16;;;;;;;;;;;;;:29;;;;;4591:2;4594:1;4591:5;;;;;;;;;;;;;;:7;;;4599:1;4591:10;;;;;;;;;;;4572:5;4586:1;4582;4578;:5;:9;4572:16;;;;;;;;;;;;;:29;;;;;4634:2;4637:1;4634:5;;;;;;;;;;;;;;:7;;;4642:1;4634:10;;;;;;;;;;;4615:5;4629:1;4625;4621;:5;:9;4615:16;;;;;;;;;;;;;:29;;;;;4387:3;;;;;;;4353:302;;;;4664:21;;:::i;:::-;4695:12;4925:4;4904:3;4881:4;4870:9;4866:20;4843:4;4836:5;4832:16;4813:1;4790:4;4783:5;4779:16;4751:192;4740:203;;5020:7;5045:1;5040:48;;;;5013:75;;5040:48;5065:9;5013:75;;5115:7;5107:16;;;;;;5150:1;5140:3;5144:1;5140:6;;;;;;;;;;;:11;;5133:18;;;;;;;4047:1111;;;;:::o;6791:5057::-;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;148:4;140:6;136:17;126:27;;0:157;6791:5057:8;;;;:::o;:::-;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;148:4;140:6;136:17;126:27;;0:157;6791:5057:8;;;;:::o;:::-;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;:::o;:::-;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;148:4;140:6;136:17;126:27;;0:157;6791:5057:8;;;;:::o;:::-;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;148:4;140:6;136:17;126:27;;0:157;6791:5057:8;;;;:::o;24:608:-1:-;;135:3;128:4;120:6;116:17;112:27;102:2;;153:1;150;143:12;102:2;177:4;196:74;211:58;262:6;211:58;;;196:74;;;187:83;;287:5;346:6;393:3;385:4;377:6;373:17;368:3;364:27;361:36;358:2;;;410:1;407;400:12;358:2;435:1;420:206;445:6;442:1;439:13;420:206;;;503:3;525:37;558:3;546:10;525:37;;;520:3;513:50;586:4;581:3;577:14;570:21;;614:4;609:3;605:14;598:21;;477:149;467:1;464;460:9;455:14;;420:206;;;424:14;95:537;;;;;;;;659:616;;774:3;767:4;759:6;755:17;751:27;741:2;;792:1;789;782:12;741:2;816:4;835:78;850:62;905:6;850:62;;;835:78;;;826:87;;930:5;989:6;1036:3;1028:4;1020:6;1016:17;1011:3;1007:27;1004:36;1001:2;;;1053:1;1050;1043:12;1001:2;1078:1;1063:206;1088:6;1085:1;1082:13;1063:206;;;1146:3;1168:37;1201:3;1189:10;1168:37;;;1163:3;1156:50;1229:4;1224:3;1220:14;1213:21;;1257:4;1252:3;1248:14;1241:21;;1120:149;1110:1;1107;1103:9;1098:14;;1063:206;;;1067:14;734:541;;;;;;;;1312:457;;1422:4;1410:9;1405:3;1401:19;1397:30;1394:2;;;1440:1;1437;1430:12;1394:2;1458:20;1473:4;1458:20;;;1449:29;;1525:1;1557:49;1602:3;1593:6;1582:9;1578:22;1557:49;;;1550:4;1543:5;1539:16;1532:75;1488:130;1665:2;1698:49;1743:3;1734:6;1723:9;1719:22;1698:49;;;1691:4;1684:5;1680:16;1673:75;1628:131;1388:381;;;;;1805:495;;1915:4;1903:9;1898:3;1894:19;1890:30;1887:2;;;1933:1;1930;1923:12;1887:2;1951:20;1966:4;1951:20;;;1942:29;;2018:1;2050:68;2114:3;2105:6;2094:9;2090:22;2050:68;;;2043:4;2036:5;2032:16;2025:94;1981:149;2177:2;2210:68;2274:3;2265:6;2254:9;2250:22;2210:68;;;2203:4;2196:5;2192:16;2185:94;2140:150;1881:419;;;;;2341:666;;2453:6;2441:9;2436:3;2432:19;2428:32;2425:2;;;2473:1;2470;2463:12;2425:2;2491:20;2506:4;2491:20;;;2482:29;;2558:1;2590:70;2656:3;2647:6;2636:9;2632:22;2590:70;;;2583:4;2576:5;2572:16;2565:96;2521:151;2719:2;2752:70;2818:3;2809:6;2798:9;2794:22;2752:70;;;2745:4;2738:5;2734:16;2727:96;2682:152;2881:3;2915:70;2981:3;2972:6;2961:9;2957:22;2915:70;;;2908:4;2901:5;2897:16;2890:96;2844:153;2419:588;;;;;3014:130;;3094:6;3081:20;3072:29;;3106:33;3133:5;3106:33;;;3066:78;;;;;3151:460;;;3318:3;3306:9;3297:7;3293:23;3289:33;3286:2;;;3335:1;3332;3325:12;3286:2;3370:1;3387:76;3455:7;3446:6;3435:9;3431:22;3387:76;;;3377:86;;3349:120;3500:3;3519:76;3587:7;3578:6;3567:9;3563:22;3519:76;;;3509:86;;3479:122;3280:331;;;;;;3618:104;3695:21;3710:5;3695:21;;;3690:3;3683:34;3677:45;;;3729:201;;3841:2;3830:9;3826:18;3818:26;;3855:65;3917:1;3906:9;3902:17;3893:6;3855:65;;;3812:118;;;;;3937:256;;3999:2;3993:9;3983:19;;4037:4;4029:6;4025:17;4136:6;4124:10;4121:22;4100:18;4088:10;4085:34;4082:62;4079:2;;;4157:1;4154;4147:12;4079:2;4177:10;4173:2;4166:22;3977:216;;;;;4200:240;;4353:18;4345:6;4342:30;4339:2;;;4385:1;4382;4375:12;4339:2;4420:4;4412:6;4408:17;4400:25;;4276:164;;;;4447:244;;4604:18;4596:6;4593:30;4590:2;;;4636:1;4633;4626:12;4590:2;4671:4;4663:6;4659:17;4651:25;;4527:164;;;;4698:85;;4771:5;4764:13;4757:21;4746:32;;4740:43;;;;4790:72;;4852:5;4841:16;;4835:27;;;;4869:117;4938:24;4956:5;4938:24;;;4931:5;4928:35;4918:2;;4977:1;4974;4967:12;4918:2;4912:74;", "source": "// This file is MIT Licensed.\n//\n// Copyright 2017 Christian Reitwiessner\n// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\npragma solidity ^0.5.0;\npragma experimental ABIEncoderV2;\n\nlibrary Pairing {\n struct G1Point {\n uint256 X;\n uint256 Y;\n }\n // Encoding of field elements is: X[0] * z + X[1]\n struct G2Point {\n uint256[2] X;\n uint256[2] Y;\n }\n\n /// @return the generator of G1\n function P1() internal pure returns (G1Point memory) {\n return G1Point(1, 2);\n }\n\n /// @return the generator of G2\n function P2() internal pure returns (G2Point memory) {\n return\n G2Point(\n [\n 10857046999023057135944570762232829481370756359578518086990519993285655852781,\n 11559732032986387107991004021392285783925812861821192530917403151452391805634\n ],\n [\n 8495653923123431417604973247489272438418190587263600148770280649306958101930,\n 4082367875863433681332203403145435568316851327593401208105741076214120093531\n ]\n );\n }\n\n /// @return the negation of p, i.e. p.addition(p.negate()) should be zero.\n function negate(G1Point memory p) internal pure returns (G1Point memory) {\n // The prime q in the base field F_q for G1\n uint256 q = 21888242871839275222246405745257275088696311157297823662689037894645226208583;\n if (p.X == 0 && p.Y == 0) return G1Point(0, 0);\n return G1Point(p.X, q - (p.Y % q));\n }\n\n /// @return r the sum of two points of G1\n function addition(G1Point memory p1, G1Point memory p2)\n internal\n view\n returns (G1Point memory r)\n {\n uint256[4] memory input;\n input[0] = p1.X;\n input[1] = p1.Y;\n input[2] = p2.X;\n input[3] = p2.Y;\n bool success;\n assembly {\n success := staticcall(sub(gas(), 2000), 6, input, 0xc0, r, 0x60)\n // Use \"invalid\" to make gas estimation work\n switch success\n case 0 {\n invalid()\n }\n }\n require(success);\n }\n\n /// @return r the product of a point on G1 and a scalar, i.e.\n /// p == p.scalar_mul(1) and p.addition(p) == p.scalar_mul(2) for all points p.\n function scalar_mul(G1Point memory p, uint256 s)\n internal\n view\n returns (G1Point memory r)\n {\n uint256[3] memory input;\n input[0] = p.X;\n input[1] = p.Y;\n input[2] = s;\n bool success;\n assembly {\n success := staticcall(sub(gas(), 2000), 7, input, 0x80, r, 0x60)\n // Use \"invalid\" to make gas estimation work\n switch success\n case 0 {\n invalid()\n }\n }\n require(success);\n }\n\n /// @return the result of computing the pairing check\n /// e(p1[0], p2[0]) * .... * e(p1[n], p2[n]) == 1\n /// For example pairing([P1(), P1().negate()], [P2(), P2()]) should\n /// return true.\n function pairing(G1Point[] memory p1, G2Point[] memory p2)\n internal\n view\n returns (bool)\n {\n require(p1.length == p2.length);\n uint256 elements = p1.length;\n uint256 inputSize = elements * 6;\n uint256[] memory input = new uint256[](inputSize);\n for (uint256 i = 0; i < elements; i++) {\n input[i * 6 + 0] = p1[i].X;\n input[i * 6 + 1] = p1[i].Y;\n input[i * 6 + 2] = p2[i].X[1];\n input[i * 6 + 3] = p2[i].X[0];\n input[i * 6 + 4] = p2[i].Y[1];\n input[i * 6 + 5] = p2[i].Y[0];\n }\n uint256[1] memory out;\n bool success;\n assembly {\n success := staticcall(\n sub(gas(), 2000),\n 8,\n add(input, 0x20),\n mul(inputSize, 0x20),\n out,\n 0x20\n )\n // Use \"invalid\" to make gas estimation work\n switch success\n case 0 {\n invalid()\n }\n }\n require(success);\n return out[0] != 0;\n }\n\n /// Convenience method for a pairing check for two pairs.\n function pairingProd2(\n G1Point memory a1,\n G2Point memory a2,\n G1Point memory b1,\n G2Point memory b2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](2);\n G2Point[] memory p2 = new G2Point[](2);\n p1[0] = a1;\n p1[1] = b1;\n p2[0] = a2;\n p2[1] = b2;\n return pairing(p1, p2);\n }\n\n /// Convenience method for a pairing check for three pairs.\n function pairingProd3(\n G1Point memory a1,\n G2Point memory a2,\n G1Point memory b1,\n G2Point memory b2,\n G1Point memory c1,\n G2Point memory c2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](3);\n G2Point[] memory p2 = new G2Point[](3);\n p1[0] = a1;\n p1[1] = b1;\n p1[2] = c1;\n p2[0] = a2;\n p2[1] = b2;\n p2[2] = c2;\n return pairing(p1, p2);\n }\n\n /// Convenience method for a pairing check for four pairs.\n function pairingProd4(\n G1Point memory a1,\n G2Point memory a2,\n G1Point memory b1,\n G2Point memory b2,\n G1Point memory c1,\n G2Point memory c2,\n G1Point memory d1,\n G2Point memory d2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](4);\n G2Point[] memory p2 = new G2Point[](4);\n p1[0] = a1;\n p1[1] = b1;\n p1[2] = c1;\n p1[3] = d1;\n p2[0] = a2;\n p2[1] = b2;\n p2[2] = c2;\n p2[3] = d2;\n return pairing(p1, p2);\n }\n}\n\ncontract SquareVerifier {\n using Pairing for *;\n struct VerifyingKey {\n Pairing.G1Point alpha;\n Pairing.G2Point beta;\n Pairing.G2Point gamma;\n Pairing.G2Point delta;\n Pairing.G1Point[] gamma_abc;\n }\n struct Proof {\n Pairing.G1Point a;\n Pairing.G2Point b;\n Pairing.G1Point c;\n }\n\n function verifyingKey() internal pure returns (VerifyingKey memory vk) {\n vk.alpha = Pairing.G1Point(\n uint256(\n 0x0bde003d8508e4bed5b27e1b48e9f4ffba62caeee8400093e61f6303af3359e6\n ),\n uint256(\n 0x035c68eb8e284ab8876283502c57118c5dadae091ec8c46752fb28b12821994c\n )\n );\n vk.beta = Pairing.G2Point(\n [\n uint256(\n 0x0d85d66f1b113ab2e9aae73bdf8459044d74365d6cb2fef7f3f4647cce2fae27\n ),\n uint256(\n 0x2bc6f69570cd8309b08a51c7c836ae7dfe218aff5142b988c5891cda12200935\n )\n ],\n [\n uint256(\n 0x1ef2a041820b87ea470803b25180251a2030e25601080373e91f6149b0b0bebe\n ),\n uint256(\n 0x1d8a3e0e804caf6b19a326a6db6228dc2b720e7eb7405ed357e7c17b3ec4f77c\n )\n ]\n );\n vk.gamma = Pairing.G2Point(\n [\n uint256(\n 0x2ac7e042fc63739fa3d68e4cb702c4c938d999a7c3aec324c1dba2412aaa6523\n ),\n uint256(\n 0x0caf9f626f05758cd65696394fc9205bf462d4f060ba6805b302ee43c12815a2\n )\n ],\n [\n uint256(\n 0x00e11572860fe2f6ea87487d4d1d4a6017c1d19db57f06a73722393ba44d5861\n ),\n uint256(\n 0x064a651e2c8852a997fcc9d52794f7dbc897f3592b3ffa07049af52942437bee\n )\n ]\n );\n vk.delta = Pairing.G2Point(\n [\n uint256(\n 0x101c1a99512194cad86644ddc1e6f6be69fb228b44b52d34c8bfa02c4c1d07c3\n ),\n uint256(\n 0x29f5271a8bc75c7978b67b40e8b7e5c45a9e6e5acf6c8f679cbe52f8b898c888\n )\n ],\n [\n uint256(\n 0x2b7b17c8d183a91b80ce34dbff327afc78088928c3fc9c10f155a8d8c3291578\n ),\n uint256(\n 0x05ae747fb2cb09d6eba3f44db6c1d9bdc4856bda366316b40191f43d6bd3888b\n )\n ]\n );\n vk.gamma_abc = new Pairing.G1Point[](3);\n vk.gamma_abc[0] = Pairing.G1Point(\n uint256(\n 0x2e3a368d8f8427f6159aab434245439938f467847bbb5cc0f1cc68a788e2bc30\n ),\n uint256(\n 0x0fd2fa679e6cf2558c267ac55f208d1223510e7b88dcce5259039afb9dce3b8b\n )\n );\n vk.gamma_abc[1] = Pairing.G1Point(\n uint256(\n 0x23e62792ffadf9b9a58096f590729df2deba3b0dd7f392c8a902dce14e21e594\n ),\n uint256(\n 0x03992c1a870a5e46696a25ba44464f95b28840128c5736e2eb48bd4ce30a0b2a\n )\n );\n vk.gamma_abc[2] = Pairing.G1Point(\n uint256(\n 0x08a8fc02013022e79ec9ddbeb315152bb4074d167c060e9000593f45c06f812b\n ),\n uint256(\n 0x1545e91384b7172964a43b281da70a19ad9b2299f3a670dfa0cfc2b00c83ffa7\n )\n );\n }\n\n function verify(uint256[] memory input, Proof memory proof)\n internal\n view\n returns (uint256)\n {\n uint256 snark_scalar_field = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n VerifyingKey memory vk = verifyingKey();\n require(input.length + 1 == vk.gamma_abc.length);\n // Compute the linear combination vk_x\n Pairing.G1Point memory vk_x = Pairing.G1Point(0, 0);\n for (uint256 i = 0; i < input.length; i++) {\n require(input[i] < snark_scalar_field);\n vk_x = Pairing.addition(\n vk_x,\n Pairing.scalar_mul(vk.gamma_abc[i + 1], input[i])\n );\n }\n vk_x = Pairing.addition(vk_x, vk.gamma_abc[0]);\n if (\n !Pairing.pairingProd4(\n proof.a,\n proof.b,\n Pairing.negate(vk_x),\n vk.gamma,\n Pairing.negate(proof.c),\n vk.delta,\n Pairing.negate(vk.alpha),\n vk.beta\n )\n ) return 1;\n return 0;\n }\n\n function verifyTx(Proof memory proof, uint256[2] memory input)\n public\n view\n returns (bool r)\n {\n uint256[] memory inputValues = new uint256[](2);\n\n for (uint256 i = 0; i < input.length; i++) {\n inputValues[i] = input[i];\n }\n if (verify(inputValues, proof) == 0) {\n return true;\n } else {\n return false;\n }\n }\n}\n", "sourcePath": "C:\\Users\\jerom\\source\\Blockchain-Capstone\\eth-contracts\\contracts\\SquareVerifier.sol", "ast": { "absolutePath": "project:/contracts/SquareVerifier.sol", "exportedSymbols": { "Pairing": [ 8595 ], "SquareVerifier": [ 8942 ] }, "id": 8943, "nodeType": "SourceUnit", "nodes": [ { "id": 8022, "literals": [ "solidity", "^", "0.5", ".0" ], "nodeType": "PragmaDirective", "src": "1104:23:8" }, { "id": 8023, "literals": [ "experimental", "ABIEncoderV2" ], "nodeType": "PragmaDirective", "src": "1128:33:8" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "library", "documentation": null, "fullyImplemented": true, "id": 8595, "linearizedBaseContracts": [ 8595 ], "name": "Pairing", "nodeType": "ContractDefinition", "nodes": [ { "canonicalName": "Pairing.G1Point", "id": 8028, "members": [ { "constant": false, "id": 8025, "name": "X", "nodeType": "VariableDeclaration", "scope": 8028, "src": "1210:9:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 8024, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1210:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 8027, "name": "Y", "nodeType": "VariableDeclaration", "scope": 8028, "src": "1229:9:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 8026, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1229:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "name": "G1Point", "nodeType": "StructDefinition", "scope": 8595, "src": "1185:60:8", "visibility": "public" }, { "canonicalName": "Pairing.G2Point", "id": 8037, "members": [ { "constant": false, "id": 8032, "name": "X", "nodeType": "VariableDeclaration", "scope": 8037, "src": "1329:12:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$2_storage_ptr", "typeString": "uint256[2]" }, "typeName": { "baseType": { "id": 8029, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1329:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 8031, "length": { "argumentTypes": null, "hexValue": "32", "id": 8030, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "1337:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_2_by_1", "typeString": "int_const 2" }, "value": "2" }, "nodeType": "ArrayTypeName", "src": "1329:10:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$2_storage_ptr", "typeString": "uint256[2]" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 8036, "name": "Y", "nodeType": "VariableDeclaration", "scope": 8037, "src": "1351:12:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$2_storage_ptr", "typeString": "uint256[2]" }, "typeName": { "baseType": { "id": 8033, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1351:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 8035, "length": { "argumentTypes": null, "hexValue": "32", "id": 8034, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "1359:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_2_by_1", "typeString": "int_const 2" }, "value": "2" }, "nodeType": "ArrayTypeName", "src": "1351:10:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$2_storage_ptr", "typeString": "uint256[2]" } }, "value": null, "visibility": "internal" } ], "name": "G2Point", "nodeType": "StructDefinition", "scope": 8595, "src": "1304:66:8", "visibility": "public" }, { "body": { "id": 8047, "nodeType": "Block", "src": "1465:37:8", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "31", "id": 8043, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "1490:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_1_by_1", "typeString": "int_const 1" }, "value": "1" }, { "argumentTypes": null, "hexValue": "32", "id": 8044, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "1493:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_2_by_1", "typeString": "int_const 2" }, "value": "2" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_1_by_1", "typeString": "int_const 1" }, { "typeIdentifier": "t_rational_2_by_1", "typeString": "int_const 2" } ], "id": 8042, "name": "G1Point", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8028, "src": "1482:7:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_struct$_G1Point_$8028_storage_ptr_$", "typeString": "type(struct Pairing.G1Point storage pointer)" } }, "id": 8045, "isConstant": false, "isLValue": false, "isPure": true, "kind": "structConstructorCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1482:13:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } }, "functionReturnParameters": 8041, "id": 8046, "nodeType": "Return", "src": "1475:20:8" } ] }, "documentation": "@return the generator of G1", "id": 8048, "implemented": true, "kind": "function", "modifiers": [], "name": "P1", "nodeType": "FunctionDefinition", "parameters": { "id": 8038, "nodeType": "ParameterList", "parameters": [], "src": "1423:2:8" }, "returnParameters": { "id": 8041, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 8040, "name": "", "nodeType": "VariableDeclaration", "scope": 8048, "src": "1449:14:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point" }, "typeName": { "contractScope": null, "id": 8039, "name": "G1Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8028, "src": "1449:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_storage_ptr", "typeString": "struct Pairing.G1Point" } }, "value": null, "visibility": "internal" } ], "src": "1448:16:8" }, "scope": 8595, "src": "1412:90:8", "stateMutability": "pure", "superFunction": null, "visibility": "internal" }, { "body": { "id": 8062, "nodeType": "Block", "src": "1597:523:8", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "components": [ { "argumentTypes": null, "hexValue": "3130383537303436393939303233303537313335393434353730373632323332383239343831333730373536333539353738353138303836393930353139393933323835363535383532373831", "id": 8054, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "1673:77:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_10857046999023057135944570762232829481370756359578518086990519993285655852781_by_1", "typeString": "int_const 1085...(69 digits omitted)...2781" }, "value": "10857046999023057135944570762232829481370756359578518086990519993285655852781" }, { "argumentTypes": null, "hexValue": "3131353539373332303332393836333837313037393931303034303231333932323835373833393235383132383631383231313932353330393137343033313531343532333931383035363334", "id": 8055, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "1772:77:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_11559732032986387107991004021392285783925812861821192530917403151452391805634_by_1", "typeString": "int_const 1155...(69 digits omitted)...5634" }, "value": "11559732032986387107991004021392285783925812861821192530917403151452391805634" } ], "id": 8056, "isConstant": false, "isInlineArray": true, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "TupleExpression", "src": "1651:216:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$2_memory_ptr", "typeString": "uint256[2] memory" } }, { "argumentTypes": null, "components": [ { "argumentTypes": null, "hexValue": "38343935363533393233313233343331343137363034393733323437343839323732343338343138313930353837323633363030313438373730323830363439333036393538313031393330", "id": 8057, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "1907:76:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_8495653923123431417604973247489272438418190587263600148770280649306958101930_by_1", "typeString": "int_const 8495...(68 digits omitted)...1930" }, "value": "8495653923123431417604973247489272438418190587263600148770280649306958101930" }, { "argumentTypes": null, "hexValue": "34303832333637383735383633343333363831333332323033343033313435343335353638333136383531333237353933343031323038313035373431303736323134313230303933353331", "id": 8058, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "2005:76:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_4082367875863433681332203403145435568316851327593401208105741076214120093531_by_1", "typeString": "int_const 4082...(68 digits omitted)...3531" }, "value": "4082367875863433681332203403145435568316851327593401208105741076214120093531" } ], "id": 8059, "isConstant": false, "isInlineArray": true, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "TupleExpression", "src": "1885:214:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$2_memory_ptr", "typeString": "uint256[2] memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_array$_t_uint256_$2_memory_ptr", "typeString": "uint256[2] memory" }, { "typeIdentifier": "t_array$_t_uint256_$2_memory_ptr", "typeString": "uint256[2] memory" } ], "id": 8053, "name": "G2Point", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8037, "src": "1626:7:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_struct$_G2Point_$8037_storage_ptr_$", "typeString": "type(struct Pairing.G2Point storage pointer)" } }, "id": 8060, "isConstant": false, "isLValue": false, "isPure": true, "kind": "structConstructorCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1626:487:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory", "typeString": "struct Pairing.G2Point memory" } }, "functionReturnParameters": 8052, "id": 8061, "nodeType": "Return", "src": "1607:506:8" } ] }, "documentation": "@return the generator of G2", "id": 8063, "implemented": true, "kind": "function", "modifiers": [], "name": "P2", "nodeType": "FunctionDefinition", "parameters": { "id": 8049, "nodeType": "ParameterList", "parameters": [], "src": "1555:2:8" }, "returnParameters": { "id": 8052, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 8051, "name": "", "nodeType": "VariableDeclaration", "scope": 8063, "src": "1581:14:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory_ptr", "typeString": "struct Pairing.G2Point" }, "typeName": { "contractScope": null, "id": 8050, "name": "G2Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8037, "src": "1581:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_storage_ptr", "typeString": "struct Pairing.G2Point" } }, "value": null, "visibility": "internal" } ], "src": "1580:16:8" }, "scope": 8595, "src": "1544:576:8", "stateMutability": "pure", "superFunction": null, "visibility": "internal" }, { "body": { "id": 8101, "nodeType": "Block", "src": "2278:258:8", "statements": [ { "assignments": [ 8071 ], "declarations": [ { "constant": false, "id": 8071, "name": "q", "nodeType": "VariableDeclaration", "scope": 8101, "src": "2340:9:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 8070, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2340:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "id": 8073, "initialValue": { "argumentTypes": null, "hexValue": "3231383838323432383731383339323735323232323436343035373435323537323735303838363936333131313537323937383233363632363839303337383934363435323236323038353833", "id": 8072, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "2352:77:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_21888242871839275222246405745257275088696311157297823662689037894645226208583_by_1", "typeString": "int_const 2188...(69 digits omitted)...8583" }, "value": "21888242871839275222246405745257275088696311157297823662689037894645226208583" }, "nodeType": "VariableDeclarationStatement", "src": "2340:89:8" }, { "condition": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_bool", "typeString": "bool" }, "id": 8082, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 8077, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 8074, "name": "p", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8065, "src": "2443:1:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" } }, "id": 8075, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "X", "nodeType": "MemberAccess", "referencedDeclaration": 8025, "src": "2443:3:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "argumentTypes": null, "hexValue": "30", "id": 8076, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "2450:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "src": "2443:8:8", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "BinaryOperation", "operator": "&&", "rightExpression": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 8081, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 8078, "name": "p", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8065, "src": "2455:1:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" } }, "id": 8079, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Y", "nodeType": "MemberAccess", "referencedDeclaration": 8027, "src": "2455:3:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "argumentTypes": null, "hexValue": "30", "id": 8080, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "2462:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "src": "2455:8:8", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "src": "2443:20:8", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": null, "id": 8088, "nodeType": "IfStatement", "src": "2439:46:8", "trueBody": { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "30", "id": 8084, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "2480:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, { "argumentTypes": null, "hexValue": "30", "id": 8085, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "2483:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" } ], "id": 8083, "name": "G1Point", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8028, "src": "2472:7:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_struct$_G1Point_$8028_storage_ptr_$", "typeString": "type(struct Pairing.G1Point storage pointer)" } }, "id": 8086, "isConstant": false, "isLValue": false, "isPure": true, "kind": "structConstructorCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2472:13:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } }, "functionReturnParameters": 8069, "id": 8087, "nodeType": "Return", "src": "2465:20:8" } }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 8090, "name": "p", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8065, "src": "2510:1:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" } }, "id": 8091, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "X", "nodeType": "MemberAccess", "referencedDeclaration": 8025, "src": "2510:3:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 8098, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 8092, "name": "q", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8071, "src": "2515:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "-", "rightExpression": { "argumentTypes": null, "components": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 8096, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 8093, "name": "p", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8065, "src": "2520:1:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" } }, "id": 8094, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Y", "nodeType": "MemberAccess", "referencedDeclaration": 8027, "src": "2520:3:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "%", "rightExpression": { "argumentTypes": null, "id": 8095, "name": "q", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8071, "src": "2526:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "2520:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "id": 8097, "isConstant": false, "isInlineArray": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "TupleExpression", "src": "2519:9:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "2515:13:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 8089, "name": "G1Point", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8028, "src": "2502:7:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_struct$_G1Point_$8028_storage_ptr_$", "typeString": "type(struct Pairing.G1Point storage pointer)" } }, "id": 8099, "isConstant": false, "isLValue": false, "isPure": false, "kind": "structConstructorCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2502:27:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } }, "functionReturnParameters": 8069, "id": 8100, "nodeType": "Return", "src": "2495:34:8" } ] }, "documentation": "@return the negation of p, i.e. p.addition(p.negate()) should be zero.", "id": 8102, "implemented": true, "kind": "function", "modifiers": [], "name": "negate", "nodeType": "FunctionDefinition", "parameters": { "id": 8066, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 8065, "name": "p", "nodeType": "VariableDeclaration", "scope": 8102, "src": "2221:16:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point" }, "typeName": { "contractScope": null, "id": 8064, "name": "G1Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8028, "src": "2221:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_storage_ptr", "typeString": "struct Pairing.G1Point" } }, "value": null, "visibility": "internal" } ], "src": "2220:18:8" }, "returnParameters": { "id": 8069, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 8068, "name": "", "nodeType": "VariableDeclaration", "scope": 8102, "src": "2262:14:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point" }, "typeName": { "contractScope": null, "id": 8067, "name": "G1Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8028, "src": "2262:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_storage_ptr", "typeString": "struct Pairing.G1Point" } }, "value": null, "visibility": "internal" } ], "src": "2261:16:8" }, "scope": 8595, "src": "2205:331:8", "stateMutability": "pure", "superFunction": null, "visibility": "internal" }, { "body": { "id": 8153, "nodeType": "Block", "src": "2713:439:8", "statements": [ { "assignments": [ 8115 ], "declarations": [ { "constant": false, "id": 8115, "name": "input", "nodeType": "VariableDeclaration", "scope": 8153, "src": "2723:23:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$4_memory_ptr", "typeString": "uint256[4]" }, "typeName": { "baseType": { "id": 8113, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2723:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 8114, "length": { "argumentTypes": null, "hexValue": "34", "id": 8112, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "2731:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_4_by_1", "typeString": "int_const 4" }, "value": "4" }, "nodeType": "ArrayTypeName", "src": "2723:10:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$4_storage_ptr", "typeString": "uint256[4]" } }, "value": null, "visibility": "internal" } ], "id": 8116, "initialValue": null, "nodeType": "VariableDeclarationStatement", "src": "2723:23:8" }, { "expression": { "argumentTypes": null, "id": 8122, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 8117, "name": "input", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8115, "src": "2756:5:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$4_memory_ptr", "typeString": "uint256[4] memory" } }, "id": 8119, "indexExpression": { "argumentTypes": null, "hexValue": "30", "id": 8118, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "2762:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "2756:8:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 8120, "name": "p1", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8104, "src": "2767:2:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" } }, "id": 8121, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "X", "nodeType": "MemberAccess", "referencedDeclaration": 8025, "src": "2767:4:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "2756:15:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 8123, "nodeType": "ExpressionStatement", "src": "2756:15:8" }, { "expression": { "argumentTypes": null, "id": 8129, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 8124, "name": "input", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8115, "src": "2781:5:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$4_memory_ptr", "typeString": "uint256[4] memory" } }, "id": 8126, "indexExpression": { "argumentTypes": null, "hexValue": "31", "id": 8125, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "2787:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_1_by_1", "typeString": "int_const 1" }, "value": "1" }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "2781:8:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 8127, "name": "p1", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8104, "src": "2792:2:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" } }, "id": 8128, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Y", "nodeType": "MemberAccess", "referencedDeclaration": 8027, "src": "2792:4:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "2781:15:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 8130, "nodeType": "ExpressionStatement", "src": "2781:15:8" }, { "expression": { "argumentTypes": null, "id": 8136, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 8131, "name": "input", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8115, "src": "2806:5:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$4_memory_ptr", "typeString": "uint256[4] memory" } }, "id": 8133, "indexExpression": { "argumentTypes": null, "hexValue": "32", "id": 8132, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "2812:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_2_by_1", "typeString": "int_const 2" }, "value": "2" }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "2806:8:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 8134, "name": "p2", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8106, "src": "2817:2:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" } }, "id": 8135, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "X", "nodeType": "MemberAccess", "referencedDeclaration": 8025, "src": "2817:4:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "2806:15:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 8137, "nodeType": "ExpressionStatement", "src": "2806:15:8" }, { "expression": { "argumentTypes": null, "id": 8143, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 8138, "name": "input", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8115, "src": "2831:5:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$4_memory_ptr", "typeString": "uint256[4] memory" } }, "id": 8140, "indexExpression": { "argumentTypes": null, "hexValue": "33", "id": 8139, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "2837:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_3_by_1", "typeString": "int_const 3" }, "value": "3" }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "2831:8:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 8141, "name": "p2", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8106, "src": "2842:2:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" } }, "id": 8142, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Y", "nodeType": "MemberAccess", "referencedDeclaration": 8027, "src": "2842:4:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "2831:15:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 8144, "nodeType": "ExpressionStatement", "src": "2831:15:8" }, { "assignments": [ 8146 ], "declarations": [ { "constant": false, "id": 8146, "name": "success", "nodeType": "VariableDeclaration", "scope": 8153, "src": "2856:12:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 8145, "name": "bool", "nodeType": "ElementaryTypeName", "src": "2856:4:8", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "id": 8147, "initialValue": null, "nodeType": "VariableDeclarationStatement", "src": "2856:12:8" }, { "externalReferences": [ { "success": { "declaration": 8146, "isOffset": false, "isSlot": false, "src": "2901:7:8", "valueSize": 1 } }, { "success": { "declaration": 8146, "isOffset": false, "isSlot": false, "src": "3042:7:8", "valueSize": 1 } }, { "input": { "declaration": 8115, "isOffset": false, "isSlot": false, "src": "2944:5:8", "valueSize": 1 } }, { "r": { "declaration": 8109, "isOffset": false, "isSlot": false, "src": "2957:1:8", "valueSize": 1 } } ], "id": 8148, "nodeType": "InlineAssembly", "operations": "{\n success := staticcall(sub(gas(), 2000), 6, input, 0xc0, r, 0x60)\n switch success\n case 0 { invalid() }\n}", "src": "2878:242:8" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 8150, "name": "success", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8146, "src": "3137:7:8", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 8149, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8960, "src": "3129:7:8", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 8151, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "3129:16:8", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 8152, "nodeType": "ExpressionStatement", "src": "3129:16:8" } ] }, "documentation": "@return r the sum of two points of G1", "id": 8154, "implemented": true, "kind": "function", "modifiers": [], "name": "addition", "nodeType": "FunctionDefinition", "parameters": { "id": 8107, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 8104, "name": "p1", "nodeType": "VariableDeclaration", "scope": 8154, "src": "2606:17:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point" }, "typeName": { "contractScope": null, "id": 8103, "name": "G1Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8028, "src": "2606:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_storage_ptr", "typeString": "struct Pairing.G1Point" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 8106, "name": "p2", "nodeType": "VariableDeclaration", "scope": 8154, "src": "2625:17:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point" }, "typeName": { "contractScope": null, "id": 8105, "name": "G1Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8028, "src": "2625:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_storage_ptr", "typeString": "struct Pairing.G1Point" } }, "value": null, "visibility": "internal" } ], "src": "2605:38:8" }, "returnParameters": { "id": 8110, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 8109, "name": "r", "nodeType": "VariableDeclaration", "scope": 8154, "src": "2691:16:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point" }, "typeName": { "contractScope": null, "id": 8108, "name": "G1Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8028, "src": "2691:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_storage_ptr", "typeString": "struct Pairing.G1Point" } }, "value": null, "visibility": "internal" } ], "src": "2690:18:8" }, "scope": 8595, "src": "2588:564:8", "stateMutability": "view", "superFunction": null, "visibility": "internal" }, { "body": { "id": 8197, "nodeType": "Block", "src": "3426:409:8", "statements": [ { "assignments": [ 8167 ], "declarations": [ { "constant": false, "id": 8167, "name": "input", "nodeType": "VariableDeclaration", "scope": 8197, "src": "3436:23:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$3_memory_ptr", "typeString": "uint256[3]" }, "typeName": { "baseType": { "id": 8165, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3436:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 8166, "length": { "argumentTypes": null, "hexValue": "33", "id": 8164, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "3444:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_3_by_1", "typeString": "int_const 3" }, "value": "3" }, "nodeType": "ArrayTypeName", "src": "3436:10:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$3_storage_ptr", "typeString": "uint256[3]" } }, "value": null, "visibility": "internal" } ], "id": 8168, "initialValue": null, "nodeType": "VariableDeclarationStatement", "src": "3436:23:8" }, { "expression": { "argumentTypes": null, "id": 8174, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 8169, "name": "input", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8167, "src": "3469:5:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$3_memory_ptr", "typeString": "uint256[3] memory" } }, "id": 8171, "indexExpression": { "argumentTypes": null, "hexValue": "30", "id": 8170, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "3475:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "3469:8:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 8172, "name": "p", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8156, "src": "3480:1:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" } }, "id": 8173, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "X", "nodeType": "MemberAccess", "referencedDeclaration": 8025, "src": "3480:3:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "3469:14:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 8175, "nodeType": "ExpressionStatement", "src": "3469:14:8" }, { "expression": { "argumentTypes": null, "id": 8181, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 8176, "name": "input", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8167, "src": "3493:5:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$3_memory_ptr", "typeString": "uint256[3] memory" } }, "id": 8178, "indexExpression": { "argumentTypes": null, "hexValue": "31", "id": 8177, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "3499:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_1_by_1", "typeString": "int_const 1" }, "value": "1" }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "3493:8:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 8179, "name": "p", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8156, "src": "3504:1:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" } }, "id": 8180, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Y", "nodeType": "MemberAccess", "referencedDeclaration": 8027, "src": "3504:3:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "3493:14:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 8182, "nodeType": "ExpressionStatement", "src": "3493:14:8" }, { "expression": { "argumentTypes": null, "id": 8187, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 8183, "name": "input", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8167, "src": "3517:5:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$3_memory_ptr", "typeString": "uint256[3] memory" } }, "id": 8185, "indexExpression": { "argumentTypes": null, "hexValue": "32", "id": 8184, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "3523:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_2_by_1", "typeString": "int_const 2" }, "value": "2" }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "3517:8:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 8186, "name": "s", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8158, "src": "3528:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "3517:12:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 8188, "nodeType": "ExpressionStatement", "src": "3517:12:8" }, { "assignments": [ 8190 ], "declarations": [ { "constant": false, "id": 8190, "name": "success", "nodeType": "VariableDeclaration", "scope": 8197, "src": "3539:12:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 8189, "name": "bool", "nodeType": "ElementaryTypeName", "src": "3539:4:8", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "id": 8191, "initialValue": null, "nodeType": "VariableDeclarationStatement", "src": "3539:12:8" }, { "externalReferences": [ { "success": { "declaration": 8190, "isOffset": false, "isSlot": false, "src": "3584:7:8", "valueSize": 1 } }, { "success": { "declaration": 8190, "isOffset": false, "isSlot": false, "src": "3725:7:8", "valueSize": 1 } }, { "input": { "declaration": 8167, "isOffset": false, "isSlot": false, "src": "3627:5:8", "valueSize": 1 } }, { "r": { "declaration": 8161, "isOffset": false, "isSlot": false, "src": "3640:1:8", "valueSize": 1 } } ], "id": 8192, "nodeType": "InlineAssembly", "operations": "{\n success := staticcall(sub(gas(), 2000), 7, input, 0x80, r, 0x60)\n switch success\n case 0 { invalid() }\n}", "src": "3561:242:8" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 8194, "name": "success", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8190, "src": "3820:7:8", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 8193, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8960, "src": "3812:7:8", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 8195, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "3812:16:8", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 8196, "nodeType": "ExpressionStatement", "src": "3812:16:8" } ] }, "documentation": "@return r the product of a point on G1 and a scalar, i.e.\n p == p.scalar_mul(1) and p.addition(p) == p.scalar_mul(2) for all points p.", "id": 8198, "implemented": true, "kind": "function", "modifiers": [], "name": "scalar_mul", "nodeType": "FunctionDefinition", "parameters": { "id": 8159, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 8156, "name": "p", "nodeType": "VariableDeclaration", "scope": 8198, "src": "3328:16:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point" }, "typeName": { "contractScope": null, "id": 8155, "name": "G1Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8028, "src": "3328:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_storage_ptr", "typeString": "struct Pairing.G1Point" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 8158, "name": "s", "nodeType": "VariableDeclaration", "scope": 8198, "src": "3346:9:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 8157, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3346:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "3327:29:8" }, "returnParameters": { "id": 8162, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 8161, "name": "r", "nodeType": "VariableDeclaration", "scope": 8198, "src": "3404:16:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point" }, "typeName": { "contractScope": null, "id": 8160, "name": "G1Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8028, "src": "3404:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_storage_ptr", "typeString": "struct Pairing.G1Point" } }, "value": null, "visibility": "internal" } ], "src": "3403:18:8" }, "scope": 8595, "src": "3308:527:8", "stateMutability": "view", "superFunction": null, "visibility": "internal" }, { "body": { "id": 8356, "nodeType": "Block", "src": "4163:995:8", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 8214, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 8210, "name": "p1", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8201, "src": "4181:2:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G1Point memory[] memory" } }, "id": 8211, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "length", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "4181:9:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 8212, "name": "p2", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8204, "src": "4194:2:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G2Point_$8037_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G2Point memory[] memory" } }, "id": 8213, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "length", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "4194:9:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "4181:22:8", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 8209, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8960, "src": "4173:7:8", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 8215, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "4173:31:8", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 8216, "nodeType": "ExpressionStatement", "src": "4173:31:8" }, { "assignments": [ 8218 ], "declarations": [ { "constant": false, "id": 8218, "name": "elements", "nodeType": "VariableDeclaration", "scope": 8356, "src": "4214:16:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 8217, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "4214:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "id": 8221, "initialValue": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 8219, "name": "p1", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8201, "src": "4233:2:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G1Point memory[] memory" } }, "id": 8220, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "length", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "4233:9:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "VariableDeclarationStatement", "src": "4214:28:8" }, { "assignments": [ 8223 ], "declarations": [ { "constant": false, "id": 8223, "name": "inputSize", "nodeType": "VariableDeclaration", "scope": 8356, "src": "4252:17:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 8222, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "4252:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "id": 8227, "initialValue": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 8226, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 8224, "name": "elements", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8218, "src": "4272:8:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "*", "rightExpression": { "argumentTypes": null, "hexValue": "36", "id": 8225, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "4283:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_6_by_1", "typeString": "int_const 6" }, "value": "6" }, "src": "4272:12:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "VariableDeclarationStatement", "src": "4252:32:8" }, { "assignments": [ 8231 ], "declarations": [ { "constant": false, "id": 8231, "name": "input", "nodeType": "VariableDeclaration", "scope": 8356, "src": "4294:22:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[]" }, "typeName": { "baseType": { "id": 8229, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "4294:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 8230, "length": null, "nodeType": "ArrayTypeName", "src": "4294:9:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } }, "value": null, "visibility": "internal" } ], "id": 8237, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 8235, "name": "inputSize", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8223, "src": "4333:9:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 8234, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "4319:13:8", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_uint256_$dyn_memory_$", "typeString": "function (uint256) pure returns (uint256[] memory)" }, "typeName": { "baseType": { "id": 8232, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "4323:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 8233, "length": null, "nodeType": "ArrayTypeName", "src": "4323:9:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } } }, "id": 8236, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "4319:24:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory", "typeString": "uint256[] memory" } }, "nodeType": "VariableDeclarationStatement", "src": "4294:49:8" }, { "body": { "id": 8334, "nodeType": "Block", "src": "4392:263:8", "statements": [ { "expression": { "argumentTypes": null, "id": 8259, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 8248, "name": "input", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8231, "src": "4406:5:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 8254, "indexExpression": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 8253, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 8251, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 8249, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8239, "src": "4412:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "*", "rightExpression": { "argumentTypes": null, "hexValue": "36", "id": 8250, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "4416:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_6_by_1", "typeString": "int_const 6" }, "value": "6" }, "src": "4412:5:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "+", "rightExpression": { "argumentTypes": null, "hexValue": "30", "id": 8252, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "4420:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "src": "4412:9:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "4406:16:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "expression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 8255, "name": "p1", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8201, "src": "4425:2:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G1Point memory[] memory" } }, "id": 8257, "indexExpression": { "argumentTypes": null, "id": 8256, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8239, "src": "4428:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "4425:5:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } }, "id": 8258, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "X", "nodeType": "MemberAccess", "referencedDeclaration": 8025, "src": "4425:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "4406:26:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 8260, "nodeType": "ExpressionStatement", "src": "4406:26:8" }, { "expression": { "argumentTypes": null, "id": 8272, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 8261, "name": "input", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8231, "src": "4446:5:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 8267, "indexExpression": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 8266, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 8264, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 8262, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8239, "src": "4452:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "*", "rightExpression": { "argumentTypes": null, "hexValue": "36", "id": 8263, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "4456:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_6_by_1", "typeString": "int_const 6" }, "value": "6" }, "src": "4452:5:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "+", "rightExpression": { "argumentTypes": null, "hexValue": "31", "id": 8265, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "4460:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_1_by_1", "typeString": "int_const 1" }, "value": "1" }, "src": "4452:9:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "4446:16:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "expression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 8268, "name": "p1", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8201, "src": "4465:2:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G1Point memory[] memory" } }, "id": 8270, "indexExpression": { "argumentTypes": null, "id": 8269, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8239, "src": "4468:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "4465:5:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } }, "id": 8271, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Y", "nodeType": "MemberAccess", "referencedDeclaration": 8027, "src": "4465:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "4446:26:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 8273, "nodeType": "ExpressionStatement", "src": "4446:26:8" }, { "expression": { "argumentTypes": null, "id": 8287, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 8274, "name": "input", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8231, "src": "4486:5:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 8280, "indexExpression": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 8279, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 8277, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 8275, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8239, "src": "4492:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "*", "rightExpression": { "argumentTypes": null, "hexValue": "36", "id": 8276, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "4496:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_6_by_1", "typeString": "int_const 6" }, "value": "6" }, "src": "4492:5:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "+", "rightExpression": { "argumentTypes": null, "hexValue": "32", "id": 8278, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "4500:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_2_by_1", "typeString": "int_const 2" }, "value": "2" }, "src": "4492:9:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "4486:16:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 8281, "name": "p2", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8204, "src": "4505:2:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G2Point_$8037_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G2Point memory[] memory" } }, "id": 8283, "indexExpression": { "argumentTypes": null, "id": 8282, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8239, "src": "4508:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "4505:5:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory", "typeString": "struct Pairing.G2Point memory" } }, "id": 8284, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "X", "nodeType": "MemberAccess", "referencedDeclaration": 8032, "src": "4505:7:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$2_memory", "typeString": "uint256[2] memory" } }, "id": 8286, "indexExpression": { "argumentTypes": null, "hexValue": "31", "id": 8285, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "4513:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_1_by_1", "typeString": "int_const 1" }, "value": "1" }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "4505:10:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "4486:29:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 8288, "nodeType": "ExpressionStatement", "src": "4486:29:8" }, { "expression": { "argumentTypes": null, "id": 8302, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 8289, "name": "input", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8231, "src": "4529:5:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 8295, "indexExpression": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 8294, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 8292, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 8290, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8239, "src": "4535:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "*", "rightExpression": { "argumentTypes": null, "hexValue": "36", "id": 8291, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "4539:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_6_by_1", "typeString": "int_const 6" }, "value": "6" }, "src": "4535:5:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "+", "rightExpression": { "argumentTypes": null, "hexValue": "33", "id": 8293, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "4543:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_3_by_1", "typeString": "int_const 3" }, "value": "3" }, "src": "4535:9:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "4529:16:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 8296, "name": "p2", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8204, "src": "4548:2:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G2Point_$8037_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G2Point memory[] memory" } }, "id": 8298, "indexExpression": { "argumentTypes": null, "id": 8297, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8239, "src": "4551:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "4548:5:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory", "typeString": "struct Pairing.G2Point memory" } }, "id": 8299, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "X", "nodeType": "MemberAccess", "referencedDeclaration": 8032, "src": "4548:7:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$2_memory", "typeString": "uint256[2] memory" } }, "id": 8301, "indexExpression": { "argumentTypes": null, "hexValue": "30", "id": 8300, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "4556:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "4548:10:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "4529:29:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 8303, "nodeType": "ExpressionStatement", "src": "4529:29:8" }, { "expression": { "argumentTypes": null, "id": 8317, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 8304, "name": "input", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8231, "src": "4572:5:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 8310, "indexExpression": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 8309, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 8307, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 8305, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8239, "src": "4578:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "*", "rightExpression": { "argumentTypes": null, "hexValue": "36", "id": 8306, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "4582:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_6_by_1", "typeString": "int_const 6" }, "value": "6" }, "src": "4578:5:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "+", "rightExpression": { "argumentTypes": null, "hexValue": "34", "id": 8308, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "4586:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_4_by_1", "typeString": "int_const 4" }, "value": "4" }, "src": "4578:9:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "4572:16:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 8311, "name": "p2", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8204, "src": "4591:2:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G2Point_$8037_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G2Point memory[] memory" } }, "id": 8313, "indexExpression": { "argumentTypes": null, "id": 8312, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8239, "src": "4594:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "4591:5:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory", "typeString": "struct Pairing.G2Point memory" } }, "id": 8314, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Y", "nodeType": "MemberAccess", "referencedDeclaration": 8036, "src": "4591:7:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$2_memory", "typeString": "uint256[2] memory" } }, "id": 8316, "indexExpression": { "argumentTypes": null, "hexValue": "31", "id": 8315, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "4599:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_1_by_1", "typeString": "int_const 1" }, "value": "1" }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "4591:10:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "4572:29:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 8318, "nodeType": "ExpressionStatement", "src": "4572:29:8" }, { "expression": { "argumentTypes": null, "id": 8332, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 8319, "name": "input", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8231, "src": "4615:5:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 8325, "indexExpression": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 8324, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 8322, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 8320, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8239, "src": "4621:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "*", "rightExpression": { "argumentTypes": null, "hexValue": "36", "id": 8321, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "4625:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_6_by_1", "typeString": "int_const 6" }, "value": "6" }, "src": "4621:5:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "+", "rightExpression": { "argumentTypes": null, "hexValue": "35", "id": 8323, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "4629:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_5_by_1", "typeString": "int_const 5" }, "value": "5" }, "src": "4621:9:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "4615:16:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 8326, "name": "p2", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8204, "src": "4634:2:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G2Point_$8037_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G2Point memory[] memory" } }, "id": 8328, "indexExpression": { "argumentTypes": null, "id": 8327, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8239, "src": "4637:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "4634:5:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory", "typeString": "struct Pairing.G2Point memory" } }, "id": 8329, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "Y", "nodeType": "MemberAccess", "referencedDeclaration": 8036, "src": "4634:7:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$2_memory", "typeString": "uint256[2] memory" } }, "id": 8331, "indexExpression": { "argumentTypes": null, "hexValue": "30", "id": 8330, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "4642:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "4634:10:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "4615:29:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 8333, "nodeType": "ExpressionStatement", "src": "4615:29:8" } ] }, "condition": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 8244, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 8242, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8239, "src": "4373:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "argumentTypes": null, "id": 8243, "name": "elements", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8218, "src": "4377:8:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "4373:12:8", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 8335, "initializationExpression": { "assignments": [ 8239 ], "declarations": [ { "constant": false, "id": 8239, "name": "i", "nodeType": "VariableDeclaration", "scope": 8335, "src": "4358:9:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 8238, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "4358:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "id": 8241, "initialValue": { "argumentTypes": null, "hexValue": "30", "id": 8240, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "4370:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "nodeType": "VariableDeclarationStatement", "src": "4358:13:8" }, "loopExpression": { "expression": { "argumentTypes": null, "id": 8246, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "4387:3:8", "subExpression": { "argumentTypes": null, "id": 8245, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8239, "src": "4387:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 8247, "nodeType": "ExpressionStatement", "src": "4387:3:8" }, "nodeType": "ForStatement", "src": "4353:302:8" }, { "assignments": [ 8340 ], "declarations": [ { "constant": false, "id": 8340, "name": "out", "nodeType": "VariableDeclaration", "scope": 8356, "src": "4664:21:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$1_memory_ptr", "typeString": "uint256[1]" }, "typeName": { "baseType": { "id": 8338, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "4664:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 8339, "length": { "argumentTypes": null, "hexValue": "31", "id": 8337, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "4672:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_1_by_1", "typeString": "int_const 1" }, "value": "1" }, "nodeType": "ArrayTypeName", "src": "4664:10:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$1_storage_ptr", "typeString": "uint256[1]" } }, "value": null, "visibility": "internal" } ], "id": 8341, "initialValue": null, "nodeType": "VariableDeclarationStatement", "src": "4664:21:8" }, { "assignments": [ 8343 ], "declarations": [ { "constant": false, "id": 8343, "name": "success", "nodeType": "VariableDeclaration", "scope": 8356, "src": "4695:12:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 8342, "name": "bool", "nodeType": "ElementaryTypeName", "src": "4695:4:8", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "id": 8344, "initialValue": null, "nodeType": "VariableDeclarationStatement", "src": "4695:12:8" }, { "externalReferences": [ { "success": { "declaration": 8343, "isOffset": false, "isSlot": false, "src": "4740:7:8", "valueSize": 1 } }, { "input": { "declaration": 8231, "isOffset": false, "isSlot": false, "src": "4836:5:8", "valueSize": 1 } }, { "success": { "declaration": 8343, "isOffset": false, "isSlot": false, "src": "5020:7:8", "valueSize": 1 } }, { "inputSize": { "declaration": 8223, "isOffset": false, "isSlot": false, "src": "4870:9:8", "valueSize": 1 } }, { "out": { "declaration": 8340, "isOffset": false, "isSlot": false, "src": "4904:3:8", "valueSize": 1 } } ], "id": 8345, "nodeType": "InlineAssembly", "operations": "{\n success := staticcall(sub(gas(), 2000), 8, add(input, 0x20), mul(inputSize, 0x20), out, 0x20)\n switch success\n case 0 { invalid() }\n}", "src": "4717:381:8" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 8347, "name": "success", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8343, "src": "5115:7:8", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 8346, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8960, "src": "5107:7:8", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 8348, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "5107:16:8", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 8349, "nodeType": "ExpressionStatement", "src": "5107:16:8" }, { "expression": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 8354, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 8350, "name": "out", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8340, "src": "5140:3:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$1_memory_ptr", "typeString": "uint256[1] memory" } }, "id": 8352, "indexExpression": { "argumentTypes": null, "hexValue": "30", "id": 8351, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "5144:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "5140:6:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "argumentTypes": null, "hexValue": "30", "id": 8353, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "5150:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "src": "5140:11:8", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "functionReturnParameters": 8208, "id": 8355, "nodeType": "Return", "src": "5133:18:8" } ] }, "documentation": "@return the result of computing the pairing check\n e(p1[0], p2[0]) * .... * e(p1[n], p2[n]) == 1\n For example pairing([P1(), P1().negate()], [P2(), P2()]) should\n return true.", "id": 8357, "implemented": true, "kind": "function", "modifiers": [], "name": "pairing", "nodeType": "FunctionDefinition", "parameters": { "id": 8205, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 8201, "name": "p1", "nodeType": "VariableDeclaration", "scope": 8357, "src": "4064:19:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G1Point[]" }, "typeName": { "baseType": { "contractScope": null, "id": 8199, "name": "G1Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8028, "src": "4064:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_storage_ptr", "typeString": "struct Pairing.G1Point" } }, "id": 8200, "length": null, "nodeType": "ArrayTypeName", "src": "4064:9:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_storage_$dyn_storage_ptr", "typeString": "struct Pairing.G1Point[]" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 8204, "name": "p2", "nodeType": "VariableDeclaration", "scope": 8357, "src": "4085:19:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G2Point_$8037_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G2Point[]" }, "typeName": { "baseType": { "contractScope": null, "id": 8202, "name": "G2Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8037, "src": "4085:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_storage_ptr", "typeString": "struct Pairing.G2Point" } }, "id": 8203, "length": null, "nodeType": "ArrayTypeName", "src": "4085:9:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G2Point_$8037_storage_$dyn_storage_ptr", "typeString": "struct Pairing.G2Point[]" } }, "value": null, "visibility": "internal" } ], "src": "4063:42:8" }, "returnParameters": { "id": 8208, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 8207, "name": "", "nodeType": "VariableDeclaration", "scope": 8357, "src": "4153:4:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 8206, "name": "bool", "nodeType": "ElementaryTypeName", "src": "4153:4:8", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "4152:6:8" }, "scope": 8595, "src": "4047:1111:8", "stateMutability": "view", "superFunction": null, "visibility": "internal" }, { "body": { "id": 8419, "nodeType": "Block", "src": "5391:215:8", "statements": [ { "assignments": [ 8373 ], "declarations": [ { "constant": false, "id": 8373, "name": "p1", "nodeType": "VariableDeclaration", "scope": 8419, "src": "5401:19:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G1Point[]" }, "typeName": { "baseType": { "contractScope": null, "id": 8371, "name": "G1Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8028, "src": "5401:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_storage_ptr", "typeString": "struct Pairing.G1Point" } }, "id": 8372, "length": null, "nodeType": "ArrayTypeName", "src": "5401:9:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_storage_$dyn_storage_ptr", "typeString": "struct Pairing.G1Point[]" } }, "value": null, "visibility": "internal" } ], "id": 8379, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "32", "id": 8377, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "5437:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_2_by_1", "typeString": "int_const 2" }, "value": "2" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_2_by_1", "typeString": "int_const 2" } ], "id": 8376, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "5423:13:8", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory_$", "typeString": "function (uint256) pure returns (struct Pairing.G1Point memory[] memory)" }, "typeName": { "baseType": { "contractScope": null, "id": 8374, "name": "G1Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8028, "src": "5427:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_storage_ptr", "typeString": "struct Pairing.G1Point" } }, "id": 8375, "length": null, "nodeType": "ArrayTypeName", "src": "5427:9:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_storage_$dyn_storage_ptr", "typeString": "struct Pairing.G1Point[]" } } }, "id": 8378, "isConstant": false, "isLValue": false, "isPure": true, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "5423:16:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory", "typeString": "struct Pairing.G1Point memory[] memory" } }, "nodeType": "VariableDeclarationStatement", "src": "5401:38:8" }, { "assignments": [ 8383 ], "declarations": [ { "constant": false, "id": 8383, "name": "p2", "nodeType": "VariableDeclaration", "scope": 8419, "src": "5449:19:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G2Point_$8037_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G2Point[]" }, "typeName": { "baseType": { "contractScope": null, "id": 8381, "name": "G2Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8037, "src": "5449:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_storage_ptr", "typeString": "struct Pairing.G2Point" } }, "id": 8382, "length": null, "nodeType": "ArrayTypeName", "src": "5449:9:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G2Point_$8037_storage_$dyn_storage_ptr", "typeString": "struct Pairing.G2Point[]" } }, "value": null, "visibility": "internal" } ], "id": 8389, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "32", "id": 8387, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "5485:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_2_by_1", "typeString": "int_const 2" }, "value": "2" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_2_by_1", "typeString": "int_const 2" } ], "id": 8386, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "5471:13:8", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_struct$_G2Point_$8037_memory_$dyn_memory_$", "typeString": "function (uint256) pure returns (struct Pairing.G2Point memory[] memory)" }, "typeName": { "baseType": { "contractScope": null, "id": 8384, "name": "G2Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8037, "src": "5475:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_storage_ptr", "typeString": "struct Pairing.G2Point" } }, "id": 8385, "length": null, "nodeType": "ArrayTypeName", "src": "5475:9:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G2Point_$8037_storage_$dyn_storage_ptr", "typeString": "struct Pairing.G2Point[]" } } }, "id": 8388, "isConstant": false, "isLValue": false, "isPure": true, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "5471:16:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G2Point_$8037_memory_$dyn_memory", "typeString": "struct Pairing.G2Point memory[] memory" } }, "nodeType": "VariableDeclarationStatement", "src": "5449:38:8" }, { "expression": { "argumentTypes": null, "id": 8394, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 8390, "name": "p1", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8373, "src": "5497:2:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G1Point memory[] memory" } }, "id": 8392, "indexExpression": { "argumentTypes": null, "hexValue": "30", "id": 8391, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "5500:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "5497:5:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 8393, "name": "a1", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8359, "src": "5505:2:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" } }, "src": "5497:10:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } }, "id": 8395, "nodeType": "ExpressionStatement", "src": "5497:10:8" }, { "expression": { "argumentTypes": null, "id": 8400, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 8396, "name": "p1", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8373, "src": "5517:2:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G1Point memory[] memory" } }, "id": 8398, "indexExpression": { "argumentTypes": null, "hexValue": "31", "id": 8397, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "5520:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_1_by_1", "typeString": "int_const 1" }, "value": "1" }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "5517:5:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 8399, "name": "b1", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8363, "src": "5525:2:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" } }, "src": "5517:10:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } }, "id": 8401, "nodeType": "ExpressionStatement", "src": "5517:10:8" }, { "expression": { "argumentTypes": null, "id": 8406, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 8402, "name": "p2", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8383, "src": "5537:2:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G2Point_$8037_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G2Point memory[] memory" } }, "id": 8404, "indexExpression": { "argumentTypes": null, "hexValue": "30", "id": 8403, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "5540:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "5537:5:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory", "typeString": "struct Pairing.G2Point memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 8405, "name": "a2", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8361, "src": "5545:2:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory_ptr", "typeString": "struct Pairing.G2Point memory" } }, "src": "5537:10:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory", "typeString": "struct Pairing.G2Point memory" } }, "id": 8407, "nodeType": "ExpressionStatement", "src": "5537:10:8" }, { "expression": { "argumentTypes": null, "id": 8412, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 8408, "name": "p2", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8383, "src": "5557:2:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G2Point_$8037_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G2Point memory[] memory" } }, "id": 8410, "indexExpression": { "argumentTypes": null, "hexValue": "31", "id": 8409, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "5560:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_1_by_1", "typeString": "int_const 1" }, "value": "1" }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "5557:5:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory", "typeString": "struct Pairing.G2Point memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 8411, "name": "b2", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8365, "src": "5565:2:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory_ptr", "typeString": "struct Pairing.G2Point memory" } }, "src": "5557:10:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory", "typeString": "struct Pairing.G2Point memory" } }, "id": 8413, "nodeType": "ExpressionStatement", "src": "5557:10:8" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 8415, "name": "p1", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8373, "src": "5592:2:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G1Point memory[] memory" } }, { "argumentTypes": null, "id": 8416, "name": "p2", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8383, "src": "5596:2:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G2Point_$8037_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G2Point memory[] memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G1Point memory[] memory" }, { "typeIdentifier": "t_array$_t_struct$_G2Point_$8037_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G2Point memory[] memory" } ], "id": 8414, "name": "pairing", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8357, "src": "5584:7:8", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory_ptr_$_t_array$_t_struct$_G2Point_$8037_memory_$dyn_memory_ptr_$returns$_t_bool_$", "typeString": "function (struct Pairing.G1Point memory[] memory,struct Pairing.G2Point memory[] memory) view returns (bool)" } }, "id": 8417, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "5584:15:8", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "functionReturnParameters": 8369, "id": 8418, "nodeType": "Return", "src": "5577:22:8" } ] }, "documentation": "Convenience method for a pairing check for two pairs.", "id": 8420, "implemented": true, "kind": "function", "modifiers": [], "name": "pairingProd2", "nodeType": "FunctionDefinition", "parameters": { "id": 8366, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 8359, "name": "a1", "nodeType": "VariableDeclaration", "scope": 8420, "src": "5257:17:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point" }, "typeName": { "contractScope": null, "id": 8358, "name": "G1Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8028, "src": "5257:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_storage_ptr", "typeString": "struct Pairing.G1Point" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 8361, "name": "a2", "nodeType": "VariableDeclaration", "scope": 8420, "src": "5284:17:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory_ptr", "typeString": "struct Pairing.G2Point" }, "typeName": { "contractScope": null, "id": 8360, "name": "G2Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8037, "src": "5284:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_storage_ptr", "typeString": "struct Pairing.G2Point" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 8363, "name": "b1", "nodeType": "VariableDeclaration", "scope": 8420, "src": "5311:17:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point" }, "typeName": { "contractScope": null, "id": 8362, "name": "G1Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8028, "src": "5311:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_storage_ptr", "typeString": "struct Pairing.G1Point" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 8365, "name": "b2", "nodeType": "VariableDeclaration", "scope": 8420, "src": "5338:17:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory_ptr", "typeString": "struct Pairing.G2Point" }, "typeName": { "contractScope": null, "id": 8364, "name": "G2Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8037, "src": "5338:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_storage_ptr", "typeString": "struct Pairing.G2Point" } }, "value": null, "visibility": "internal" } ], "src": "5247:114:8" }, "returnParameters": { "id": 8369, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 8368, "name": "", "nodeType": "VariableDeclaration", "scope": 8420, "src": "5385:4:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 8367, "name": "bool", "nodeType": "ElementaryTypeName", "src": "5385:4:8", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "5384:6:8" }, "scope": 8595, "src": "5226:380:8", "stateMutability": "view", "superFunction": null, "visibility": "internal" }, { "body": { "id": 8498, "nodeType": "Block", "src": "5895:255:8", "statements": [ { "assignments": [ 8440 ], "declarations": [ { "constant": false, "id": 8440, "name": "p1", "nodeType": "VariableDeclaration", "scope": 8498, "src": "5905:19:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G1Point[]" }, "typeName": { "baseType": { "contractScope": null, "id": 8438, "name": "G1Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8028, "src": "5905:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_storage_ptr", "typeString": "struct Pairing.G1Point" } }, "id": 8439, "length": null, "nodeType": "ArrayTypeName", "src": "5905:9:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_storage_$dyn_storage_ptr", "typeString": "struct Pairing.G1Point[]" } }, "value": null, "visibility": "internal" } ], "id": 8446, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "33", "id": 8444, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "5941:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_3_by_1", "typeString": "int_const 3" }, "value": "3" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_3_by_1", "typeString": "int_const 3" } ], "id": 8443, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "5927:13:8", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory_$", "typeString": "function (uint256) pure returns (struct Pairing.G1Point memory[] memory)" }, "typeName": { "baseType": { "contractScope": null, "id": 8441, "name": "G1Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8028, "src": "5931:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_storage_ptr", "typeString": "struct Pairing.G1Point" } }, "id": 8442, "length": null, "nodeType": "ArrayTypeName", "src": "5931:9:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_storage_$dyn_storage_ptr", "typeString": "struct Pairing.G1Point[]" } } }, "id": 8445, "isConstant": false, "isLValue": false, "isPure": true, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "5927:16:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory", "typeString": "struct Pairing.G1Point memory[] memory" } }, "nodeType": "VariableDeclarationStatement", "src": "5905:38:8" }, { "assignments": [ 8450 ], "declarations": [ { "constant": false, "id": 8450, "name": "p2", "nodeType": "VariableDeclaration", "scope": 8498, "src": "5953:19:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G2Point_$8037_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G2Point[]" }, "typeName": { "baseType": { "contractScope": null, "id": 8448, "name": "G2Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8037, "src": "5953:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_storage_ptr", "typeString": "struct Pairing.G2Point" } }, "id": 8449, "length": null, "nodeType": "ArrayTypeName", "src": "5953:9:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G2Point_$8037_storage_$dyn_storage_ptr", "typeString": "struct Pairing.G2Point[]" } }, "value": null, "visibility": "internal" } ], "id": 8456, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "33", "id": 8454, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "5989:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_3_by_1", "typeString": "int_const 3" }, "value": "3" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_3_by_1", "typeString": "int_const 3" } ], "id": 8453, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "5975:13:8", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_struct$_G2Point_$8037_memory_$dyn_memory_$", "typeString": "function (uint256) pure returns (struct Pairing.G2Point memory[] memory)" }, "typeName": { "baseType": { "contractScope": null, "id": 8451, "name": "G2Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8037, "src": "5979:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_storage_ptr", "typeString": "struct Pairing.G2Point" } }, "id": 8452, "length": null, "nodeType": "ArrayTypeName", "src": "5979:9:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G2Point_$8037_storage_$dyn_storage_ptr", "typeString": "struct Pairing.G2Point[]" } } }, "id": 8455, "isConstant": false, "isLValue": false, "isPure": true, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "5975:16:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G2Point_$8037_memory_$dyn_memory", "typeString": "struct Pairing.G2Point memory[] memory" } }, "nodeType": "VariableDeclarationStatement", "src": "5953:38:8" }, { "expression": { "argumentTypes": null, "id": 8461, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 8457, "name": "p1", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8440, "src": "6001:2:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G1Point memory[] memory" } }, "id": 8459, "indexExpression": { "argumentTypes": null, "hexValue": "30", "id": 8458, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "6004:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "6001:5:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 8460, "name": "a1", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8422, "src": "6009:2:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" } }, "src": "6001:10:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } }, "id": 8462, "nodeType": "ExpressionStatement", "src": "6001:10:8" }, { "expression": { "argumentTypes": null, "id": 8467, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 8463, "name": "p1", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8440, "src": "6021:2:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G1Point memory[] memory" } }, "id": 8465, "indexExpression": { "argumentTypes": null, "hexValue": "31", "id": 8464, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "6024:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_1_by_1", "typeString": "int_const 1" }, "value": "1" }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "6021:5:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 8466, "name": "b1", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8426, "src": "6029:2:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" } }, "src": "6021:10:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } }, "id": 8468, "nodeType": "ExpressionStatement", "src": "6021:10:8" }, { "expression": { "argumentTypes": null, "id": 8473, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 8469, "name": "p1", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8440, "src": "6041:2:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G1Point memory[] memory" } }, "id": 8471, "indexExpression": { "argumentTypes": null, "hexValue": "32", "id": 8470, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "6044:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_2_by_1", "typeString": "int_const 2" }, "value": "2" }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "6041:5:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 8472, "name": "c1", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8430, "src": "6049:2:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" } }, "src": "6041:10:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } }, "id": 8474, "nodeType": "ExpressionStatement", "src": "6041:10:8" }, { "expression": { "argumentTypes": null, "id": 8479, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 8475, "name": "p2", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8450, "src": "6061:2:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G2Point_$8037_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G2Point memory[] memory" } }, "id": 8477, "indexExpression": { "argumentTypes": null, "hexValue": "30", "id": 8476, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "6064:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "6061:5:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory", "typeString": "struct Pairing.G2Point memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 8478, "name": "a2", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8424, "src": "6069:2:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory_ptr", "typeString": "struct Pairing.G2Point memory" } }, "src": "6061:10:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory", "typeString": "struct Pairing.G2Point memory" } }, "id": 8480, "nodeType": "ExpressionStatement", "src": "6061:10:8" }, { "expression": { "argumentTypes": null, "id": 8485, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 8481, "name": "p2", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8450, "src": "6081:2:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G2Point_$8037_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G2Point memory[] memory" } }, "id": 8483, "indexExpression": { "argumentTypes": null, "hexValue": "31", "id": 8482, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "6084:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_1_by_1", "typeString": "int_const 1" }, "value": "1" }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "6081:5:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory", "typeString": "struct Pairing.G2Point memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 8484, "name": "b2", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8428, "src": "6089:2:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory_ptr", "typeString": "struct Pairing.G2Point memory" } }, "src": "6081:10:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory", "typeString": "struct Pairing.G2Point memory" } }, "id": 8486, "nodeType": "ExpressionStatement", "src": "6081:10:8" }, { "expression": { "argumentTypes": null, "id": 8491, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 8487, "name": "p2", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8450, "src": "6101:2:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G2Point_$8037_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G2Point memory[] memory" } }, "id": 8489, "indexExpression": { "argumentTypes": null, "hexValue": "32", "id": 8488, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "6104:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_2_by_1", "typeString": "int_const 2" }, "value": "2" }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "6101:5:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory", "typeString": "struct Pairing.G2Point memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 8490, "name": "c2", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8432, "src": "6109:2:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory_ptr", "typeString": "struct Pairing.G2Point memory" } }, "src": "6101:10:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory", "typeString": "struct Pairing.G2Point memory" } }, "id": 8492, "nodeType": "ExpressionStatement", "src": "6101:10:8" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 8494, "name": "p1", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8440, "src": "6136:2:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G1Point memory[] memory" } }, { "argumentTypes": null, "id": 8495, "name": "p2", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8450, "src": "6140:2:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G2Point_$8037_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G2Point memory[] memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G1Point memory[] memory" }, { "typeIdentifier": "t_array$_t_struct$_G2Point_$8037_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G2Point memory[] memory" } ], "id": 8493, "name": "pairing", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8357, "src": "6128:7:8", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory_ptr_$_t_array$_t_struct$_G2Point_$8037_memory_$dyn_memory_ptr_$returns$_t_bool_$", "typeString": "function (struct Pairing.G1Point memory[] memory,struct Pairing.G2Point memory[] memory) view returns (bool)" } }, "id": 8496, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "6128:15:8", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "functionReturnParameters": 8436, "id": 8497, "nodeType": "Return", "src": "6121:22:8" } ] }, "documentation": "Convenience method for a pairing check for three pairs.", "id": 8499, "implemented": true, "kind": "function", "modifiers": [], "name": "pairingProd3", "nodeType": "FunctionDefinition", "parameters": { "id": 8433, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 8422, "name": "a1", "nodeType": "VariableDeclaration", "scope": 8499, "src": "5707:17:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point" }, "typeName": { "contractScope": null, "id": 8421, "name": "G1Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8028, "src": "5707:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_storage_ptr", "typeString": "struct Pairing.G1Point" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 8424, "name": "a2", "nodeType": "VariableDeclaration", "scope": 8499, "src": "5734:17:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory_ptr", "typeString": "struct Pairing.G2Point" }, "typeName": { "contractScope": null, "id": 8423, "name": "G2Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8037, "src": "5734:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_storage_ptr", "typeString": "struct Pairing.G2Point" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 8426, "name": "b1", "nodeType": "VariableDeclaration", "scope": 8499, "src": "5761:17:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point" }, "typeName": { "contractScope": null, "id": 8425, "name": "G1Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8028, "src": "5761:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_storage_ptr", "typeString": "struct Pairing.G1Point" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 8428, "name": "b2", "nodeType": "VariableDeclaration", "scope": 8499, "src": "5788:17:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory_ptr", "typeString": "struct Pairing.G2Point" }, "typeName": { "contractScope": null, "id": 8427, "name": "G2Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8037, "src": "5788:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_storage_ptr", "typeString": "struct Pairing.G2Point" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 8430, "name": "c1", "nodeType": "VariableDeclaration", "scope": 8499, "src": "5815:17:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point" }, "typeName": { "contractScope": null, "id": 8429, "name": "G1Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8028, "src": "5815:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_storage_ptr", "typeString": "struct Pairing.G1Point" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 8432, "name": "c2", "nodeType": "VariableDeclaration", "scope": 8499, "src": "5842:17:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory_ptr", "typeString": "struct Pairing.G2Point" }, "typeName": { "contractScope": null, "id": 8431, "name": "G2Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8037, "src": "5842:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_storage_ptr", "typeString": "struct Pairing.G2Point" } }, "value": null, "visibility": "internal" } ], "src": "5697:168:8" }, "returnParameters": { "id": 8436, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 8435, "name": "", "nodeType": "VariableDeclaration", "scope": 8499, "src": "5889:4:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 8434, "name": "bool", "nodeType": "ElementaryTypeName", "src": "5889:4:8", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "5888:6:8" }, "scope": 8595, "src": "5676:474:8", "stateMutability": "view", "superFunction": null, "visibility": "internal" }, { "body": { "id": 8593, "nodeType": "Block", "src": "6492:295:8", "statements": [ { "assignments": [ 8523 ], "declarations": [ { "constant": false, "id": 8523, "name": "p1", "nodeType": "VariableDeclaration", "scope": 8593, "src": "6502:19:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G1Point[]" }, "typeName": { "baseType": { "contractScope": null, "id": 8521, "name": "G1Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8028, "src": "6502:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_storage_ptr", "typeString": "struct Pairing.G1Point" } }, "id": 8522, "length": null, "nodeType": "ArrayTypeName", "src": "6502:9:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_storage_$dyn_storage_ptr", "typeString": "struct Pairing.G1Point[]" } }, "value": null, "visibility": "internal" } ], "id": 8529, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "34", "id": 8527, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "6538:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_4_by_1", "typeString": "int_const 4" }, "value": "4" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_4_by_1", "typeString": "int_const 4" } ], "id": 8526, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "6524:13:8", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory_$", "typeString": "function (uint256) pure returns (struct Pairing.G1Point memory[] memory)" }, "typeName": { "baseType": { "contractScope": null, "id": 8524, "name": "G1Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8028, "src": "6528:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_storage_ptr", "typeString": "struct Pairing.G1Point" } }, "id": 8525, "length": null, "nodeType": "ArrayTypeName", "src": "6528:9:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_storage_$dyn_storage_ptr", "typeString": "struct Pairing.G1Point[]" } } }, "id": 8528, "isConstant": false, "isLValue": false, "isPure": true, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "6524:16:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory", "typeString": "struct Pairing.G1Point memory[] memory" } }, "nodeType": "VariableDeclarationStatement", "src": "6502:38:8" }, { "assignments": [ 8533 ], "declarations": [ { "constant": false, "id": 8533, "name": "p2", "nodeType": "VariableDeclaration", "scope": 8593, "src": "6550:19:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G2Point_$8037_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G2Point[]" }, "typeName": { "baseType": { "contractScope": null, "id": 8531, "name": "G2Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8037, "src": "6550:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_storage_ptr", "typeString": "struct Pairing.G2Point" } }, "id": 8532, "length": null, "nodeType": "ArrayTypeName", "src": "6550:9:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G2Point_$8037_storage_$dyn_storage_ptr", "typeString": "struct Pairing.G2Point[]" } }, "value": null, "visibility": "internal" } ], "id": 8539, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "34", "id": 8537, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "6586:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_4_by_1", "typeString": "int_const 4" }, "value": "4" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_4_by_1", "typeString": "int_const 4" } ], "id": 8536, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "6572:13:8", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_struct$_G2Point_$8037_memory_$dyn_memory_$", "typeString": "function (uint256) pure returns (struct Pairing.G2Point memory[] memory)" }, "typeName": { "baseType": { "contractScope": null, "id": 8534, "name": "G2Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8037, "src": "6576:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_storage_ptr", "typeString": "struct Pairing.G2Point" } }, "id": 8535, "length": null, "nodeType": "ArrayTypeName", "src": "6576:9:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G2Point_$8037_storage_$dyn_storage_ptr", "typeString": "struct Pairing.G2Point[]" } } }, "id": 8538, "isConstant": false, "isLValue": false, "isPure": true, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "6572:16:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G2Point_$8037_memory_$dyn_memory", "typeString": "struct Pairing.G2Point memory[] memory" } }, "nodeType": "VariableDeclarationStatement", "src": "6550:38:8" }, { "expression": { "argumentTypes": null, "id": 8544, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 8540, "name": "p1", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8523, "src": "6598:2:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G1Point memory[] memory" } }, "id": 8542, "indexExpression": { "argumentTypes": null, "hexValue": "30", "id": 8541, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "6601:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "6598:5:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 8543, "name": "a1", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8501, "src": "6606:2:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" } }, "src": "6598:10:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } }, "id": 8545, "nodeType": "ExpressionStatement", "src": "6598:10:8" }, { "expression": { "argumentTypes": null, "id": 8550, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 8546, "name": "p1", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8523, "src": "6618:2:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G1Point memory[] memory" } }, "id": 8548, "indexExpression": { "argumentTypes": null, "hexValue": "31", "id": 8547, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "6621:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_1_by_1", "typeString": "int_const 1" }, "value": "1" }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "6618:5:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 8549, "name": "b1", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8505, "src": "6626:2:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" } }, "src": "6618:10:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } }, "id": 8551, "nodeType": "ExpressionStatement", "src": "6618:10:8" }, { "expression": { "argumentTypes": null, "id": 8556, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 8552, "name": "p1", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8523, "src": "6638:2:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G1Point memory[] memory" } }, "id": 8554, "indexExpression": { "argumentTypes": null, "hexValue": "32", "id": 8553, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "6641:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_2_by_1", "typeString": "int_const 2" }, "value": "2" }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "6638:5:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 8555, "name": "c1", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8509, "src": "6646:2:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" } }, "src": "6638:10:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } }, "id": 8557, "nodeType": "ExpressionStatement", "src": "6638:10:8" }, { "expression": { "argumentTypes": null, "id": 8562, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 8558, "name": "p1", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8523, "src": "6658:2:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G1Point memory[] memory" } }, "id": 8560, "indexExpression": { "argumentTypes": null, "hexValue": "33", "id": 8559, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "6661:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_3_by_1", "typeString": "int_const 3" }, "value": "3" }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "6658:5:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 8561, "name": "d1", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8513, "src": "6666:2:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" } }, "src": "6658:10:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } }, "id": 8563, "nodeType": "ExpressionStatement", "src": "6658:10:8" }, { "expression": { "argumentTypes": null, "id": 8568, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 8564, "name": "p2", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8533, "src": "6678:2:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G2Point_$8037_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G2Point memory[] memory" } }, "id": 8566, "indexExpression": { "argumentTypes": null, "hexValue": "30", "id": 8565, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "6681:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "6678:5:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory", "typeString": "struct Pairing.G2Point memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 8567, "name": "a2", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8503, "src": "6686:2:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory_ptr", "typeString": "struct Pairing.G2Point memory" } }, "src": "6678:10:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory", "typeString": "struct Pairing.G2Point memory" } }, "id": 8569, "nodeType": "ExpressionStatement", "src": "6678:10:8" }, { "expression": { "argumentTypes": null, "id": 8574, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 8570, "name": "p2", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8533, "src": "6698:2:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G2Point_$8037_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G2Point memory[] memory" } }, "id": 8572, "indexExpression": { "argumentTypes": null, "hexValue": "31", "id": 8571, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "6701:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_1_by_1", "typeString": "int_const 1" }, "value": "1" }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "6698:5:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory", "typeString": "struct Pairing.G2Point memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 8573, "name": "b2", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8507, "src": "6706:2:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory_ptr", "typeString": "struct Pairing.G2Point memory" } }, "src": "6698:10:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory", "typeString": "struct Pairing.G2Point memory" } }, "id": 8575, "nodeType": "ExpressionStatement", "src": "6698:10:8" }, { "expression": { "argumentTypes": null, "id": 8580, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 8576, "name": "p2", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8533, "src": "6718:2:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G2Point_$8037_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G2Point memory[] memory" } }, "id": 8578, "indexExpression": { "argumentTypes": null, "hexValue": "32", "id": 8577, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "6721:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_2_by_1", "typeString": "int_const 2" }, "value": "2" }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "6718:5:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory", "typeString": "struct Pairing.G2Point memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 8579, "name": "c2", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8511, "src": "6726:2:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory_ptr", "typeString": "struct Pairing.G2Point memory" } }, "src": "6718:10:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory", "typeString": "struct Pairing.G2Point memory" } }, "id": 8581, "nodeType": "ExpressionStatement", "src": "6718:10:8" }, { "expression": { "argumentTypes": null, "id": 8586, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 8582, "name": "p2", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8533, "src": "6738:2:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G2Point_$8037_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G2Point memory[] memory" } }, "id": 8584, "indexExpression": { "argumentTypes": null, "hexValue": "33", "id": 8583, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "6741:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_3_by_1", "typeString": "int_const 3" }, "value": "3" }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "6738:5:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory", "typeString": "struct Pairing.G2Point memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 8585, "name": "d2", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8515, "src": "6746:2:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory_ptr", "typeString": "struct Pairing.G2Point memory" } }, "src": "6738:10:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory", "typeString": "struct Pairing.G2Point memory" } }, "id": 8587, "nodeType": "ExpressionStatement", "src": "6738:10:8" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 8589, "name": "p1", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8523, "src": "6773:2:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G1Point memory[] memory" } }, { "argumentTypes": null, "id": 8590, "name": "p2", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8533, "src": "6777:2:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G2Point_$8037_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G2Point memory[] memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G1Point memory[] memory" }, { "typeIdentifier": "t_array$_t_struct$_G2Point_$8037_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G2Point memory[] memory" } ], "id": 8588, "name": "pairing", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8357, "src": "6765:7:8", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory_ptr_$_t_array$_t_struct$_G2Point_$8037_memory_$dyn_memory_ptr_$returns$_t_bool_$", "typeString": "function (struct Pairing.G1Point memory[] memory,struct Pairing.G2Point memory[] memory) view returns (bool)" } }, "id": 8591, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "6765:15:8", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "functionReturnParameters": 8519, "id": 8592, "nodeType": "Return", "src": "6758:22:8" } ] }, "documentation": "Convenience method for a pairing check for four pairs.", "id": 8594, "implemented": true, "kind": "function", "modifiers": [], "name": "pairingProd4", "nodeType": "FunctionDefinition", "parameters": { "id": 8516, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 8501, "name": "a1", "nodeType": "VariableDeclaration", "scope": 8594, "src": "6250:17:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point" }, "typeName": { "contractScope": null, "id": 8500, "name": "G1Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8028, "src": "6250:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_storage_ptr", "typeString": "struct Pairing.G1Point" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 8503, "name": "a2", "nodeType": "VariableDeclaration", "scope": 8594, "src": "6277:17:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory_ptr", "typeString": "struct Pairing.G2Point" }, "typeName": { "contractScope": null, "id": 8502, "name": "G2Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8037, "src": "6277:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_storage_ptr", "typeString": "struct Pairing.G2Point" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 8505, "name": "b1", "nodeType": "VariableDeclaration", "scope": 8594, "src": "6304:17:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point" }, "typeName": { "contractScope": null, "id": 8504, "name": "G1Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8028, "src": "6304:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_storage_ptr", "typeString": "struct Pairing.G1Point" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 8507, "name": "b2", "nodeType": "VariableDeclaration", "scope": 8594, "src": "6331:17:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory_ptr", "typeString": "struct Pairing.G2Point" }, "typeName": { "contractScope": null, "id": 8506, "name": "G2Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8037, "src": "6331:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_storage_ptr", "typeString": "struct Pairing.G2Point" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 8509, "name": "c1", "nodeType": "VariableDeclaration", "scope": 8594, "src": "6358:17:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point" }, "typeName": { "contractScope": null, "id": 8508, "name": "G1Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8028, "src": "6358:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_storage_ptr", "typeString": "struct Pairing.G1Point" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 8511, "name": "c2", "nodeType": "VariableDeclaration", "scope": 8594, "src": "6385:17:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory_ptr", "typeString": "struct Pairing.G2Point" }, "typeName": { "contractScope": null, "id": 8510, "name": "G2Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8037, "src": "6385:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_storage_ptr", "typeString": "struct Pairing.G2Point" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 8513, "name": "d1", "nodeType": "VariableDeclaration", "scope": 8594, "src": "6412:17:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point" }, "typeName": { "contractScope": null, "id": 8512, "name": "G1Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8028, "src": "6412:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_storage_ptr", "typeString": "struct Pairing.G1Point" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 8515, "name": "d2", "nodeType": "VariableDeclaration", "scope": 8594, "src": "6439:17:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory_ptr", "typeString": "struct Pairing.G2Point" }, "typeName": { "contractScope": null, "id": 8514, "name": "G2Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8037, "src": "6439:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_storage_ptr", "typeString": "struct Pairing.G2Point" } }, "value": null, "visibility": "internal" } ], "src": "6240:222:8" }, "returnParameters": { "id": 8519, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 8518, "name": "", "nodeType": "VariableDeclaration", "scope": 8594, "src": "6486:4:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 8517, "name": "bool", "nodeType": "ElementaryTypeName", "src": "6486:4:8", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "6485:6:8" }, "scope": 8595, "src": "6219:568:8", "stateMutability": "view", "superFunction": null, "visibility": "internal" } ], "scope": 8943, "src": "1163:5626:8" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 8942, "linearizedBaseContracts": [ 8942 ], "name": "SquareVerifier", "nodeType": "ContractDefinition", "nodes": [ { "id": 8597, "libraryName": { "contractScope": null, "id": 8596, "name": "Pairing", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8595, "src": "6827:7:8", "typeDescriptions": { "typeIdentifier": "t_contract$_Pairing_$8595", "typeString": "library Pairing" } }, "nodeType": "UsingForDirective", "src": "6821:20:8", "typeName": null }, { "canonicalName": "SquareVerifier.VerifyingKey", "id": 8609, "members": [ { "constant": false, "id": 8599, "name": "alpha", "nodeType": "VariableDeclaration", "scope": 8609, "src": "6876:21:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_storage_ptr", "typeString": "struct Pairing.G1Point" }, "typeName": { "contractScope": null, "id": 8598, "name": "Pairing.G1Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8028, "src": "6876:15:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_storage_ptr", "typeString": "struct Pairing.G1Point" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 8601, "name": "beta", "nodeType": "VariableDeclaration", "scope": 8609, "src": "6907:20:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_storage_ptr", "typeString": "struct Pairing.G2Point" }, "typeName": { "contractScope": null, "id": 8600, "name": "Pairing.G2Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8037, "src": "6907:15:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_storage_ptr", "typeString": "struct Pairing.G2Point" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 8603, "name": "gamma", "nodeType": "VariableDeclaration", "scope": 8609, "src": "6937:21:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_storage_ptr", "typeString": "struct Pairing.G2Point" }, "typeName": { "contractScope": null, "id": 8602, "name": "Pairing.G2Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8037, "src": "6937:15:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_storage_ptr", "typeString": "struct Pairing.G2Point" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 8605, "name": "delta", "nodeType": "VariableDeclaration", "scope": 8609, "src": "6968:21:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_storage_ptr", "typeString": "struct Pairing.G2Point" }, "typeName": { "contractScope": null, "id": 8604, "name": "Pairing.G2Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8037, "src": "6968:15:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_storage_ptr", "typeString": "struct Pairing.G2Point" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 8608, "name": "gamma_abc", "nodeType": "VariableDeclaration", "scope": 8609, "src": "6999:27:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_storage_$dyn_storage_ptr", "typeString": "struct Pairing.G1Point[]" }, "typeName": { "baseType": { "contractScope": null, "id": 8606, "name": "Pairing.G1Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8028, "src": "6999:15:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_storage_ptr", "typeString": "struct Pairing.G1Point" } }, "id": 8607, "length": null, "nodeType": "ArrayTypeName", "src": "6999:17:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_storage_$dyn_storage_ptr", "typeString": "struct Pairing.G1Point[]" } }, "value": null, "visibility": "internal" } ], "name": "VerifyingKey", "nodeType": "StructDefinition", "scope": 8942, "src": "6846:187:8", "visibility": "public" }, { "canonicalName": "SquareVerifier.Proof", "id": 8616, "members": [ { "constant": false, "id": 8611, "name": "a", "nodeType": "VariableDeclaration", "scope": 8616, "src": "7061:17:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_storage_ptr", "typeString": "struct Pairing.G1Point" }, "typeName": { "contractScope": null, "id": 8610, "name": "Pairing.G1Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8028, "src": "7061:15:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_storage_ptr", "typeString": "struct Pairing.G1Point" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 8613, "name": "b", "nodeType": "VariableDeclaration", "scope": 8616, "src": "7088:17:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_storage_ptr", "typeString": "struct Pairing.G2Point" }, "typeName": { "contractScope": null, "id": 8612, "name": "Pairing.G2Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8037, "src": "7088:15:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_storage_ptr", "typeString": "struct Pairing.G2Point" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 8615, "name": "c", "nodeType": "VariableDeclaration", "scope": 8616, "src": "7115:17:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_storage_ptr", "typeString": "struct Pairing.G1Point" }, "typeName": { "contractScope": null, "id": 8614, "name": "Pairing.G1Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8028, "src": "7115:15:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_storage_ptr", "typeString": "struct Pairing.G1Point" } }, "value": null, "visibility": "internal" } ], "name": "Proof", "nodeType": "StructDefinition", "scope": 8942, "src": "7038:101:8", "visibility": "public" }, { "body": { "id": 8759, "nodeType": "Block", "src": "7216:3090:8", "statements": [ { "expression": { "argumentTypes": null, "id": 8633, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 8621, "name": "vk", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8619, "src": "7226:2:8", "typeDescriptions": { "typeIdentifier": "t_struct$_VerifyingKey_$8609_memory_ptr", "typeString": "struct SquareVerifier.VerifyingKey memory" } }, "id": 8623, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "alpha", "nodeType": "MemberAccess", "referencedDeclaration": 8599, "src": "7226:8:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "307830626465303033643835303865346265643562323765316234386539663466666261363263616565653834303030393365363166363330336166333335396536", "id": 8627, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "7291:66:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_5367683041363671670259095296341188023653179576849008337398209941243878922726_by_1", "typeString": "int_const 5367...(68 digits omitted)...2726" }, "value": "0x0bde003d8508e4bed5b27e1b48e9f4ffba62caeee8400093e61f6303af3359e6" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_5367683041363671670259095296341188023653179576849008337398209941243878922726_by_1", "typeString": "int_const 5367...(68 digits omitted)...2726" } ], "id": 8626, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "7266:7:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_uint256_$", "typeString": "type(uint256)" }, "typeName": "uint256" }, "id": 8628, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "7266:105:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "307830333563363865623865323834616238383736323833353032633537313138633564616461653039316563386334363735326662323862313238323139393463", "id": 8630, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "7410:66:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_1520212607887864056705833893502993764124167484168040781465011384848142670156_by_1", "typeString": "int_const 1520...(68 digits omitted)...0156" }, "value": "0x035c68eb8e284ab8876283502c57118c5dadae091ec8c46752fb28b12821994c" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_1520212607887864056705833893502993764124167484168040781465011384848142670156_by_1", "typeString": "int_const 1520...(68 digits omitted)...0156" } ], "id": 8629, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "7385:7:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_uint256_$", "typeString": "type(uint256)" }, "typeName": "uint256" }, "id": 8631, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "7385:105:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "argumentTypes": null, "id": 8624, "name": "Pairing", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8595, "src": "7237:7:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_Pairing_$8595_$", "typeString": "type(library Pairing)" } }, "id": 8625, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "G1Point", "nodeType": "MemberAccess", "referencedDeclaration": 8028, "src": "7237:15:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_struct$_G1Point_$8028_storage_ptr_$", "typeString": "type(struct Pairing.G1Point storage pointer)" } }, "id": 8632, "isConstant": false, "isLValue": false, "isPure": true, "kind": "structConstructorCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "7237:263:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } }, "src": "7226:274:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } }, "id": 8634, "nodeType": "ExpressionStatement", "src": "7226:274:8" }, { "expression": { "argumentTypes": null, "id": 8655, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 8635, "name": "vk", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8619, "src": "7510:2:8", "typeDescriptions": { "typeIdentifier": "t_struct$_VerifyingKey_$8609_memory_ptr", "typeString": "struct SquareVerifier.VerifyingKey memory" } }, "id": 8637, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "beta", "nodeType": "MemberAccess", "referencedDeclaration": 8601, "src": "7510:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory", "typeString": "struct Pairing.G2Point memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "components": [ { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "307830643835643636663162313133616232653961616537336264663834353930343464373433363564366362326665663766336634363437636365326661653237", "id": 8641, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "7596:66:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_6116537660320800993939168638987757619557266445552388698090253827144542039591_by_1", "typeString": "int_const 6116...(68 digits omitted)...9591" }, "value": "0x0d85d66f1b113ab2e9aae73bdf8459044d74365d6cb2fef7f3f4647cce2fae27" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_6116537660320800993939168638987757619557266445552388698090253827144542039591_by_1", "typeString": "int_const 6116...(68 digits omitted)...9591" } ], "id": 8640, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "7567:7:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_uint256_$", "typeString": "type(uint256)" }, "typeName": "uint256" }, "id": 8642, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "7567:113:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "307832626336663639353730636438333039623038613531633763383336616537646665323138616666353134326239383863353839316364613132323030393335", "id": 8644, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "7727:66:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_19800990066419458026595056229484103579091785218925870089985597783412433750325_by_1", "typeString": "int_const 1980...(69 digits omitted)...0325" }, "value": "0x2bc6f69570cd8309b08a51c7c836ae7dfe218aff5142b988c5891cda12200935" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_19800990066419458026595056229484103579091785218925870089985597783412433750325_by_1", "typeString": "int_const 1980...(69 digits omitted)...0325" } ], "id": 8643, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "7698:7:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_uint256_$", "typeString": "type(uint256)" }, "typeName": "uint256" }, "id": 8645, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "7698:113:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "id": 8646, "isConstant": false, "isInlineArray": true, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "TupleExpression", "src": "7549:276:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$2_memory_ptr", "typeString": "uint256[2] memory" } }, { "argumentTypes": null, "components": [ { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "307831656632613034313832306238376561343730383033623235313830323531613230333065323536303130383033373365393166363134396230623062656265", "id": 8648, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "7886:66:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_13998068492681721975620990211935029711745368467882478796126595165989423333054_by_1", "typeString": "int_const 1399...(69 digits omitted)...3054" }, "value": "0x1ef2a041820b87ea470803b25180251a2030e25601080373e91f6149b0b0bebe" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_13998068492681721975620990211935029711745368467882478796126595165989423333054_by_1", "typeString": "int_const 1399...(69 digits omitted)...3054" } ], "id": 8647, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "7857:7:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_uint256_$", "typeString": "type(uint256)" }, "typeName": "uint256" }, "id": 8649, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "7857:113:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "307831643861336530653830346361663662313961333236613664623632323864633262373230653765623734303565643335376537633137623365633466373763", "id": 8651, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "8017:66:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_13361325803078416461973352578645720291606868658940749178385985524652960970620_by_1", "typeString": "int_const 1336...(69 digits omitted)...0620" }, "value": "0x1d8a3e0e804caf6b19a326a6db6228dc2b720e7eb7405ed357e7c17b3ec4f77c" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_13361325803078416461973352578645720291606868658940749178385985524652960970620_by_1", "typeString": "int_const 1336...(69 digits omitted)...0620" } ], "id": 8650, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "7988:7:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_uint256_$", "typeString": "type(uint256)" }, "typeName": "uint256" }, "id": 8652, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "7988:113:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "id": 8653, "isConstant": false, "isInlineArray": true, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "TupleExpression", "src": "7839:276:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$2_memory_ptr", "typeString": "uint256[2] memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_array$_t_uint256_$2_memory_ptr", "typeString": "uint256[2] memory" }, { "typeIdentifier": "t_array$_t_uint256_$2_memory_ptr", "typeString": "uint256[2] memory" } ], "expression": { "argumentTypes": null, "id": 8638, "name": "Pairing", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8595, "src": "7520:7:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_Pairing_$8595_$", "typeString": "type(library Pairing)" } }, "id": 8639, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "G2Point", "nodeType": "MemberAccess", "referencedDeclaration": 8037, "src": "7520:15:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_struct$_G2Point_$8037_storage_ptr_$", "typeString": "type(struct Pairing.G2Point storage pointer)" } }, "id": 8654, "isConstant": false, "isLValue": false, "isPure": true, "kind": "structConstructorCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "7520:605:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory", "typeString": "struct Pairing.G2Point memory" } }, "src": "7510:615:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory", "typeString": "struct Pairing.G2Point memory" } }, "id": 8656, "nodeType": "ExpressionStatement", "src": "7510:615:8" }, { "expression": { "argumentTypes": null, "id": 8677, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 8657, "name": "vk", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8619, "src": "8135:2:8", "typeDescriptions": { "typeIdentifier": "t_struct$_VerifyingKey_$8609_memory_ptr", "typeString": "struct SquareVerifier.VerifyingKey memory" } }, "id": 8659, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "gamma", "nodeType": "MemberAccess", "referencedDeclaration": 8603, "src": "8135:8:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory", "typeString": "struct Pairing.G2Point memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "components": [ { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "307832616337653034326663363337333966613364363865346362373032633463393338643939396137633361656333323463316462613234313261616136353233", "id": 8663, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "8222:66:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_19350290003505857449718978110818224854150271501332079148963058789061275313443_by_1", "typeString": "int_const 1935...(69 digits omitted)...3443" }, "value": "0x2ac7e042fc63739fa3d68e4cb702c4c938d999a7c3aec324c1dba2412aaa6523" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_19350290003505857449718978110818224854150271501332079148963058789061275313443_by_1", "typeString": "int_const 1935...(69 digits omitted)...3443" } ], "id": 8662, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "8193:7:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_uint256_$", "typeString": "type(uint256)" }, "typeName": "uint256" }, "id": 8664, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "8193:113:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "307830636166396636323666303537353863643635363936333934666339323035626634363264346630363062613638303562333032656534336331323831356132", "id": 8666, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "8353:66:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_5738052450771237150269347576361897104533383470667790634401814318628458730914_by_1", "typeString": "int_const 5738...(68 digits omitted)...0914" }, "value": "0x0caf9f626f05758cd65696394fc9205bf462d4f060ba6805b302ee43c12815a2" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_5738052450771237150269347576361897104533383470667790634401814318628458730914_by_1", "typeString": "int_const 5738...(68 digits omitted)...0914" } ], "id": 8665, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "8324:7:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_uint256_$", "typeString": "type(uint256)" }, "typeName": "uint256" }, "id": 8667, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "8324:113:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "id": 8668, "isConstant": false, "isInlineArray": true, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "TupleExpression", "src": "8175:276:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$2_memory_ptr", "typeString": "uint256[2] memory" } }, { "argumentTypes": null, "components": [ { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "307830306531313537323836306665326636656138373438376434643164346136303137633164313964623537663036613733373232333933626134346435383631", "id": 8670, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "8512:66:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_397688613800721574760982494338894897390618094972159742411484710266202839137_by_1", "typeString": "int_const 3976...(67 digits omitted)...9137" }, "value": "0x00e11572860fe2f6ea87487d4d1d4a6017c1d19db57f06a73722393ba44d5861" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_397688613800721574760982494338894897390618094972159742411484710266202839137_by_1", "typeString": "int_const 3976...(67 digits omitted)...9137" } ], "id": 8669, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "8483:7:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_uint256_$", "typeString": "type(uint256)" }, "typeName": "uint256" }, "id": 8671, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "8483:113:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "307830363461363531653263383835326139393766636339643532373934663764626338393766333539326233666661303730343961663532393432343337626565", "id": 8673, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "8643:66:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_2845321664162445453932815010296644323680701676993815136995337475375625370606_by_1", "typeString": "int_const 2845...(68 digits omitted)...0606" }, "value": "0x064a651e2c8852a997fcc9d52794f7dbc897f3592b3ffa07049af52942437bee" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_2845321664162445453932815010296644323680701676993815136995337475375625370606_by_1", "typeString": "int_const 2845...(68 digits omitted)...0606" } ], "id": 8672, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "8614:7:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_uint256_$", "typeString": "type(uint256)" }, "typeName": "uint256" }, "id": 8674, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "8614:113:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "id": 8675, "isConstant": false, "isInlineArray": true, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "TupleExpression", "src": "8465:276:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$2_memory_ptr", "typeString": "uint256[2] memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_array$_t_uint256_$2_memory_ptr", "typeString": "uint256[2] memory" }, { "typeIdentifier": "t_array$_t_uint256_$2_memory_ptr", "typeString": "uint256[2] memory" } ], "expression": { "argumentTypes": null, "id": 8660, "name": "Pairing", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8595, "src": "8146:7:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_Pairing_$8595_$", "typeString": "type(library Pairing)" } }, "id": 8661, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "G2Point", "nodeType": "MemberAccess", "referencedDeclaration": 8037, "src": "8146:15:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_struct$_G2Point_$8037_storage_ptr_$", "typeString": "type(struct Pairing.G2Point storage pointer)" } }, "id": 8676, "isConstant": false, "isLValue": false, "isPure": true, "kind": "structConstructorCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "8146:605:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory", "typeString": "struct Pairing.G2Point memory" } }, "src": "8135:616:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory", "typeString": "struct Pairing.G2Point memory" } }, "id": 8678, "nodeType": "ExpressionStatement", "src": "8135:616:8" }, { "expression": { "argumentTypes": null, "id": 8699, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 8679, "name": "vk", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8619, "src": "8761:2:8", "typeDescriptions": { "typeIdentifier": "t_struct$_VerifyingKey_$8609_memory_ptr", "typeString": "struct SquareVerifier.VerifyingKey memory" } }, "id": 8681, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "delta", "nodeType": "MemberAccess", "referencedDeclaration": 8605, "src": "8761:8:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory", "typeString": "struct Pairing.G2Point memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "components": [ { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "307831303163316139393531323139346361643836363434646463316536663662653639666232323862343462353264333463386266613032633463316430376333", "id": 8685, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "8848:66:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_7286660873967023741770113746043839046317885232634639656980408101047627483075_by_1", "typeString": "int_const 7286...(68 digits omitted)...3075" }, "value": "0x101c1a99512194cad86644ddc1e6f6be69fb228b44b52d34c8bfa02c4c1d07c3" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_7286660873967023741770113746043839046317885232634639656980408101047627483075_by_1", "typeString": "int_const 7286...(68 digits omitted)...3075" } ], "id": 8684, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "8819:7:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_uint256_$", "typeString": "type(uint256)" }, "typeName": "uint256" }, "id": 8686, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "8819:113:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "307832396635323731613862633735633739373862363762343065386237653563343561396536653561636636633866363739636265353266386238393863383838", "id": 8688, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "8979:66:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_18977974206571185256403973522670350763703946475460828814353096171012184656008_by_1", "typeString": "int_const 1897...(69 digits omitted)...6008" }, "value": "0x29f5271a8bc75c7978b67b40e8b7e5c45a9e6e5acf6c8f679cbe52f8b898c888" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_18977974206571185256403973522670350763703946475460828814353096171012184656008_by_1", "typeString": "int_const 1897...(69 digits omitted)...6008" } ], "id": 8687, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "8950:7:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_uint256_$", "typeString": "type(uint256)" }, "typeName": "uint256" }, "id": 8689, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "8950:113:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "id": 8690, "isConstant": false, "isInlineArray": true, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "TupleExpression", "src": "8801:276:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$2_memory_ptr", "typeString": "uint256[2] memory" } }, { "argumentTypes": null, "components": [ { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "307832623762313763386431383361393162383063653334646266663332376166633738303838393238633366633963313066313535613864386333323931353738", "id": 8692, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "9138:66:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_19666938832267936563837004080917227839809300097921770501137060737092472608120_by_1", "typeString": "int_const 1966...(69 digits omitted)...8120" }, "value": "0x2b7b17c8d183a91b80ce34dbff327afc78088928c3fc9c10f155a8d8c3291578" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_19666938832267936563837004080917227839809300097921770501137060737092472608120_by_1", "typeString": "int_const 1966...(69 digits omitted)...8120" } ], "id": 8691, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "9109:7:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_uint256_$", "typeString": "type(uint256)" }, "typeName": "uint256" }, "id": 8693, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "9109:113:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "307830356165373437666232636230396436656261336634346462366331643962646334383536626461333636333136623430313931663433643662643338383862", "id": 8695, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "9269:66:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_2569799677506338333551997999797653654909840647357947313833514140547910174859_by_1", "typeString": "int_const 2569...(68 digits omitted)...4859" }, "value": "0x05ae747fb2cb09d6eba3f44db6c1d9bdc4856bda366316b40191f43d6bd3888b" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_2569799677506338333551997999797653654909840647357947313833514140547910174859_by_1", "typeString": "int_const 2569...(68 digits omitted)...4859" } ], "id": 8694, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "9240:7:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_uint256_$", "typeString": "type(uint256)" }, "typeName": "uint256" }, "id": 8696, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "9240:113:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "id": 8697, "isConstant": false, "isInlineArray": true, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "TupleExpression", "src": "9091:276:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$2_memory_ptr", "typeString": "uint256[2] memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_array$_t_uint256_$2_memory_ptr", "typeString": "uint256[2] memory" }, { "typeIdentifier": "t_array$_t_uint256_$2_memory_ptr", "typeString": "uint256[2] memory" } ], "expression": { "argumentTypes": null, "id": 8682, "name": "Pairing", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8595, "src": "8772:7:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_Pairing_$8595_$", "typeString": "type(library Pairing)" } }, "id": 8683, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "G2Point", "nodeType": "MemberAccess", "referencedDeclaration": 8037, "src": "8772:15:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_struct$_G2Point_$8037_storage_ptr_$", "typeString": "type(struct Pairing.G2Point storage pointer)" } }, "id": 8698, "isConstant": false, "isLValue": false, "isPure": true, "kind": "structConstructorCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "8772:605:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory", "typeString": "struct Pairing.G2Point memory" } }, "src": "8761:616:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory", "typeString": "struct Pairing.G2Point memory" } }, "id": 8700, "nodeType": "ExpressionStatement", "src": "8761:616:8" }, { "expression": { "argumentTypes": null, "id": 8709, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 8701, "name": "vk", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8619, "src": "9387:2:8", "typeDescriptions": { "typeIdentifier": "t_struct$_VerifyingKey_$8609_memory_ptr", "typeString": "struct SquareVerifier.VerifyingKey memory" } }, "id": 8703, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "gamma_abc", "nodeType": "MemberAccess", "referencedDeclaration": 8608, "src": "9387:12:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory", "typeString": "struct Pairing.G1Point memory[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "33", "id": 8707, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "9424:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_3_by_1", "typeString": "int_const 3" }, "value": "3" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_3_by_1", "typeString": "int_const 3" } ], "id": 8706, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "9402:21:8", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory_$", "typeString": "function (uint256) pure returns (struct Pairing.G1Point memory[] memory)" }, "typeName": { "baseType": { "contractScope": null, "id": 8704, "name": "Pairing.G1Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8028, "src": "9406:15:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_storage_ptr", "typeString": "struct Pairing.G1Point" } }, "id": 8705, "length": null, "nodeType": "ArrayTypeName", "src": "9406:17:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_storage_$dyn_storage_ptr", "typeString": "struct Pairing.G1Point[]" } } }, "id": 8708, "isConstant": false, "isLValue": false, "isPure": true, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "9402:24:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory", "typeString": "struct Pairing.G1Point memory[] memory" } }, "src": "9387:39:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory", "typeString": "struct Pairing.G1Point memory[] memory" } }, "id": 8710, "nodeType": "ExpressionStatement", "src": "9387:39:8" }, { "expression": { "argumentTypes": null, "id": 8725, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 8711, "name": "vk", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8619, "src": "9436:2:8", "typeDescriptions": { "typeIdentifier": "t_struct$_VerifyingKey_$8609_memory_ptr", "typeString": "struct SquareVerifier.VerifyingKey memory" } }, "id": 8714, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "gamma_abc", "nodeType": "MemberAccess", "referencedDeclaration": 8608, "src": "9436:12:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory", "typeString": "struct Pairing.G1Point memory[] memory" } }, "id": 8715, "indexExpression": { "argumentTypes": null, "hexValue": "30", "id": 8713, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "9449:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "9436:15:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "307832653361333638643866383432376636313539616162343334323435343339393338663436373834376262623563633066316363363861373838653262633330", "id": 8719, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "9508:66:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_20909244675356630489249238499901390293761749452673048846406261800587359337520_by_1", "typeString": "int_const 2090...(69 digits omitted)...7520" }, "value": "0x2e3a368d8f8427f6159aab434245439938f467847bbb5cc0f1cc68a788e2bc30" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_20909244675356630489249238499901390293761749452673048846406261800587359337520_by_1", "typeString": "int_const 2090...(69 digits omitted)...7520" } ], "id": 8718, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "9483:7:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_uint256_$", "typeString": "type(uint256)" }, "typeName": "uint256" }, "id": 8720, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "9483:105:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "307830666432666136373965366366323535386332363761633535663230386431323233353130653762383864636365353235393033396166623964636533623862", "id": 8722, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "9627:66:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_7157458842497821014951654285127909069091881454006887621866040795680497089419_by_1", "typeString": "int_const 7157...(68 digits omitted)...9419" }, "value": "0x0fd2fa679e6cf2558c267ac55f208d1223510e7b88dcce5259039afb9dce3b8b" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_7157458842497821014951654285127909069091881454006887621866040795680497089419_by_1", "typeString": "int_const 7157...(68 digits omitted)...9419" } ], "id": 8721, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "9602:7:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_uint256_$", "typeString": "type(uint256)" }, "typeName": "uint256" }, "id": 8723, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "9602:105:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "argumentTypes": null, "id": 8716, "name": "Pairing", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8595, "src": "9454:7:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_Pairing_$8595_$", "typeString": "type(library Pairing)" } }, "id": 8717, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "G1Point", "nodeType": "MemberAccess", "referencedDeclaration": 8028, "src": "9454:15:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_struct$_G1Point_$8028_storage_ptr_$", "typeString": "type(struct Pairing.G1Point storage pointer)" } }, "id": 8724, "isConstant": false, "isLValue": false, "isPure": true, "kind": "structConstructorCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "9454:263:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } }, "src": "9436:281:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } }, "id": 8726, "nodeType": "ExpressionStatement", "src": "9436:281:8" }, { "expression": { "argumentTypes": null, "id": 8741, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 8727, "name": "vk", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8619, "src": "9727:2:8", "typeDescriptions": { "typeIdentifier": "t_struct$_VerifyingKey_$8609_memory_ptr", "typeString": "struct SquareVerifier.VerifyingKey memory" } }, "id": 8730, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "gamma_abc", "nodeType": "MemberAccess", "referencedDeclaration": 8608, "src": "9727:12:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory", "typeString": "struct Pairing.G1Point memory[] memory" } }, "id": 8731, "indexExpression": { "argumentTypes": null, "hexValue": "31", "id": 8729, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "9740:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_1_by_1", "typeString": "int_const 1" }, "value": "1" }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "9727:15:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "307832336536323739326666616466396239613538303936663539303732396466326465626133623064643766333932633861393032646365313465323165353934", "id": 8735, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "9799:66:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_16237597656499293965332794985865402468877624803211829998411595855473171096980_by_1", "typeString": "int_const 1623...(69 digits omitted)...6980" }, "value": "0x23e62792ffadf9b9a58096f590729df2deba3b0dd7f392c8a902dce14e21e594" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_16237597656499293965332794985865402468877624803211829998411595855473171096980_by_1", "typeString": "int_const 1623...(69 digits omitted)...6980" } ], "id": 8734, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "9774:7:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_uint256_$", "typeString": "type(uint256)" }, "typeName": "uint256" }, "id": 8736, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "9774:105:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "307830333939326331613837306135653436363936613235626134343436346639356232383834303132386335373336653265623438626434636533306130623261", "id": 8738, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "9918:66:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_1627570538680188729076063237447958472880180078086369158473432654366798121770_by_1", "typeString": "int_const 1627...(68 digits omitted)...1770" }, "value": "0x03992c1a870a5e46696a25ba44464f95b28840128c5736e2eb48bd4ce30a0b2a" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_1627570538680188729076063237447958472880180078086369158473432654366798121770_by_1", "typeString": "int_const 1627...(68 digits omitted)...1770" } ], "id": 8737, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "9893:7:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_uint256_$", "typeString": "type(uint256)" }, "typeName": "uint256" }, "id": 8739, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "9893:105:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "argumentTypes": null, "id": 8732, "name": "Pairing", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8595, "src": "9745:7:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_Pairing_$8595_$", "typeString": "type(library Pairing)" } }, "id": 8733, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "G1Point", "nodeType": "MemberAccess", "referencedDeclaration": 8028, "src": "9745:15:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_struct$_G1Point_$8028_storage_ptr_$", "typeString": "type(struct Pairing.G1Point storage pointer)" } }, "id": 8740, "isConstant": false, "isLValue": false, "isPure": true, "kind": "structConstructorCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "9745:263:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } }, "src": "9727:281:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } }, "id": 8742, "nodeType": "ExpressionStatement", "src": "9727:281:8" }, { "expression": { "argumentTypes": null, "id": 8757, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 8743, "name": "vk", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8619, "src": "10018:2:8", "typeDescriptions": { "typeIdentifier": "t_struct$_VerifyingKey_$8609_memory_ptr", "typeString": "struct SquareVerifier.VerifyingKey memory" } }, "id": 8746, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "gamma_abc", "nodeType": "MemberAccess", "referencedDeclaration": 8608, "src": "10018:12:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory", "typeString": "struct Pairing.G1Point memory[] memory" } }, "id": 8747, "indexExpression": { "argumentTypes": null, "hexValue": "32", "id": 8745, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "10031:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_2_by_1", "typeString": "int_const 2" }, "value": "2" }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "10018:15:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "307830386138666330323031333032326537396563396464626562333135313532626234303734643136376330363065393030303539336634356330366638313262", "id": 8751, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "10090:66:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_3917072389673298666886201415819452942784002821963010175041186681150805868843_by_1", "typeString": "int_const 3917...(68 digits omitted)...8843" }, "value": "0x08a8fc02013022e79ec9ddbeb315152bb4074d167c060e9000593f45c06f812b" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_3917072389673298666886201415819452942784002821963010175041186681150805868843_by_1", "typeString": "int_const 3917...(68 digits omitted)...8843" } ], "id": 8750, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "10065:7:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_uint256_$", "typeString": "type(uint256)" }, "typeName": "uint256" }, "id": 8752, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "10065:105:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "307831353435653931333834623731373239363461343362323831646137306131396164396232323939663361363730646661306366633262303063383366666137", "id": 8754, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "10209:66:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_9622090900832633104956589294347785905754087754983621298681102729766771097511_by_1", "typeString": "int_const 9622...(68 digits omitted)...7511" }, "value": "0x1545e91384b7172964a43b281da70a19ad9b2299f3a670dfa0cfc2b00c83ffa7" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_9622090900832633104956589294347785905754087754983621298681102729766771097511_by_1", "typeString": "int_const 9622...(68 digits omitted)...7511" } ], "id": 8753, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "10184:7:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_uint256_$", "typeString": "type(uint256)" }, "typeName": "uint256" }, "id": 8755, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "10184:105:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "argumentTypes": null, "id": 8748, "name": "Pairing", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8595, "src": "10036:7:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_Pairing_$8595_$", "typeString": "type(library Pairing)" } }, "id": 8749, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "G1Point", "nodeType": "MemberAccess", "referencedDeclaration": 8028, "src": "10036:15:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_struct$_G1Point_$8028_storage_ptr_$", "typeString": "type(struct Pairing.G1Point storage pointer)" } }, "id": 8756, "isConstant": false, "isLValue": false, "isPure": true, "kind": "structConstructorCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "10036:263:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } }, "src": "10018:281:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } }, "id": 8758, "nodeType": "ExpressionStatement", "src": "10018:281:8" } ] }, "documentation": null, "id": 8760, "implemented": true, "kind": "function", "modifiers": [], "name": "verifyingKey", "nodeType": "FunctionDefinition", "parameters": { "id": 8617, "nodeType": "ParameterList", "parameters": [], "src": "7166:2:8" }, "returnParameters": { "id": 8620, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 8619, "name": "vk", "nodeType": "VariableDeclaration", "scope": 8760, "src": "7192:22:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_struct$_VerifyingKey_$8609_memory_ptr", "typeString": "struct SquareVerifier.VerifyingKey" }, "typeName": { "contractScope": null, "id": 8618, "name": "VerifyingKey", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8609, "src": "7192:12:8", "typeDescriptions": { "typeIdentifier": "t_struct$_VerifyingKey_$8609_storage_ptr", "typeString": "struct SquareVerifier.VerifyingKey" } }, "value": null, "visibility": "internal" } ], "src": "7191:24:8" }, "scope": 8942, "src": "7145:3161:8", "stateMutability": "pure", "superFunction": null, "visibility": "internal" }, { "body": { "id": 8884, "nodeType": "Block", "src": "10432:996:8", "statements": [ { "assignments": [ 8771 ], "declarations": [ { "constant": false, "id": 8771, "name": "snark_scalar_field", "nodeType": "VariableDeclaration", "scope": 8884, "src": "10442:26:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 8770, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "10442:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "id": 8773, "initialValue": { "argumentTypes": null, "hexValue": "3231383838323432383731383339323735323232323436343035373435323537323735303838353438333634343030343136303334333433363938323034313836353735383038343935363137", "id": 8772, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "10471:77:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_21888242871839275222246405745257275088548364400416034343698204186575808495617_by_1", "typeString": "int_const 2188...(69 digits omitted)...5617" }, "value": "21888242871839275222246405745257275088548364400416034343698204186575808495617" }, "nodeType": "VariableDeclarationStatement", "src": "10442:106:8" }, { "assignments": [ 8775 ], "declarations": [ { "constant": false, "id": 8775, "name": "vk", "nodeType": "VariableDeclaration", "scope": 8884, "src": "10558:22:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_struct$_VerifyingKey_$8609_memory_ptr", "typeString": "struct SquareVerifier.VerifyingKey" }, "typeName": { "contractScope": null, "id": 8774, "name": "VerifyingKey", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8609, "src": "10558:12:8", "typeDescriptions": { "typeIdentifier": "t_struct$_VerifyingKey_$8609_storage_ptr", "typeString": "struct SquareVerifier.VerifyingKey" } }, "value": null, "visibility": "internal" } ], "id": 8778, "initialValue": { "argumentTypes": null, "arguments": [], "expression": { "argumentTypes": [], "id": 8776, "name": "verifyingKey", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8760, "src": "10583:12:8", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$__$returns$_t_struct$_VerifyingKey_$8609_memory_ptr_$", "typeString": "function () pure returns (struct SquareVerifier.VerifyingKey memory)" } }, "id": 8777, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "10583:14:8", "typeDescriptions": { "typeIdentifier": "t_struct$_VerifyingKey_$8609_memory_ptr", "typeString": "struct SquareVerifier.VerifyingKey memory" } }, "nodeType": "VariableDeclarationStatement", "src": "10558:39:8" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 8787, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 8783, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 8780, "name": "input", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8763, "src": "10615:5:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 8781, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "length", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "10615:12:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "+", "rightExpression": { "argumentTypes": null, "hexValue": "31", "id": 8782, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "10630:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_1_by_1", "typeString": "int_const 1" }, "value": "1" }, "src": "10615:16:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 8784, "name": "vk", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8775, "src": "10635:2:8", "typeDescriptions": { "typeIdentifier": "t_struct$_VerifyingKey_$8609_memory_ptr", "typeString": "struct SquareVerifier.VerifyingKey memory" } }, "id": 8785, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "gamma_abc", "nodeType": "MemberAccess", "referencedDeclaration": 8608, "src": "10635:12:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory", "typeString": "struct Pairing.G1Point memory[] memory" } }, "id": 8786, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "length", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "10635:19:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "10615:39:8", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 8779, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8960, "src": "10607:7:8", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 8788, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "10607:48:8", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 8789, "nodeType": "ExpressionStatement", "src": "10607:48:8" }, { "assignments": [ 8793 ], "declarations": [ { "constant": false, "id": 8793, "name": "vk_x", "nodeType": "VariableDeclaration", "scope": 8884, "src": "10712:27:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point" }, "typeName": { "contractScope": null, "id": 8792, "name": "Pairing.G1Point", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8028, "src": "10712:15:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_storage_ptr", "typeString": "struct Pairing.G1Point" } }, "value": null, "visibility": "internal" } ], "id": 8799, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "30", "id": 8796, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "10758:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, { "argumentTypes": null, "hexValue": "30", "id": 8797, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "10761:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" } ], "expression": { "argumentTypes": null, "id": 8794, "name": "Pairing", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8595, "src": "10742:7:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_Pairing_$8595_$", "typeString": "type(library Pairing)" } }, "id": 8795, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "G1Point", "nodeType": "MemberAccess", "referencedDeclaration": 8028, "src": "10742:15:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_struct$_G1Point_$8028_storage_ptr_$", "typeString": "type(struct Pairing.G1Point storage pointer)" } }, "id": 8798, "isConstant": false, "isLValue": false, "isPure": true, "kind": "structConstructorCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "10742:21:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } }, "nodeType": "VariableDeclarationStatement", "src": "10712:51:8" }, { "body": { "id": 8838, "nodeType": "Block", "src": "10816:203:8", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 8816, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 8812, "name": "input", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8763, "src": "10838:5:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 8814, "indexExpression": { "argumentTypes": null, "id": 8813, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8801, "src": "10844:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "10838:8:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "argumentTypes": null, "id": 8815, "name": "snark_scalar_field", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8771, "src": "10849:18:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "10838:29:8", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 8811, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8960, "src": "10830:7:8", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 8817, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "10830:38:8", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 8818, "nodeType": "ExpressionStatement", "src": "10830:38:8" }, { "expression": { "argumentTypes": null, "id": 8836, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 8819, "name": "vk_x", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8793, "src": "10882:4:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 8822, "name": "vk_x", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8793, "src": "10923:4:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" } }, { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 8825, "name": "vk", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8775, "src": "10964:2:8", "typeDescriptions": { "typeIdentifier": "t_struct$_VerifyingKey_$8609_memory_ptr", "typeString": "struct SquareVerifier.VerifyingKey memory" } }, "id": 8826, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "gamma_abc", "nodeType": "MemberAccess", "referencedDeclaration": 8608, "src": "10964:12:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory", "typeString": "struct Pairing.G1Point memory[] memory" } }, "id": 8830, "indexExpression": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 8829, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 8827, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8801, "src": "10977:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "+", "rightExpression": { "argumentTypes": null, "hexValue": "31", "id": 8828, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "10981:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_1_by_1", "typeString": "int_const 1" }, "value": "1" }, "src": "10977:5:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "10964:19:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } }, { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 8831, "name": "input", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8763, "src": "10985:5:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 8833, "indexExpression": { "argumentTypes": null, "id": 8832, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8801, "src": "10991:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "10985:8:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "argumentTypes": null, "id": 8823, "name": "Pairing", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8595, "src": "10945:7:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_Pairing_$8595_$", "typeString": "type(library Pairing)" } }, "id": 8824, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "scalar_mul", "nodeType": "MemberAccess", "referencedDeclaration": 8198, "src": "10945:18:8", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_struct$_G1Point_$8028_memory_ptr_$_t_uint256_$returns$_t_struct$_G1Point_$8028_memory_ptr_$", "typeString": "function (struct Pairing.G1Point memory,uint256) view returns (struct Pairing.G1Point memory)" } }, "id": 8834, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "10945:49:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" }, { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" } ], "expression": { "argumentTypes": null, "id": 8820, "name": "Pairing", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8595, "src": "10889:7:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_Pairing_$8595_$", "typeString": "type(library Pairing)" } }, "id": 8821, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "addition", "nodeType": "MemberAccess", "referencedDeclaration": 8154, "src": "10889:16:8", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_struct$_G1Point_$8028_memory_ptr_$_t_struct$_G1Point_$8028_memory_ptr_$returns$_t_struct$_G1Point_$8028_memory_ptr_$", "typeString": "function (struct Pairing.G1Point memory,struct Pairing.G1Point memory) view returns (struct Pairing.G1Point memory)" } }, "id": 8835, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "10889:119:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" } }, "src": "10882:126:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" } }, "id": 8837, "nodeType": "ExpressionStatement", "src": "10882:126:8" } ] }, "condition": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 8807, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 8804, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8801, "src": "10793:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 8805, "name": "input", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8763, "src": "10797:5:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 8806, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "length", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "10797:12:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "10793:16:8", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 8839, "initializationExpression": { "assignments": [ 8801 ], "declarations": [ { "constant": false, "id": 8801, "name": "i", "nodeType": "VariableDeclaration", "scope": 8839, "src": "10778:9:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 8800, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "10778:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "id": 8803, "initialValue": { "argumentTypes": null, "hexValue": "30", "id": 8802, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "10790:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "nodeType": "VariableDeclarationStatement", "src": "10778:13:8" }, "loopExpression": { "expression": { "argumentTypes": null, "id": 8809, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "10811:3:8", "subExpression": { "argumentTypes": null, "id": 8808, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8801, "src": "10811:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 8810, "nodeType": "ExpressionStatement", "src": "10811:3:8" }, "nodeType": "ForStatement", "src": "10773:246:8" }, { "expression": { "argumentTypes": null, "id": 8849, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 8840, "name": "vk_x", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8793, "src": "11028:4:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 8843, "name": "vk_x", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8793, "src": "11052:4:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" } }, { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 8844, "name": "vk", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8775, "src": "11058:2:8", "typeDescriptions": { "typeIdentifier": "t_struct$_VerifyingKey_$8609_memory_ptr", "typeString": "struct SquareVerifier.VerifyingKey memory" } }, "id": 8845, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "gamma_abc", "nodeType": "MemberAccess", "referencedDeclaration": 8608, "src": "11058:12:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory", "typeString": "struct Pairing.G1Point memory[] memory" } }, "id": 8847, "indexExpression": { "argumentTypes": null, "hexValue": "30", "id": 8846, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "11071:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "11058:15:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" }, { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } ], "expression": { "argumentTypes": null, "id": 8841, "name": "Pairing", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8595, "src": "11035:7:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_Pairing_$8595_$", "typeString": "type(library Pairing)" } }, "id": 8842, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "addition", "nodeType": "MemberAccess", "referencedDeclaration": 8154, "src": "11035:16:8", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_struct$_G1Point_$8028_memory_ptr_$_t_struct$_G1Point_$8028_memory_ptr_$returns$_t_struct$_G1Point_$8028_memory_ptr_$", "typeString": "function (struct Pairing.G1Point memory,struct Pairing.G1Point memory) view returns (struct Pairing.G1Point memory)" } }, "id": 8848, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "11035:39:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" } }, "src": "11028:46:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" } }, "id": 8850, "nodeType": "ExpressionStatement", "src": "11028:46:8" }, { "condition": { "argumentTypes": null, "id": 8878, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "!", "prefix": true, "src": "11101:283:8", "subExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 8853, "name": "proof", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8765, "src": "11140:5:8", "typeDescriptions": { "typeIdentifier": "t_struct$_Proof_$8616_memory_ptr", "typeString": "struct SquareVerifier.Proof memory" } }, "id": 8854, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "a", "nodeType": "MemberAccess", "referencedDeclaration": 8611, "src": "11140:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } }, { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 8855, "name": "proof", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8765, "src": "11165:5:8", "typeDescriptions": { "typeIdentifier": "t_struct$_Proof_$8616_memory_ptr", "typeString": "struct SquareVerifier.Proof memory" } }, "id": 8856, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "b", "nodeType": "MemberAccess", "referencedDeclaration": 8613, "src": "11165:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory", "typeString": "struct Pairing.G2Point memory" } }, { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 8859, "name": "vk_x", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8793, "src": "11205:4:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" } ], "expression": { "argumentTypes": null, "id": 8857, "name": "Pairing", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8595, "src": "11190:7:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_Pairing_$8595_$", "typeString": "type(library Pairing)" } }, "id": 8858, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "negate", "nodeType": "MemberAccess", "referencedDeclaration": 8102, "src": "11190:14:8", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_struct$_G1Point_$8028_memory_ptr_$returns$_t_struct$_G1Point_$8028_memory_ptr_$", "typeString": "function (struct Pairing.G1Point memory) pure returns (struct Pairing.G1Point memory)" } }, "id": 8860, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "11190:20:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" } }, { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 8861, "name": "vk", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8775, "src": "11228:2:8", "typeDescriptions": { "typeIdentifier": "t_struct$_VerifyingKey_$8609_memory_ptr", "typeString": "struct SquareVerifier.VerifyingKey memory" } }, "id": 8862, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "gamma", "nodeType": "MemberAccess", "referencedDeclaration": 8603, "src": "11228:8:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory", "typeString": "struct Pairing.G2Point memory" } }, { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 8865, "name": "proof", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8765, "src": "11269:5:8", "typeDescriptions": { "typeIdentifier": "t_struct$_Proof_$8616_memory_ptr", "typeString": "struct SquareVerifier.Proof memory" } }, "id": 8866, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "c", "nodeType": "MemberAccess", "referencedDeclaration": 8615, "src": "11269:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } ], "expression": { "argumentTypes": null, "id": 8863, "name": "Pairing", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8595, "src": "11254:7:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_Pairing_$8595_$", "typeString": "type(library Pairing)" } }, "id": 8864, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "negate", "nodeType": "MemberAccess", "referencedDeclaration": 8102, "src": "11254:14:8", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_struct$_G1Point_$8028_memory_ptr_$returns$_t_struct$_G1Point_$8028_memory_ptr_$", "typeString": "function (struct Pairing.G1Point memory) pure returns (struct Pairing.G1Point memory)" } }, "id": 8867, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "11254:23:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" } }, { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 8868, "name": "vk", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8775, "src": "11295:2:8", "typeDescriptions": { "typeIdentifier": "t_struct$_VerifyingKey_$8609_memory_ptr", "typeString": "struct SquareVerifier.VerifyingKey memory" } }, "id": 8869, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "delta", "nodeType": "MemberAccess", "referencedDeclaration": 8605, "src": "11295:8:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory", "typeString": "struct Pairing.G2Point memory" } }, { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 8872, "name": "vk", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8775, "src": "11336:2:8", "typeDescriptions": { "typeIdentifier": "t_struct$_VerifyingKey_$8609_memory_ptr", "typeString": "struct SquareVerifier.VerifyingKey memory" } }, "id": 8873, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "alpha", "nodeType": "MemberAccess", "referencedDeclaration": 8599, "src": "11336:8:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } ], "expression": { "argumentTypes": null, "id": 8870, "name": "Pairing", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8595, "src": "11321:7:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_Pairing_$8595_$", "typeString": "type(library Pairing)" } }, "id": 8871, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "negate", "nodeType": "MemberAccess", "referencedDeclaration": 8102, "src": "11321:14:8", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_struct$_G1Point_$8028_memory_ptr_$returns$_t_struct$_G1Point_$8028_memory_ptr_$", "typeString": "function (struct Pairing.G1Point memory) pure returns (struct Pairing.G1Point memory)" } }, "id": 8874, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "11321:24:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" } }, { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 8875, "name": "vk", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8775, "src": "11363:2:8", "typeDescriptions": { "typeIdentifier": "t_struct$_VerifyingKey_$8609_memory_ptr", "typeString": "struct SquareVerifier.VerifyingKey memory" } }, "id": 8876, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "beta", "nodeType": "MemberAccess", "referencedDeclaration": 8601, "src": "11363:7:8", "typeDescriptions": { "typeIdentifier": "t_struct$_G2Point_$8037_memory", "typeString": "struct Pairing.G2Point memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" }, { "typeIdentifier": "t_struct$_G2Point_$8037_memory", "typeString": "struct Pairing.G2Point memory" }, { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" }, { "typeIdentifier": "t_struct$_G2Point_$8037_memory", "typeString": "struct Pairing.G2Point memory" }, { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" }, { "typeIdentifier": "t_struct$_G2Point_$8037_memory", "typeString": "struct Pairing.G2Point memory" }, { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" }, { "typeIdentifier": "t_struct$_G2Point_$8037_memory", "typeString": "struct Pairing.G2Point memory" } ], "expression": { "argumentTypes": null, "id": 8851, "name": "Pairing", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8595, "src": "11102:7:8", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_Pairing_$8595_$", "typeString": "type(library Pairing)" } }, "id": 8852, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "pairingProd4", "nodeType": "MemberAccess", "referencedDeclaration": 8594, "src": "11102:20:8", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_struct$_G1Point_$8028_memory_ptr_$_t_struct$_G2Point_$8037_memory_ptr_$_t_struct$_G1Point_$8028_memory_ptr_$_t_struct$_G2Point_$8037_memory_ptr_$_t_struct$_G1Point_$8028_memory_ptr_$_t_struct$_G2Point_$8037_memory_ptr_$_t_struct$_G1Point_$8028_memory_ptr_$_t_struct$_G2Point_$8037_memory_ptr_$returns$_t_bool_$", "typeString": "function (struct Pairing.G1Point memory,struct Pairing.G2Point memory,struct Pairing.G1Point memory,struct Pairing.G2Point memory,struct Pairing.G1Point memory,struct Pairing.G2Point memory,struct Pairing.G1Point memory,struct Pairing.G2Point memory) view returns (bool)" } }, "id": 8877, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "11102:282:8", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": null, "id": 8881, "nodeType": "IfStatement", "src": "11084:319:8", "trueBody": { "expression": { "argumentTypes": null, "hexValue": "31", "id": 8879, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "11402:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_1_by_1", "typeString": "int_const 1" }, "value": "1" }, "functionReturnParameters": 8769, "id": 8880, "nodeType": "Return", "src": "11395:8:8" } }, { "expression": { "argumentTypes": null, "hexValue": "30", "id": 8882, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "11420:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "functionReturnParameters": 8769, "id": 8883, "nodeType": "Return", "src": "11413:8:8" } ] }, "documentation": null, "id": 8885, "implemented": true, "kind": "function", "modifiers": [], "name": "verify", "nodeType": "FunctionDefinition", "parameters": { "id": 8766, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 8763, "name": "input", "nodeType": "VariableDeclaration", "scope": 8885, "src": "10328:22:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[]" }, "typeName": { "baseType": { "id": 8761, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "10328:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 8762, "length": null, "nodeType": "ArrayTypeName", "src": "10328:9:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 8765, "name": "proof", "nodeType": "VariableDeclaration", "scope": 8885, "src": "10352:18:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_struct$_Proof_$8616_memory_ptr", "typeString": "struct SquareVerifier.Proof" }, "typeName": { "contractScope": null, "id": 8764, "name": "Proof", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8616, "src": "10352:5:8", "typeDescriptions": { "typeIdentifier": "t_struct$_Proof_$8616_storage_ptr", "typeString": "struct SquareVerifier.Proof" } }, "value": null, "visibility": "internal" } ], "src": "10327:44:8" }, "returnParameters": { "id": 8769, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 8768, "name": "", "nodeType": "VariableDeclaration", "scope": 8885, "src": "10419:7:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 8767, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "10419:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "10418:9:8" }, "scope": 8942, "src": "10312:1116:8", "stateMutability": "view", "superFunction": null, "visibility": "internal" }, { "body": { "id": 8940, "nodeType": "Block", "src": "11554:292:8", "statements": [ { "assignments": [ 8899 ], "declarations": [ { "constant": false, "id": 8899, "name": "inputValues", "nodeType": "VariableDeclaration", "scope": 8940, "src": "11564:28:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[]" }, "typeName": { "baseType": { "id": 8897, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "11564:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 8898, "length": null, "nodeType": "ArrayTypeName", "src": "11564:9:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } }, "value": null, "visibility": "internal" } ], "id": 8905, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "32", "id": 8903, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "11609:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_2_by_1", "typeString": "int_const 2" }, "value": "2" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_2_by_1", "typeString": "int_const 2" } ], "id": 8902, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "11595:13:8", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_uint256_$dyn_memory_$", "typeString": "function (uint256) pure returns (uint256[] memory)" }, "typeName": { "baseType": { "id": 8900, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "11599:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 8901, "length": null, "nodeType": "ArrayTypeName", "src": "11599:9:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } } }, "id": 8904, "isConstant": false, "isLValue": false, "isPure": true, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "11595:16:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory", "typeString": "uint256[] memory" } }, "nodeType": "VariableDeclarationStatement", "src": "11564:47:8" }, { "body": { "id": 8925, "nodeType": "Block", "src": "11665:50:8", "statements": [ { "expression": { "argumentTypes": null, "id": 8923, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 8917, "name": "inputValues", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8899, "src": "11679:11:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 8919, "indexExpression": { "argumentTypes": null, "id": 8918, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8907, "src": "11691:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "11679:14:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 8920, "name": "input", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8891, "src": "11696:5:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$2_memory_ptr", "typeString": "uint256[2] memory" } }, "id": 8922, "indexExpression": { "argumentTypes": null, "id": 8921, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8907, "src": "11702:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "11696:8:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "11679:25:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 8924, "nodeType": "ExpressionStatement", "src": "11679:25:8" } ] }, "condition": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 8913, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 8910, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8907, "src": "11642:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 8911, "name": "input", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8891, "src": "11646:5:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$2_memory_ptr", "typeString": "uint256[2] memory" } }, "id": 8912, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "length", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "11646:12:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "11642:16:8", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 8926, "initializationExpression": { "assignments": [ 8907 ], "declarations": [ { "constant": false, "id": 8907, "name": "i", "nodeType": "VariableDeclaration", "scope": 8926, "src": "11627:9:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 8906, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "11627:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "id": 8909, "initialValue": { "argumentTypes": null, "hexValue": "30", "id": 8908, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "11639:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "nodeType": "VariableDeclarationStatement", "src": "11627:13:8" }, "loopExpression": { "expression": { "argumentTypes": null, "id": 8915, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "11660:3:8", "subExpression": { "argumentTypes": null, "id": 8914, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8907, "src": "11660:1:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 8916, "nodeType": "ExpressionStatement", "src": "11660:3:8" }, "nodeType": "ForStatement", "src": "11622:93:8" }, { "condition": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 8932, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 8928, "name": "inputValues", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8899, "src": "11735:11:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, { "argumentTypes": null, "id": 8929, "name": "proof", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8887, "src": "11748:5:8", "typeDescriptions": { "typeIdentifier": "t_struct$_Proof_$8616_memory_ptr", "typeString": "struct SquareVerifier.Proof memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" }, { "typeIdentifier": "t_struct$_Proof_$8616_memory_ptr", "typeString": "struct SquareVerifier.Proof memory" } ], "id": 8927, "name": "verify", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8885, "src": "11728:6:8", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_array$_t_uint256_$dyn_memory_ptr_$_t_struct$_Proof_$8616_memory_ptr_$returns$_t_uint256_$", "typeString": "function (uint256[] memory,struct SquareVerifier.Proof memory) view returns (uint256)" } }, "id": 8930, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "11728:26:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "argumentTypes": null, "hexValue": "30", "id": 8931, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "11758:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "src": "11728:31:8", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": { "id": 8938, "nodeType": "Block", "src": "11803:37:8", "statements": [ { "expression": { "argumentTypes": null, "hexValue": "66616c7365", "id": 8936, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "11824:5:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "false" }, "functionReturnParameters": 8895, "id": 8937, "nodeType": "Return", "src": "11817:12:8" } ] }, "id": 8939, "nodeType": "IfStatement", "src": "11724:116:8", "trueBody": { "id": 8935, "nodeType": "Block", "src": "11761:36:8", "statements": [ { "expression": { "argumentTypes": null, "hexValue": "74727565", "id": 8933, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "11782:4:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "true" }, "functionReturnParameters": 8895, "id": 8934, "nodeType": "Return", "src": "11775:11:8" } ] } } ] }, "documentation": null, "id": 8941, "implemented": true, "kind": "function", "modifiers": [], "name": "verifyTx", "nodeType": "FunctionDefinition", "parameters": { "id": 8892, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 8887, "name": "proof", "nodeType": "VariableDeclaration", "scope": 8941, "src": "11452:18:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_struct$_Proof_$8616_memory_ptr", "typeString": "struct SquareVerifier.Proof" }, "typeName": { "contractScope": null, "id": 8886, "name": "Proof", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8616, "src": "11452:5:8", "typeDescriptions": { "typeIdentifier": "t_struct$_Proof_$8616_storage_ptr", "typeString": "struct SquareVerifier.Proof" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 8891, "name": "input", "nodeType": "VariableDeclaration", "scope": 8941, "src": "11472:23:8", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$2_memory_ptr", "typeString": "uint256[2]" }, "typeName": { "baseType": { "id": 8888, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "11472:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 8890, "length": { "argumentTypes": null, "hexValue": "32", "id": 8889, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "11480:1:8", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_2_by_1", "typeString": "int_const 2" }, "value": "2" }, "nodeType": "ArrayTypeName", "src": "11472:10:8", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$2_storage_ptr", "typeString": "uint256[2]" } }, "value": null, "visibility": "internal" } ], "src": "11451:45:8" }, "returnParameters": { "id": 8895, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 8894, "name": "r", "nodeType": "VariableDeclaration", "scope": 8941, "src": "11542:6:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 8893, "name": "bool", "nodeType": "ElementaryTypeName", "src": "11542:4:8", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "11541:8:8" }, "scope": 8942, "src": "11434:412:8", "stateMutability": "view", "superFunction": null, "visibility": "public" } ], "scope": 8943, "src": "6791:5057:8" } ], "src": "1104:10745:8" }, "legacyAST": { "attributes": { "absolutePath": "project:/contracts/SquareVerifier.sol", "exportedSymbols": { "Pairing": [ 8595 ], "SquareVerifier": [ 8942 ] } }, "children": [ { "attributes": { "literals": [ "solidity", "^", "0.5", ".0" ] }, "id": 8022, "name": "PragmaDirective", "src": "1104:23:8" }, { "attributes": { "literals": [ "experimental", "ABIEncoderV2" ] }, "id": 8023, "name": "PragmaDirective", "src": "1128:33:8" }, { "attributes": { "baseContracts": [ null ], "contractDependencies": [ null ], "contractKind": "library", "documentation": null, "fullyImplemented": true, "linearizedBaseContracts": [ 8595 ], "name": "Pairing", "scope": 8943 }, "children": [ { "attributes": { "canonicalName": "Pairing.G1Point", "name": "G1Point", "scope": 8595, "visibility": "public" }, "children": [ { "attributes": { "constant": false, "name": "X", "scope": 8028, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 8024, "name": "ElementaryTypeName", "src": "1210:7:8" } ], "id": 8025, "name": "VariableDeclaration", "src": "1210:9:8" }, { "attributes": { "constant": false, "name": "Y", "scope": 8028, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 8026, "name": "ElementaryTypeName", "src": "1229:7:8" } ], "id": 8027, "name": "VariableDeclaration", "src": "1229:9:8" } ], "id": 8028, "name": "StructDefinition", "src": "1185:60:8" }, { "attributes": { "canonicalName": "Pairing.G2Point", "name": "G2Point", "scope": 8595, "visibility": "public" }, "children": [ { "attributes": { "constant": false, "name": "X", "scope": 8037, "stateVariable": false, "storageLocation": "default", "type": "uint256[2]", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "type": "uint256[2]" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 8029, "name": "ElementaryTypeName", "src": "1329:7:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "32", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 2", "value": "2" }, "id": 8030, "name": "Literal", "src": "1337:1:8" } ], "id": 8031, "name": "ArrayTypeName", "src": "1329:10:8" } ], "id": 8032, "name": "VariableDeclaration", "src": "1329:12:8" }, { "attributes": { "constant": false, "name": "Y", "scope": 8037, "stateVariable": false, "storageLocation": "default", "type": "uint256[2]", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "type": "uint256[2]" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 8033, "name": "ElementaryTypeName", "src": "1351:7:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "32", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 2", "value": "2" }, "id": 8034, "name": "Literal", "src": "1359:1:8" } ], "id": 8035, "name": "ArrayTypeName", "src": "1351:10:8" } ], "id": 8036, "name": "VariableDeclaration", "src": "1351:12:8" } ], "id": 8037, "name": "StructDefinition", "src": "1304:66:8" }, { "attributes": { "documentation": "@return the generator of G1", "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "P1", "scope": 8595, "stateMutability": "pure", "superFunction": null, "visibility": "internal" }, "children": [ { "attributes": { "parameters": [ null ] }, "children": [], "id": 8038, "name": "ParameterList", "src": "1423:2:8" }, { "children": [ { "attributes": { "constant": false, "name": "", "scope": 8048, "stateVariable": false, "storageLocation": "memory", "type": "struct Pairing.G1Point", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "contractScope": null, "name": "G1Point", "referencedDeclaration": 8028, "type": "struct Pairing.G1Point" }, "id": 8039, "name": "UserDefinedTypeName", "src": "1449:7:8" } ], "id": 8040, "name": "VariableDeclaration", "src": "1449:14:8" } ], "id": 8041, "name": "ParameterList", "src": "1448:16:8" }, { "children": [ { "attributes": { "functionReturnParameters": 8041 }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": true, "lValueRequested": false, "names": [ null ], "type": "struct Pairing.G1Point memory", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_rational_1_by_1", "typeString": "int_const 1" }, { "typeIdentifier": "t_rational_2_by_1", "typeString": "int_const 2" } ], "overloadedDeclarations": [ null ], "referencedDeclaration": 8028, "type": "type(struct Pairing.G1Point storage pointer)", "value": "G1Point" }, "id": 8042, "name": "Identifier", "src": "1482:7:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "31", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 1", "value": "1" }, "id": 8043, "name": "Literal", "src": "1490:1:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "32", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 2", "value": "2" }, "id": 8044, "name": "Literal", "src": "1493:1:8" } ], "id": 8045, "name": "FunctionCall", "src": "1482:13:8" } ], "id": 8046, "name": "Return", "src": "1475:20:8" } ], "id": 8047, "name": "Block", "src": "1465:37:8" } ], "id": 8048, "name": "FunctionDefinition", "src": "1412:90:8" }, { "attributes": { "documentation": "@return the generator of G2", "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "P2", "scope": 8595, "stateMutability": "pure", "superFunction": null, "visibility": "internal" }, "children": [ { "attributes": { "parameters": [ null ] }, "children": [], "id": 8049, "name": "ParameterList", "src": "1555:2:8" }, { "children": [ { "attributes": { "constant": false, "name": "", "scope": 8063, "stateVariable": false, "storageLocation": "memory", "type": "struct Pairing.G2Point", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "contractScope": null, "name": "G2Point", "referencedDeclaration": 8037, "type": "struct Pairing.G2Point" }, "id": 8050, "name": "UserDefinedTypeName", "src": "1581:7:8" } ], "id": 8051, "name": "VariableDeclaration", "src": "1581:14:8" } ], "id": 8052, "name": "ParameterList", "src": "1580:16:8" }, { "children": [ { "attributes": { "functionReturnParameters": 8052 }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": true, "lValueRequested": false, "names": [ null ], "type": "struct Pairing.G2Point memory", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_array$_t_uint256_$2_memory_ptr", "typeString": "uint256[2] memory" }, { "typeIdentifier": "t_array$_t_uint256_$2_memory_ptr", "typeString": "uint256[2] memory" } ], "overloadedDeclarations": [ null ], "referencedDeclaration": 8037, "type": "type(struct Pairing.G2Point storage pointer)", "value": "G2Point" }, "id": 8053, "name": "Identifier", "src": "1626:7:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isInlineArray": true, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "uint256[2] memory" }, "children": [ { "attributes": { "argumentTypes": null, "hexvalue": "3130383537303436393939303233303537313335393434353730373632323332383239343831333730373536333539353738353138303836393930353139393933323835363535383532373831", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 1085...(69 digits omitted)...2781", "value": "10857046999023057135944570762232829481370756359578518086990519993285655852781" }, "id": 8054, "name": "Literal", "src": "1673:77:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "3131353539373332303332393836333837313037393931303034303231333932323835373833393235383132383631383231313932353330393137343033313531343532333931383035363334", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 1155...(69 digits omitted)...5634", "value": "11559732032986387107991004021392285783925812861821192530917403151452391805634" }, "id": 8055, "name": "Literal", "src": "1772:77:8" } ], "id": 8056, "name": "TupleExpression", "src": "1651:216:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isInlineArray": true, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "uint256[2] memory" }, "children": [ { "attributes": { "argumentTypes": null, "hexvalue": "38343935363533393233313233343331343137363034393733323437343839323732343338343138313930353837323633363030313438373730323830363439333036393538313031393330", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 8495...(68 digits omitted)...1930", "value": "8495653923123431417604973247489272438418190587263600148770280649306958101930" }, "id": 8057, "name": "Literal", "src": "1907:76:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "34303832333637383735383633343333363831333332323033343033313435343335353638333136383531333237353933343031323038313035373431303736323134313230303933353331", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 4082...(68 digits omitted)...3531", "value": "4082367875863433681332203403145435568316851327593401208105741076214120093531" }, "id": 8058, "name": "Literal", "src": "2005:76:8" } ], "id": 8059, "name": "TupleExpression", "src": "1885:214:8" } ], "id": 8060, "name": "FunctionCall", "src": "1626:487:8" } ], "id": 8061, "name": "Return", "src": "1607:506:8" } ], "id": 8062, "name": "Block", "src": "1597:523:8" } ], "id": 8063, "name": "FunctionDefinition", "src": "1544:576:8" }, { "attributes": { "documentation": "@return the negation of p, i.e. p.addition(p.negate()) should be zero.", "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "negate", "scope": 8595, "stateMutability": "pure", "superFunction": null, "visibility": "internal" }, "children": [ { "children": [ { "attributes": { "constant": false, "name": "p", "scope": 8102, "stateVariable": false, "storageLocation": "memory", "type": "struct Pairing.G1Point", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "contractScope": null, "name": "G1Point", "referencedDeclaration": 8028, "type": "struct Pairing.G1Point" }, "id": 8064, "name": "UserDefinedTypeName", "src": "2221:7:8" } ], "id": 8065, "name": "VariableDeclaration", "src": "2221:16:8" } ], "id": 8066, "name": "ParameterList", "src": "2220:18:8" }, { "children": [ { "attributes": { "constant": false, "name": "", "scope": 8102, "stateVariable": false, "storageLocation": "memory", "type": "struct Pairing.G1Point", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "contractScope": null, "name": "G1Point", "referencedDeclaration": 8028, "type": "struct Pairing.G1Point" }, "id": 8067, "name": "UserDefinedTypeName", "src": "2262:7:8" } ], "id": 8068, "name": "VariableDeclaration", "src": "2262:14:8" } ], "id": 8069, "name": "ParameterList", "src": "2261:16:8" }, { "children": [ { "attributes": { "assignments": [ 8071 ] }, "children": [ { "attributes": { "constant": false, "name": "q", "scope": 8101, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 8070, "name": "ElementaryTypeName", "src": "2340:7:8" } ], "id": 8071, "name": "VariableDeclaration", "src": "2340:9:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "3231383838323432383731383339323735323232323436343035373435323537323735303838363936333131313537323937383233363632363839303337383934363435323236323038353833", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 2188...(69 digits omitted)...8583", "value": "21888242871839275222246405745257275088696311157297823662689037894645226208583" }, "id": 8072, "name": "Literal", "src": "2352:77:8" } ], "id": 8073, "name": "VariableDeclarationStatement", "src": "2340:89:8" }, { "attributes": { "falseBody": null }, "children": [ { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_bool", "typeString": "bool" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "&&", "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "==", "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "member_name": "X", "referencedDeclaration": 8025, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8065, "type": "struct Pairing.G1Point memory", "value": "p" }, "id": 8074, "name": "Identifier", "src": "2443:1:8" } ], "id": 8075, "name": "MemberAccess", "src": "2443:3:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "30", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 0", "value": "0" }, "id": 8076, "name": "Literal", "src": "2450:1:8" } ], "id": 8077, "name": "BinaryOperation", "src": "2443:8:8" }, { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "==", "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "member_name": "Y", "referencedDeclaration": 8027, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8065, "type": "struct Pairing.G1Point memory", "value": "p" }, "id": 8078, "name": "Identifier", "src": "2455:1:8" } ], "id": 8079, "name": "MemberAccess", "src": "2455:3:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "30", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 0", "value": "0" }, "id": 8080, "name": "Literal", "src": "2462:1:8" } ], "id": 8081, "name": "BinaryOperation", "src": "2455:8:8" } ], "id": 8082, "name": "BinaryOperation", "src": "2443:20:8" }, { "attributes": { "functionReturnParameters": 8069 }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": true, "lValueRequested": false, "names": [ null ], "type": "struct Pairing.G1Point memory", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" } ], "overloadedDeclarations": [ null ], "referencedDeclaration": 8028, "type": "type(struct Pairing.G1Point storage pointer)", "value": "G1Point" }, "id": 8083, "name": "Identifier", "src": "2472:7:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "30", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 0", "value": "0" }, "id": 8084, "name": "Literal", "src": "2480:1:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "30", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 0", "value": "0" }, "id": 8085, "name": "Literal", "src": "2483:1:8" } ], "id": 8086, "name": "FunctionCall", "src": "2472:13:8" } ], "id": 8087, "name": "Return", "src": "2465:20:8" } ], "id": 8088, "name": "IfStatement", "src": "2439:46:8" }, { "attributes": { "functionReturnParameters": 8069 }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "isStructConstructorCall": true, "lValueRequested": false, "names": [ null ], "type": "struct Pairing.G1Point memory", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "overloadedDeclarations": [ null ], "referencedDeclaration": 8028, "type": "type(struct Pairing.G1Point storage pointer)", "value": "G1Point" }, "id": 8089, "name": "Identifier", "src": "2502:7:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "member_name": "X", "referencedDeclaration": 8025, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8065, "type": "struct Pairing.G1Point memory", "value": "p" }, "id": 8090, "name": "Identifier", "src": "2510:1:8" } ], "id": 8091, "name": "MemberAccess", "src": "2510:3:8" }, { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "-", "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8071, "type": "uint256", "value": "q" }, "id": 8092, "name": "Identifier", "src": "2515:1:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isInlineArray": false, "isLValue": false, "isPure": false, "lValueRequested": false, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "%", "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "member_name": "Y", "referencedDeclaration": 8027, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8065, "type": "struct Pairing.G1Point memory", "value": "p" }, "id": 8093, "name": "Identifier", "src": "2520:1:8" } ], "id": 8094, "name": "MemberAccess", "src": "2520:3:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8071, "type": "uint256", "value": "q" }, "id": 8095, "name": "Identifier", "src": "2526:1:8" } ], "id": 8096, "name": "BinaryOperation", "src": "2520:7:8" } ], "id": 8097, "name": "TupleExpression", "src": "2519:9:8" } ], "id": 8098, "name": "BinaryOperation", "src": "2515:13:8" } ], "id": 8099, "name": "FunctionCall", "src": "2502:27:8" } ], "id": 8100, "name": "Return", "src": "2495:34:8" } ], "id": 8101, "name": "Block", "src": "2278:258:8" } ], "id": 8102, "name": "FunctionDefinition", "src": "2205:331:8" }, { "attributes": { "documentation": "@return r the sum of two points of G1", "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "addition", "scope": 8595, "stateMutability": "view", "superFunction": null, "visibility": "internal" }, "children": [ { "children": [ { "attributes": { "constant": false, "name": "p1", "scope": 8154, "stateVariable": false, "storageLocation": "memory", "type": "struct Pairing.G1Point", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "contractScope": null, "name": "G1Point", "referencedDeclaration": 8028, "type": "struct Pairing.G1Point" }, "id": 8103, "name": "UserDefinedTypeName", "src": "2606:7:8" } ], "id": 8104, "name": "VariableDeclaration", "src": "2606:17:8" }, { "attributes": { "constant": false, "name": "p2", "scope": 8154, "stateVariable": false, "storageLocation": "memory", "type": "struct Pairing.G1Point", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "contractScope": null, "name": "G1Point", "referencedDeclaration": 8028, "type": "struct Pairing.G1Point" }, "id": 8105, "name": "UserDefinedTypeName", "src": "2625:7:8" } ], "id": 8106, "name": "VariableDeclaration", "src": "2625:17:8" } ], "id": 8107, "name": "ParameterList", "src": "2605:38:8" }, { "children": [ { "attributes": { "constant": false, "name": "r", "scope": 8154, "stateVariable": false, "storageLocation": "memory", "type": "struct Pairing.G1Point", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "contractScope": null, "name": "G1Point", "referencedDeclaration": 8028, "type": "struct Pairing.G1Point" }, "id": 8108, "name": "UserDefinedTypeName", "src": "2691:7:8" } ], "id": 8109, "name": "VariableDeclaration", "src": "2691:16:8" } ], "id": 8110, "name": "ParameterList", "src": "2690:18:8" }, { "children": [ { "attributes": { "assignments": [ 8115 ], "initialValue": null }, "children": [ { "attributes": { "constant": false, "name": "input", "scope": 8153, "stateVariable": false, "storageLocation": "memory", "type": "uint256[4]", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "type": "uint256[4]" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 8113, "name": "ElementaryTypeName", "src": "2723:7:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "34", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 4", "value": "4" }, "id": 8112, "name": "Literal", "src": "2731:1:8" } ], "id": 8114, "name": "ArrayTypeName", "src": "2723:10:8" } ], "id": 8115, "name": "VariableDeclaration", "src": "2723:23:8" } ], "id": 8116, "name": "VariableDeclarationStatement", "src": "2723:23:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8115, "type": "uint256[4] memory", "value": "input" }, "id": 8117, "name": "Identifier", "src": "2756:5:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "30", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 0", "value": "0" }, "id": 8118, "name": "Literal", "src": "2762:1:8" } ], "id": 8119, "name": "IndexAccess", "src": "2756:8:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "member_name": "X", "referencedDeclaration": 8025, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8104, "type": "struct Pairing.G1Point memory", "value": "p1" }, "id": 8120, "name": "Identifier", "src": "2767:2:8" } ], "id": 8121, "name": "MemberAccess", "src": "2767:4:8" } ], "id": 8122, "name": "Assignment", "src": "2756:15:8" } ], "id": 8123, "name": "ExpressionStatement", "src": "2756:15:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8115, "type": "uint256[4] memory", "value": "input" }, "id": 8124, "name": "Identifier", "src": "2781:5:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "31", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 1", "value": "1" }, "id": 8125, "name": "Literal", "src": "2787:1:8" } ], "id": 8126, "name": "IndexAccess", "src": "2781:8:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "member_name": "Y", "referencedDeclaration": 8027, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8104, "type": "struct Pairing.G1Point memory", "value": "p1" }, "id": 8127, "name": "Identifier", "src": "2792:2:8" } ], "id": 8128, "name": "MemberAccess", "src": "2792:4:8" } ], "id": 8129, "name": "Assignment", "src": "2781:15:8" } ], "id": 8130, "name": "ExpressionStatement", "src": "2781:15:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8115, "type": "uint256[4] memory", "value": "input" }, "id": 8131, "name": "Identifier", "src": "2806:5:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "32", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 2", "value": "2" }, "id": 8132, "name": "Literal", "src": "2812:1:8" } ], "id": 8133, "name": "IndexAccess", "src": "2806:8:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "member_name": "X", "referencedDeclaration": 8025, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8106, "type": "struct Pairing.G1Point memory", "value": "p2" }, "id": 8134, "name": "Identifier", "src": "2817:2:8" } ], "id": 8135, "name": "MemberAccess", "src": "2817:4:8" } ], "id": 8136, "name": "Assignment", "src": "2806:15:8" } ], "id": 8137, "name": "ExpressionStatement", "src": "2806:15:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8115, "type": "uint256[4] memory", "value": "input" }, "id": 8138, "name": "Identifier", "src": "2831:5:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "33", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 3", "value": "3" }, "id": 8139, "name": "Literal", "src": "2837:1:8" } ], "id": 8140, "name": "IndexAccess", "src": "2831:8:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "member_name": "Y", "referencedDeclaration": 8027, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8106, "type": "struct Pairing.G1Point memory", "value": "p2" }, "id": 8141, "name": "Identifier", "src": "2842:2:8" } ], "id": 8142, "name": "MemberAccess", "src": "2842:4:8" } ], "id": 8143, "name": "Assignment", "src": "2831:15:8" } ], "id": 8144, "name": "ExpressionStatement", "src": "2831:15:8" }, { "attributes": { "assignments": [ 8146 ], "initialValue": null }, "children": [ { "attributes": { "constant": false, "name": "success", "scope": 8153, "stateVariable": false, "storageLocation": "default", "type": "bool", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "bool", "type": "bool" }, "id": 8145, "name": "ElementaryTypeName", "src": "2856:4:8" } ], "id": 8146, "name": "VariableDeclaration", "src": "2856:12:8" } ], "id": 8147, "name": "VariableDeclarationStatement", "src": "2856:12:8" }, { "attributes": { "externalReferences": [ { "success": { "declaration": 8146, "isOffset": false, "isSlot": false, "src": "2901:7:8", "valueSize": 1 } }, { "success": { "declaration": 8146, "isOffset": false, "isSlot": false, "src": "3042:7:8", "valueSize": 1 } }, { "input": { "declaration": 8115, "isOffset": false, "isSlot": false, "src": "2944:5:8", "valueSize": 1 } }, { "r": { "declaration": 8109, "isOffset": false, "isSlot": false, "src": "2957:1:8", "valueSize": 1 } } ], "operations": "{\n success := staticcall(sub(gas(), 2000), 6, input, 0xc0, r, 0x60)\n switch success\n case 0 { invalid() }\n}" }, "children": [], "id": 8148, "name": "InlineAssembly", "src": "2878:242:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "tuple()", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8960, "type": "function (bool) pure", "value": "require" }, "id": 8149, "name": "Identifier", "src": "3129:7:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8146, "type": "bool", "value": "success" }, "id": 8150, "name": "Identifier", "src": "3137:7:8" } ], "id": 8151, "name": "FunctionCall", "src": "3129:16:8" } ], "id": 8152, "name": "ExpressionStatement", "src": "3129:16:8" } ], "id": 8153, "name": "Block", "src": "2713:439:8" } ], "id": 8154, "name": "FunctionDefinition", "src": "2588:564:8" }, { "attributes": { "documentation": "@return r the product of a point on G1 and a scalar, i.e.\n p == p.scalar_mul(1) and p.addition(p) == p.scalar_mul(2) for all points p.", "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "scalar_mul", "scope": 8595, "stateMutability": "view", "superFunction": null, "visibility": "internal" }, "children": [ { "children": [ { "attributes": { "constant": false, "name": "p", "scope": 8198, "stateVariable": false, "storageLocation": "memory", "type": "struct Pairing.G1Point", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "contractScope": null, "name": "G1Point", "referencedDeclaration": 8028, "type": "struct Pairing.G1Point" }, "id": 8155, "name": "UserDefinedTypeName", "src": "3328:7:8" } ], "id": 8156, "name": "VariableDeclaration", "src": "3328:16:8" }, { "attributes": { "constant": false, "name": "s", "scope": 8198, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 8157, "name": "ElementaryTypeName", "src": "3346:7:8" } ], "id": 8158, "name": "VariableDeclaration", "src": "3346:9:8" } ], "id": 8159, "name": "ParameterList", "src": "3327:29:8" }, { "children": [ { "attributes": { "constant": false, "name": "r", "scope": 8198, "stateVariable": false, "storageLocation": "memory", "type": "struct Pairing.G1Point", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "contractScope": null, "name": "G1Point", "referencedDeclaration": 8028, "type": "struct Pairing.G1Point" }, "id": 8160, "name": "UserDefinedTypeName", "src": "3404:7:8" } ], "id": 8161, "name": "VariableDeclaration", "src": "3404:16:8" } ], "id": 8162, "name": "ParameterList", "src": "3403:18:8" }, { "children": [ { "attributes": { "assignments": [ 8167 ], "initialValue": null }, "children": [ { "attributes": { "constant": false, "name": "input", "scope": 8197, "stateVariable": false, "storageLocation": "memory", "type": "uint256[3]", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "type": "uint256[3]" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 8165, "name": "ElementaryTypeName", "src": "3436:7:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "33", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 3", "value": "3" }, "id": 8164, "name": "Literal", "src": "3444:1:8" } ], "id": 8166, "name": "ArrayTypeName", "src": "3436:10:8" } ], "id": 8167, "name": "VariableDeclaration", "src": "3436:23:8" } ], "id": 8168, "name": "VariableDeclarationStatement", "src": "3436:23:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8167, "type": "uint256[3] memory", "value": "input" }, "id": 8169, "name": "Identifier", "src": "3469:5:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "30", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 0", "value": "0" }, "id": 8170, "name": "Literal", "src": "3475:1:8" } ], "id": 8171, "name": "IndexAccess", "src": "3469:8:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "member_name": "X", "referencedDeclaration": 8025, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8156, "type": "struct Pairing.G1Point memory", "value": "p" }, "id": 8172, "name": "Identifier", "src": "3480:1:8" } ], "id": 8173, "name": "MemberAccess", "src": "3480:3:8" } ], "id": 8174, "name": "Assignment", "src": "3469:14:8" } ], "id": 8175, "name": "ExpressionStatement", "src": "3469:14:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8167, "type": "uint256[3] memory", "value": "input" }, "id": 8176, "name": "Identifier", "src": "3493:5:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "31", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 1", "value": "1" }, "id": 8177, "name": "Literal", "src": "3499:1:8" } ], "id": 8178, "name": "IndexAccess", "src": "3493:8:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "member_name": "Y", "referencedDeclaration": 8027, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8156, "type": "struct Pairing.G1Point memory", "value": "p" }, "id": 8179, "name": "Identifier", "src": "3504:1:8" } ], "id": 8180, "name": "MemberAccess", "src": "3504:3:8" } ], "id": 8181, "name": "Assignment", "src": "3493:14:8" } ], "id": 8182, "name": "ExpressionStatement", "src": "3493:14:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8167, "type": "uint256[3] memory", "value": "input" }, "id": 8183, "name": "Identifier", "src": "3517:5:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "32", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 2", "value": "2" }, "id": 8184, "name": "Literal", "src": "3523:1:8" } ], "id": 8185, "name": "IndexAccess", "src": "3517:8:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8158, "type": "uint256", "value": "s" }, "id": 8186, "name": "Identifier", "src": "3528:1:8" } ], "id": 8187, "name": "Assignment", "src": "3517:12:8" } ], "id": 8188, "name": "ExpressionStatement", "src": "3517:12:8" }, { "attributes": { "assignments": [ 8190 ], "initialValue": null }, "children": [ { "attributes": { "constant": false, "name": "success", "scope": 8197, "stateVariable": false, "storageLocation": "default", "type": "bool", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "bool", "type": "bool" }, "id": 8189, "name": "ElementaryTypeName", "src": "3539:4:8" } ], "id": 8190, "name": "VariableDeclaration", "src": "3539:12:8" } ], "id": 8191, "name": "VariableDeclarationStatement", "src": "3539:12:8" }, { "attributes": { "externalReferences": [ { "success": { "declaration": 8190, "isOffset": false, "isSlot": false, "src": "3584:7:8", "valueSize": 1 } }, { "success": { "declaration": 8190, "isOffset": false, "isSlot": false, "src": "3725:7:8", "valueSize": 1 } }, { "input": { "declaration": 8167, "isOffset": false, "isSlot": false, "src": "3627:5:8", "valueSize": 1 } }, { "r": { "declaration": 8161, "isOffset": false, "isSlot": false, "src": "3640:1:8", "valueSize": 1 } } ], "operations": "{\n success := staticcall(sub(gas(), 2000), 7, input, 0x80, r, 0x60)\n switch success\n case 0 { invalid() }\n}" }, "children": [], "id": 8192, "name": "InlineAssembly", "src": "3561:242:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "tuple()", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8960, "type": "function (bool) pure", "value": "require" }, "id": 8193, "name": "Identifier", "src": "3812:7:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8190, "type": "bool", "value": "success" }, "id": 8194, "name": "Identifier", "src": "3820:7:8" } ], "id": 8195, "name": "FunctionCall", "src": "3812:16:8" } ], "id": 8196, "name": "ExpressionStatement", "src": "3812:16:8" } ], "id": 8197, "name": "Block", "src": "3426:409:8" } ], "id": 8198, "name": "FunctionDefinition", "src": "3308:527:8" }, { "attributes": { "documentation": "@return the result of computing the pairing check\n e(p1[0], p2[0]) * .... * e(p1[n], p2[n]) == 1\n For example pairing([P1(), P1().negate()], [P2(), P2()]) should\n return true.", "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "pairing", "scope": 8595, "stateMutability": "view", "superFunction": null, "visibility": "internal" }, "children": [ { "children": [ { "attributes": { "constant": false, "name": "p1", "scope": 8357, "stateVariable": false, "storageLocation": "memory", "type": "struct Pairing.G1Point[]", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "length": null, "type": "struct Pairing.G1Point[]" }, "children": [ { "attributes": { "contractScope": null, "name": "G1Point", "referencedDeclaration": 8028, "type": "struct Pairing.G1Point" }, "id": 8199, "name": "UserDefinedTypeName", "src": "4064:7:8" } ], "id": 8200, "name": "ArrayTypeName", "src": "4064:9:8" } ], "id": 8201, "name": "VariableDeclaration", "src": "4064:19:8" }, { "attributes": { "constant": false, "name": "p2", "scope": 8357, "stateVariable": false, "storageLocation": "memory", "type": "struct Pairing.G2Point[]", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "length": null, "type": "struct Pairing.G2Point[]" }, "children": [ { "attributes": { "contractScope": null, "name": "G2Point", "referencedDeclaration": 8037, "type": "struct Pairing.G2Point" }, "id": 8202, "name": "UserDefinedTypeName", "src": "4085:7:8" } ], "id": 8203, "name": "ArrayTypeName", "src": "4085:9:8" } ], "id": 8204, "name": "VariableDeclaration", "src": "4085:19:8" } ], "id": 8205, "name": "ParameterList", "src": "4063:42:8" }, { "children": [ { "attributes": { "constant": false, "name": "", "scope": 8357, "stateVariable": false, "storageLocation": "default", "type": "bool", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "bool", "type": "bool" }, "id": 8206, "name": "ElementaryTypeName", "src": "4153:4:8" } ], "id": 8207, "name": "VariableDeclaration", "src": "4153:4:8" } ], "id": 8208, "name": "ParameterList", "src": "4152:6:8" }, { "children": [ { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "tuple()", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8960, "type": "function (bool) pure", "value": "require" }, "id": 8209, "name": "Identifier", "src": "4173:7:8" }, { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "==", "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "member_name": "length", "referencedDeclaration": null, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8201, "type": "struct Pairing.G1Point memory[] memory", "value": "p1" }, "id": 8210, "name": "Identifier", "src": "4181:2:8" } ], "id": 8211, "name": "MemberAccess", "src": "4181:9:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "member_name": "length", "referencedDeclaration": null, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8204, "type": "struct Pairing.G2Point memory[] memory", "value": "p2" }, "id": 8212, "name": "Identifier", "src": "4194:2:8" } ], "id": 8213, "name": "MemberAccess", "src": "4194:9:8" } ], "id": 8214, "name": "BinaryOperation", "src": "4181:22:8" } ], "id": 8215, "name": "FunctionCall", "src": "4173:31:8" } ], "id": 8216, "name": "ExpressionStatement", "src": "4173:31:8" }, { "attributes": { "assignments": [ 8218 ] }, "children": [ { "attributes": { "constant": false, "name": "elements", "scope": 8356, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 8217, "name": "ElementaryTypeName", "src": "4214:7:8" } ], "id": 8218, "name": "VariableDeclaration", "src": "4214:16:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "member_name": "length", "referencedDeclaration": null, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8201, "type": "struct Pairing.G1Point memory[] memory", "value": "p1" }, "id": 8219, "name": "Identifier", "src": "4233:2:8" } ], "id": 8220, "name": "MemberAccess", "src": "4233:9:8" } ], "id": 8221, "name": "VariableDeclarationStatement", "src": "4214:28:8" }, { "attributes": { "assignments": [ 8223 ] }, "children": [ { "attributes": { "constant": false, "name": "inputSize", "scope": 8356, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 8222, "name": "ElementaryTypeName", "src": "4252:7:8" } ], "id": 8223, "name": "VariableDeclaration", "src": "4252:17:8" }, { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "*", "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8218, "type": "uint256", "value": "elements" }, "id": 8224, "name": "Identifier", "src": "4272:8:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "36", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 6", "value": "6" }, "id": 8225, "name": "Literal", "src": "4283:1:8" } ], "id": 8226, "name": "BinaryOperation", "src": "4272:12:8" } ], "id": 8227, "name": "VariableDeclarationStatement", "src": "4252:32:8" }, { "attributes": { "assignments": [ 8231 ] }, "children": [ { "attributes": { "constant": false, "name": "input", "scope": 8356, "stateVariable": false, "storageLocation": "memory", "type": "uint256[]", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "length": null, "type": "uint256[]" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 8229, "name": "ElementaryTypeName", "src": "4294:7:8" } ], "id": 8230, "name": "ArrayTypeName", "src": "4294:9:8" } ], "id": 8231, "name": "VariableDeclaration", "src": "4294:22:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "uint256[] memory", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "function (uint256) pure returns (uint256[] memory)" }, "children": [ { "attributes": { "length": null, "type": "uint256[]" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 8232, "name": "ElementaryTypeName", "src": "4323:7:8" } ], "id": 8233, "name": "ArrayTypeName", "src": "4323:9:8" } ], "id": 8234, "name": "NewExpression", "src": "4319:13:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8223, "type": "uint256", "value": "inputSize" }, "id": 8235, "name": "Identifier", "src": "4333:9:8" } ], "id": 8236, "name": "FunctionCall", "src": "4319:24:8" } ], "id": 8237, "name": "VariableDeclarationStatement", "src": "4294:49:8" }, { "children": [ { "attributes": { "assignments": [ 8239 ] }, "children": [ { "attributes": { "constant": false, "name": "i", "scope": 8335, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 8238, "name": "ElementaryTypeName", "src": "4358:7:8" } ], "id": 8239, "name": "VariableDeclaration", "src": "4358:9:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "30", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 0", "value": "0" }, "id": 8240, "name": "Literal", "src": "4370:1:8" } ], "id": 8241, "name": "VariableDeclarationStatement", "src": "4358:13:8" }, { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "<", "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8239, "type": "uint256", "value": "i" }, "id": 8242, "name": "Identifier", "src": "4373:1:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8218, "type": "uint256", "value": "elements" }, "id": 8243, "name": "Identifier", "src": "4377:8:8" } ], "id": 8244, "name": "BinaryOperation", "src": "4373:12:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "++", "prefix": false, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8239, "type": "uint256", "value": "i" }, "id": 8245, "name": "Identifier", "src": "4387:1:8" } ], "id": 8246, "name": "UnaryOperation", "src": "4387:3:8" } ], "id": 8247, "name": "ExpressionStatement", "src": "4387:3:8" }, { "children": [ { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8231, "type": "uint256[] memory", "value": "input" }, "id": 8248, "name": "Identifier", "src": "4406:5:8" }, { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "+", "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "*", "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8239, "type": "uint256", "value": "i" }, "id": 8249, "name": "Identifier", "src": "4412:1:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "36", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 6", "value": "6" }, "id": 8250, "name": "Literal", "src": "4416:1:8" } ], "id": 8251, "name": "BinaryOperation", "src": "4412:5:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "30", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 0", "value": "0" }, "id": 8252, "name": "Literal", "src": "4420:1:8" } ], "id": 8253, "name": "BinaryOperation", "src": "4412:9:8" } ], "id": 8254, "name": "IndexAccess", "src": "4406:16:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "member_name": "X", "referencedDeclaration": 8025, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "struct Pairing.G1Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8201, "type": "struct Pairing.G1Point memory[] memory", "value": "p1" }, "id": 8255, "name": "Identifier", "src": "4425:2:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8239, "type": "uint256", "value": "i" }, "id": 8256, "name": "Identifier", "src": "4428:1:8" } ], "id": 8257, "name": "IndexAccess", "src": "4425:5:8" } ], "id": 8258, "name": "MemberAccess", "src": "4425:7:8" } ], "id": 8259, "name": "Assignment", "src": "4406:26:8" } ], "id": 8260, "name": "ExpressionStatement", "src": "4406:26:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8231, "type": "uint256[] memory", "value": "input" }, "id": 8261, "name": "Identifier", "src": "4446:5:8" }, { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "+", "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "*", "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8239, "type": "uint256", "value": "i" }, "id": 8262, "name": "Identifier", "src": "4452:1:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "36", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 6", "value": "6" }, "id": 8263, "name": "Literal", "src": "4456:1:8" } ], "id": 8264, "name": "BinaryOperation", "src": "4452:5:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "31", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 1", "value": "1" }, "id": 8265, "name": "Literal", "src": "4460:1:8" } ], "id": 8266, "name": "BinaryOperation", "src": "4452:9:8" } ], "id": 8267, "name": "IndexAccess", "src": "4446:16:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "member_name": "Y", "referencedDeclaration": 8027, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "struct Pairing.G1Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8201, "type": "struct Pairing.G1Point memory[] memory", "value": "p1" }, "id": 8268, "name": "Identifier", "src": "4465:2:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8239, "type": "uint256", "value": "i" }, "id": 8269, "name": "Identifier", "src": "4468:1:8" } ], "id": 8270, "name": "IndexAccess", "src": "4465:5:8" } ], "id": 8271, "name": "MemberAccess", "src": "4465:7:8" } ], "id": 8272, "name": "Assignment", "src": "4446:26:8" } ], "id": 8273, "name": "ExpressionStatement", "src": "4446:26:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8231, "type": "uint256[] memory", "value": "input" }, "id": 8274, "name": "Identifier", "src": "4486:5:8" }, { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "+", "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "*", "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8239, "type": "uint256", "value": "i" }, "id": 8275, "name": "Identifier", "src": "4492:1:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "36", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 6", "value": "6" }, "id": 8276, "name": "Literal", "src": "4496:1:8" } ], "id": 8277, "name": "BinaryOperation", "src": "4492:5:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "32", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 2", "value": "2" }, "id": 8278, "name": "Literal", "src": "4500:1:8" } ], "id": 8279, "name": "BinaryOperation", "src": "4492:9:8" } ], "id": 8280, "name": "IndexAccess", "src": "4486:16:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "member_name": "X", "referencedDeclaration": 8032, "type": "uint256[2] memory" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "struct Pairing.G2Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8204, "type": "struct Pairing.G2Point memory[] memory", "value": "p2" }, "id": 8281, "name": "Identifier", "src": "4505:2:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8239, "type": "uint256", "value": "i" }, "id": 8282, "name": "Identifier", "src": "4508:1:8" } ], "id": 8283, "name": "IndexAccess", "src": "4505:5:8" } ], "id": 8284, "name": "MemberAccess", "src": "4505:7:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "31", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 1", "value": "1" }, "id": 8285, "name": "Literal", "src": "4513:1:8" } ], "id": 8286, "name": "IndexAccess", "src": "4505:10:8" } ], "id": 8287, "name": "Assignment", "src": "4486:29:8" } ], "id": 8288, "name": "ExpressionStatement", "src": "4486:29:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8231, "type": "uint256[] memory", "value": "input" }, "id": 8289, "name": "Identifier", "src": "4529:5:8" }, { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "+", "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "*", "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8239, "type": "uint256", "value": "i" }, "id": 8290, "name": "Identifier", "src": "4535:1:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "36", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 6", "value": "6" }, "id": 8291, "name": "Literal", "src": "4539:1:8" } ], "id": 8292, "name": "BinaryOperation", "src": "4535:5:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "33", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 3", "value": "3" }, "id": 8293, "name": "Literal", "src": "4543:1:8" } ], "id": 8294, "name": "BinaryOperation", "src": "4535:9:8" } ], "id": 8295, "name": "IndexAccess", "src": "4529:16:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "member_name": "X", "referencedDeclaration": 8032, "type": "uint256[2] memory" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "struct Pairing.G2Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8204, "type": "struct Pairing.G2Point memory[] memory", "value": "p2" }, "id": 8296, "name": "Identifier", "src": "4548:2:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8239, "type": "uint256", "value": "i" }, "id": 8297, "name": "Identifier", "src": "4551:1:8" } ], "id": 8298, "name": "IndexAccess", "src": "4548:5:8" } ], "id": 8299, "name": "MemberAccess", "src": "4548:7:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "30", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 0", "value": "0" }, "id": 8300, "name": "Literal", "src": "4556:1:8" } ], "id": 8301, "name": "IndexAccess", "src": "4548:10:8" } ], "id": 8302, "name": "Assignment", "src": "4529:29:8" } ], "id": 8303, "name": "ExpressionStatement", "src": "4529:29:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8231, "type": "uint256[] memory", "value": "input" }, "id": 8304, "name": "Identifier", "src": "4572:5:8" }, { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "+", "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "*", "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8239, "type": "uint256", "value": "i" }, "id": 8305, "name": "Identifier", "src": "4578:1:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "36", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 6", "value": "6" }, "id": 8306, "name": "Literal", "src": "4582:1:8" } ], "id": 8307, "name": "BinaryOperation", "src": "4578:5:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "34", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 4", "value": "4" }, "id": 8308, "name": "Literal", "src": "4586:1:8" } ], "id": 8309, "name": "BinaryOperation", "src": "4578:9:8" } ], "id": 8310, "name": "IndexAccess", "src": "4572:16:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "member_name": "Y", "referencedDeclaration": 8036, "type": "uint256[2] memory" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "struct Pairing.G2Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8204, "type": "struct Pairing.G2Point memory[] memory", "value": "p2" }, "id": 8311, "name": "Identifier", "src": "4591:2:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8239, "type": "uint256", "value": "i" }, "id": 8312, "name": "Identifier", "src": "4594:1:8" } ], "id": 8313, "name": "IndexAccess", "src": "4591:5:8" } ], "id": 8314, "name": "MemberAccess", "src": "4591:7:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "31", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 1", "value": "1" }, "id": 8315, "name": "Literal", "src": "4599:1:8" } ], "id": 8316, "name": "IndexAccess", "src": "4591:10:8" } ], "id": 8317, "name": "Assignment", "src": "4572:29:8" } ], "id": 8318, "name": "ExpressionStatement", "src": "4572:29:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8231, "type": "uint256[] memory", "value": "input" }, "id": 8319, "name": "Identifier", "src": "4615:5:8" }, { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "+", "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "*", "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8239, "type": "uint256", "value": "i" }, "id": 8320, "name": "Identifier", "src": "4621:1:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "36", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 6", "value": "6" }, "id": 8321, "name": "Literal", "src": "4625:1:8" } ], "id": 8322, "name": "BinaryOperation", "src": "4621:5:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "35", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 5", "value": "5" }, "id": 8323, "name": "Literal", "src": "4629:1:8" } ], "id": 8324, "name": "BinaryOperation", "src": "4621:9:8" } ], "id": 8325, "name": "IndexAccess", "src": "4615:16:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "member_name": "Y", "referencedDeclaration": 8036, "type": "uint256[2] memory" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "struct Pairing.G2Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8204, "type": "struct Pairing.G2Point memory[] memory", "value": "p2" }, "id": 8326, "name": "Identifier", "src": "4634:2:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8239, "type": "uint256", "value": "i" }, "id": 8327, "name": "Identifier", "src": "4637:1:8" } ], "id": 8328, "name": "IndexAccess", "src": "4634:5:8" } ], "id": 8329, "name": "MemberAccess", "src": "4634:7:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "30", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 0", "value": "0" }, "id": 8330, "name": "Literal", "src": "4642:1:8" } ], "id": 8331, "name": "IndexAccess", "src": "4634:10:8" } ], "id": 8332, "name": "Assignment", "src": "4615:29:8" } ], "id": 8333, "name": "ExpressionStatement", "src": "4615:29:8" } ], "id": 8334, "name": "Block", "src": "4392:263:8" } ], "id": 8335, "name": "ForStatement", "src": "4353:302:8" }, { "attributes": { "assignments": [ 8340 ], "initialValue": null }, "children": [ { "attributes": { "constant": false, "name": "out", "scope": 8356, "stateVariable": false, "storageLocation": "memory", "type": "uint256[1]", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "type": "uint256[1]" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 8338, "name": "ElementaryTypeName", "src": "4664:7:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "31", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 1", "value": "1" }, "id": 8337, "name": "Literal", "src": "4672:1:8" } ], "id": 8339, "name": "ArrayTypeName", "src": "4664:10:8" } ], "id": 8340, "name": "VariableDeclaration", "src": "4664:21:8" } ], "id": 8341, "name": "VariableDeclarationStatement", "src": "4664:21:8" }, { "attributes": { "assignments": [ 8343 ], "initialValue": null }, "children": [ { "attributes": { "constant": false, "name": "success", "scope": 8356, "stateVariable": false, "storageLocation": "default", "type": "bool", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "bool", "type": "bool" }, "id": 8342, "name": "ElementaryTypeName", "src": "4695:4:8" } ], "id": 8343, "name": "VariableDeclaration", "src": "4695:12:8" } ], "id": 8344, "name": "VariableDeclarationStatement", "src": "4695:12:8" }, { "attributes": { "externalReferences": [ { "success": { "declaration": 8343, "isOffset": false, "isSlot": false, "src": "4740:7:8", "valueSize": 1 } }, { "input": { "declaration": 8231, "isOffset": false, "isSlot": false, "src": "4836:5:8", "valueSize": 1 } }, { "success": { "declaration": 8343, "isOffset": false, "isSlot": false, "src": "5020:7:8", "valueSize": 1 } }, { "inputSize": { "declaration": 8223, "isOffset": false, "isSlot": false, "src": "4870:9:8", "valueSize": 1 } }, { "out": { "declaration": 8340, "isOffset": false, "isSlot": false, "src": "4904:3:8", "valueSize": 1 } } ], "operations": "{\n success := staticcall(sub(gas(), 2000), 8, add(input, 0x20), mul(inputSize, 0x20), out, 0x20)\n switch success\n case 0 { invalid() }\n}" }, "children": [], "id": 8345, "name": "InlineAssembly", "src": "4717:381:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "tuple()", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8960, "type": "function (bool) pure", "value": "require" }, "id": 8346, "name": "Identifier", "src": "5107:7:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8343, "type": "bool", "value": "success" }, "id": 8347, "name": "Identifier", "src": "5115:7:8" } ], "id": 8348, "name": "FunctionCall", "src": "5107:16:8" } ], "id": 8349, "name": "ExpressionStatement", "src": "5107:16:8" }, { "attributes": { "functionReturnParameters": 8208 }, "children": [ { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "!=", "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8340, "type": "uint256[1] memory", "value": "out" }, "id": 8350, "name": "Identifier", "src": "5140:3:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "30", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 0", "value": "0" }, "id": 8351, "name": "Literal", "src": "5144:1:8" } ], "id": 8352, "name": "IndexAccess", "src": "5140:6:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "30", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 0", "value": "0" }, "id": 8353, "name": "Literal", "src": "5150:1:8" } ], "id": 8354, "name": "BinaryOperation", "src": "5140:11:8" } ], "id": 8355, "name": "Return", "src": "5133:18:8" } ], "id": 8356, "name": "Block", "src": "4163:995:8" } ], "id": 8357, "name": "FunctionDefinition", "src": "4047:1111:8" }, { "attributes": { "documentation": "Convenience method for a pairing check for two pairs.", "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "pairingProd2", "scope": 8595, "stateMutability": "view", "superFunction": null, "visibility": "internal" }, "children": [ { "children": [ { "attributes": { "constant": false, "name": "a1", "scope": 8420, "stateVariable": false, "storageLocation": "memory", "type": "struct Pairing.G1Point", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "contractScope": null, "name": "G1Point", "referencedDeclaration": 8028, "type": "struct Pairing.G1Point" }, "id": 8358, "name": "UserDefinedTypeName", "src": "5257:7:8" } ], "id": 8359, "name": "VariableDeclaration", "src": "5257:17:8" }, { "attributes": { "constant": false, "name": "a2", "scope": 8420, "stateVariable": false, "storageLocation": "memory", "type": "struct Pairing.G2Point", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "contractScope": null, "name": "G2Point", "referencedDeclaration": 8037, "type": "struct Pairing.G2Point" }, "id": 8360, "name": "UserDefinedTypeName", "src": "5284:7:8" } ], "id": 8361, "name": "VariableDeclaration", "src": "5284:17:8" }, { "attributes": { "constant": false, "name": "b1", "scope": 8420, "stateVariable": false, "storageLocation": "memory", "type": "struct Pairing.G1Point", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "contractScope": null, "name": "G1Point", "referencedDeclaration": 8028, "type": "struct Pairing.G1Point" }, "id": 8362, "name": "UserDefinedTypeName", "src": "5311:7:8" } ], "id": 8363, "name": "VariableDeclaration", "src": "5311:17:8" }, { "attributes": { "constant": false, "name": "b2", "scope": 8420, "stateVariable": false, "storageLocation": "memory", "type": "struct Pairing.G2Point", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "contractScope": null, "name": "G2Point", "referencedDeclaration": 8037, "type": "struct Pairing.G2Point" }, "id": 8364, "name": "UserDefinedTypeName", "src": "5338:7:8" } ], "id": 8365, "name": "VariableDeclaration", "src": "5338:17:8" } ], "id": 8366, "name": "ParameterList", "src": "5247:114:8" }, { "children": [ { "attributes": { "constant": false, "name": "", "scope": 8420, "stateVariable": false, "storageLocation": "default", "type": "bool", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "bool", "type": "bool" }, "id": 8367, "name": "ElementaryTypeName", "src": "5385:4:8" } ], "id": 8368, "name": "VariableDeclaration", "src": "5385:4:8" } ], "id": 8369, "name": "ParameterList", "src": "5384:6:8" }, { "children": [ { "attributes": { "assignments": [ 8373 ] }, "children": [ { "attributes": { "constant": false, "name": "p1", "scope": 8419, "stateVariable": false, "storageLocation": "memory", "type": "struct Pairing.G1Point[]", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "length": null, "type": "struct Pairing.G1Point[]" }, "children": [ { "attributes": { "contractScope": null, "name": "G1Point", "referencedDeclaration": 8028, "type": "struct Pairing.G1Point" }, "id": 8371, "name": "UserDefinedTypeName", "src": "5401:7:8" } ], "id": 8372, "name": "ArrayTypeName", "src": "5401:9:8" } ], "id": 8373, "name": "VariableDeclaration", "src": "5401:19:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "struct Pairing.G1Point memory[] memory", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_rational_2_by_1", "typeString": "int_const 2" } ], "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "function (uint256) pure returns (struct Pairing.G1Point memory[] memory)" }, "children": [ { "attributes": { "length": null, "type": "struct Pairing.G1Point[]" }, "children": [ { "attributes": { "contractScope": null, "name": "G1Point", "referencedDeclaration": 8028, "type": "struct Pairing.G1Point" }, "id": 8374, "name": "UserDefinedTypeName", "src": "5427:7:8" } ], "id": 8375, "name": "ArrayTypeName", "src": "5427:9:8" } ], "id": 8376, "name": "NewExpression", "src": "5423:13:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "32", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 2", "value": "2" }, "id": 8377, "name": "Literal", "src": "5437:1:8" } ], "id": 8378, "name": "FunctionCall", "src": "5423:16:8" } ], "id": 8379, "name": "VariableDeclarationStatement", "src": "5401:38:8" }, { "attributes": { "assignments": [ 8383 ] }, "children": [ { "attributes": { "constant": false, "name": "p2", "scope": 8419, "stateVariable": false, "storageLocation": "memory", "type": "struct Pairing.G2Point[]", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "length": null, "type": "struct Pairing.G2Point[]" }, "children": [ { "attributes": { "contractScope": null, "name": "G2Point", "referencedDeclaration": 8037, "type": "struct Pairing.G2Point" }, "id": 8381, "name": "UserDefinedTypeName", "src": "5449:7:8" } ], "id": 8382, "name": "ArrayTypeName", "src": "5449:9:8" } ], "id": 8383, "name": "VariableDeclaration", "src": "5449:19:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "struct Pairing.G2Point memory[] memory", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_rational_2_by_1", "typeString": "int_const 2" } ], "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "function (uint256) pure returns (struct Pairing.G2Point memory[] memory)" }, "children": [ { "attributes": { "length": null, "type": "struct Pairing.G2Point[]" }, "children": [ { "attributes": { "contractScope": null, "name": "G2Point", "referencedDeclaration": 8037, "type": "struct Pairing.G2Point" }, "id": 8384, "name": "UserDefinedTypeName", "src": "5475:7:8" } ], "id": 8385, "name": "ArrayTypeName", "src": "5475:9:8" } ], "id": 8386, "name": "NewExpression", "src": "5471:13:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "32", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 2", "value": "2" }, "id": 8387, "name": "Literal", "src": "5485:1:8" } ], "id": 8388, "name": "FunctionCall", "src": "5471:16:8" } ], "id": 8389, "name": "VariableDeclarationStatement", "src": "5449:38:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "struct Pairing.G1Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "struct Pairing.G1Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8373, "type": "struct Pairing.G1Point memory[] memory", "value": "p1" }, "id": 8390, "name": "Identifier", "src": "5497:2:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "30", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 0", "value": "0" }, "id": 8391, "name": "Literal", "src": "5500:1:8" } ], "id": 8392, "name": "IndexAccess", "src": "5497:5:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8359, "type": "struct Pairing.G1Point memory", "value": "a1" }, "id": 8393, "name": "Identifier", "src": "5505:2:8" } ], "id": 8394, "name": "Assignment", "src": "5497:10:8" } ], "id": 8395, "name": "ExpressionStatement", "src": "5497:10:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "struct Pairing.G1Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "struct Pairing.G1Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8373, "type": "struct Pairing.G1Point memory[] memory", "value": "p1" }, "id": 8396, "name": "Identifier", "src": "5517:2:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "31", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 1", "value": "1" }, "id": 8397, "name": "Literal", "src": "5520:1:8" } ], "id": 8398, "name": "IndexAccess", "src": "5517:5:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8363, "type": "struct Pairing.G1Point memory", "value": "b1" }, "id": 8399, "name": "Identifier", "src": "5525:2:8" } ], "id": 8400, "name": "Assignment", "src": "5517:10:8" } ], "id": 8401, "name": "ExpressionStatement", "src": "5517:10:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "struct Pairing.G2Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "struct Pairing.G2Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8383, "type": "struct Pairing.G2Point memory[] memory", "value": "p2" }, "id": 8402, "name": "Identifier", "src": "5537:2:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "30", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 0", "value": "0" }, "id": 8403, "name": "Literal", "src": "5540:1:8" } ], "id": 8404, "name": "IndexAccess", "src": "5537:5:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8361, "type": "struct Pairing.G2Point memory", "value": "a2" }, "id": 8405, "name": "Identifier", "src": "5545:2:8" } ], "id": 8406, "name": "Assignment", "src": "5537:10:8" } ], "id": 8407, "name": "ExpressionStatement", "src": "5537:10:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "struct Pairing.G2Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "struct Pairing.G2Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8383, "type": "struct Pairing.G2Point memory[] memory", "value": "p2" }, "id": 8408, "name": "Identifier", "src": "5557:2:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "31", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 1", "value": "1" }, "id": 8409, "name": "Literal", "src": "5560:1:8" } ], "id": 8410, "name": "IndexAccess", "src": "5557:5:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8365, "type": "struct Pairing.G2Point memory", "value": "b2" }, "id": 8411, "name": "Identifier", "src": "5565:2:8" } ], "id": 8412, "name": "Assignment", "src": "5557:10:8" } ], "id": 8413, "name": "ExpressionStatement", "src": "5557:10:8" }, { "attributes": { "functionReturnParameters": 8369 }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "bool", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G1Point memory[] memory" }, { "typeIdentifier": "t_array$_t_struct$_G2Point_$8037_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G2Point memory[] memory" } ], "overloadedDeclarations": [ null ], "referencedDeclaration": 8357, "type": "function (struct Pairing.G1Point memory[] memory,struct Pairing.G2Point memory[] memory) view returns (bool)", "value": "pairing" }, "id": 8414, "name": "Identifier", "src": "5584:7:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8373, "type": "struct Pairing.G1Point memory[] memory", "value": "p1" }, "id": 8415, "name": "Identifier", "src": "5592:2:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8383, "type": "struct Pairing.G2Point memory[] memory", "value": "p2" }, "id": 8416, "name": "Identifier", "src": "5596:2:8" } ], "id": 8417, "name": "FunctionCall", "src": "5584:15:8" } ], "id": 8418, "name": "Return", "src": "5577:22:8" } ], "id": 8419, "name": "Block", "src": "5391:215:8" } ], "id": 8420, "name": "FunctionDefinition", "src": "5226:380:8" }, { "attributes": { "documentation": "Convenience method for a pairing check for three pairs.", "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "pairingProd3", "scope": 8595, "stateMutability": "view", "superFunction": null, "visibility": "internal" }, "children": [ { "children": [ { "attributes": { "constant": false, "name": "a1", "scope": 8499, "stateVariable": false, "storageLocation": "memory", "type": "struct Pairing.G1Point", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "contractScope": null, "name": "G1Point", "referencedDeclaration": 8028, "type": "struct Pairing.G1Point" }, "id": 8421, "name": "UserDefinedTypeName", "src": "5707:7:8" } ], "id": 8422, "name": "VariableDeclaration", "src": "5707:17:8" }, { "attributes": { "constant": false, "name": "a2", "scope": 8499, "stateVariable": false, "storageLocation": "memory", "type": "struct Pairing.G2Point", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "contractScope": null, "name": "G2Point", "referencedDeclaration": 8037, "type": "struct Pairing.G2Point" }, "id": 8423, "name": "UserDefinedTypeName", "src": "5734:7:8" } ], "id": 8424, "name": "VariableDeclaration", "src": "5734:17:8" }, { "attributes": { "constant": false, "name": "b1", "scope": 8499, "stateVariable": false, "storageLocation": "memory", "type": "struct Pairing.G1Point", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "contractScope": null, "name": "G1Point", "referencedDeclaration": 8028, "type": "struct Pairing.G1Point" }, "id": 8425, "name": "UserDefinedTypeName", "src": "5761:7:8" } ], "id": 8426, "name": "VariableDeclaration", "src": "5761:17:8" }, { "attributes": { "constant": false, "name": "b2", "scope": 8499, "stateVariable": false, "storageLocation": "memory", "type": "struct Pairing.G2Point", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "contractScope": null, "name": "G2Point", "referencedDeclaration": 8037, "type": "struct Pairing.G2Point" }, "id": 8427, "name": "UserDefinedTypeName", "src": "5788:7:8" } ], "id": 8428, "name": "VariableDeclaration", "src": "5788:17:8" }, { "attributes": { "constant": false, "name": "c1", "scope": 8499, "stateVariable": false, "storageLocation": "memory", "type": "struct Pairing.G1Point", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "contractScope": null, "name": "G1Point", "referencedDeclaration": 8028, "type": "struct Pairing.G1Point" }, "id": 8429, "name": "UserDefinedTypeName", "src": "5815:7:8" } ], "id": 8430, "name": "VariableDeclaration", "src": "5815:17:8" }, { "attributes": { "constant": false, "name": "c2", "scope": 8499, "stateVariable": false, "storageLocation": "memory", "type": "struct Pairing.G2Point", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "contractScope": null, "name": "G2Point", "referencedDeclaration": 8037, "type": "struct Pairing.G2Point" }, "id": 8431, "name": "UserDefinedTypeName", "src": "5842:7:8" } ], "id": 8432, "name": "VariableDeclaration", "src": "5842:17:8" } ], "id": 8433, "name": "ParameterList", "src": "5697:168:8" }, { "children": [ { "attributes": { "constant": false, "name": "", "scope": 8499, "stateVariable": false, "storageLocation": "default", "type": "bool", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "bool", "type": "bool" }, "id": 8434, "name": "ElementaryTypeName", "src": "5889:4:8" } ], "id": 8435, "name": "VariableDeclaration", "src": "5889:4:8" } ], "id": 8436, "name": "ParameterList", "src": "5888:6:8" }, { "children": [ { "attributes": { "assignments": [ 8440 ] }, "children": [ { "attributes": { "constant": false, "name": "p1", "scope": 8498, "stateVariable": false, "storageLocation": "memory", "type": "struct Pairing.G1Point[]", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "length": null, "type": "struct Pairing.G1Point[]" }, "children": [ { "attributes": { "contractScope": null, "name": "G1Point", "referencedDeclaration": 8028, "type": "struct Pairing.G1Point" }, "id": 8438, "name": "UserDefinedTypeName", "src": "5905:7:8" } ], "id": 8439, "name": "ArrayTypeName", "src": "5905:9:8" } ], "id": 8440, "name": "VariableDeclaration", "src": "5905:19:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "struct Pairing.G1Point memory[] memory", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_rational_3_by_1", "typeString": "int_const 3" } ], "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "function (uint256) pure returns (struct Pairing.G1Point memory[] memory)" }, "children": [ { "attributes": { "length": null, "type": "struct Pairing.G1Point[]" }, "children": [ { "attributes": { "contractScope": null, "name": "G1Point", "referencedDeclaration": 8028, "type": "struct Pairing.G1Point" }, "id": 8441, "name": "UserDefinedTypeName", "src": "5931:7:8" } ], "id": 8442, "name": "ArrayTypeName", "src": "5931:9:8" } ], "id": 8443, "name": "NewExpression", "src": "5927:13:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "33", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 3", "value": "3" }, "id": 8444, "name": "Literal", "src": "5941:1:8" } ], "id": 8445, "name": "FunctionCall", "src": "5927:16:8" } ], "id": 8446, "name": "VariableDeclarationStatement", "src": "5905:38:8" }, { "attributes": { "assignments": [ 8450 ] }, "children": [ { "attributes": { "constant": false, "name": "p2", "scope": 8498, "stateVariable": false, "storageLocation": "memory", "type": "struct Pairing.G2Point[]", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "length": null, "type": "struct Pairing.G2Point[]" }, "children": [ { "attributes": { "contractScope": null, "name": "G2Point", "referencedDeclaration": 8037, "type": "struct Pairing.G2Point" }, "id": 8448, "name": "UserDefinedTypeName", "src": "5953:7:8" } ], "id": 8449, "name": "ArrayTypeName", "src": "5953:9:8" } ], "id": 8450, "name": "VariableDeclaration", "src": "5953:19:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "struct Pairing.G2Point memory[] memory", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_rational_3_by_1", "typeString": "int_const 3" } ], "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "function (uint256) pure returns (struct Pairing.G2Point memory[] memory)" }, "children": [ { "attributes": { "length": null, "type": "struct Pairing.G2Point[]" }, "children": [ { "attributes": { "contractScope": null, "name": "G2Point", "referencedDeclaration": 8037, "type": "struct Pairing.G2Point" }, "id": 8451, "name": "UserDefinedTypeName", "src": "5979:7:8" } ], "id": 8452, "name": "ArrayTypeName", "src": "5979:9:8" } ], "id": 8453, "name": "NewExpression", "src": "5975:13:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "33", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 3", "value": "3" }, "id": 8454, "name": "Literal", "src": "5989:1:8" } ], "id": 8455, "name": "FunctionCall", "src": "5975:16:8" } ], "id": 8456, "name": "VariableDeclarationStatement", "src": "5953:38:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "struct Pairing.G1Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "struct Pairing.G1Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8440, "type": "struct Pairing.G1Point memory[] memory", "value": "p1" }, "id": 8457, "name": "Identifier", "src": "6001:2:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "30", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 0", "value": "0" }, "id": 8458, "name": "Literal", "src": "6004:1:8" } ], "id": 8459, "name": "IndexAccess", "src": "6001:5:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8422, "type": "struct Pairing.G1Point memory", "value": "a1" }, "id": 8460, "name": "Identifier", "src": "6009:2:8" } ], "id": 8461, "name": "Assignment", "src": "6001:10:8" } ], "id": 8462, "name": "ExpressionStatement", "src": "6001:10:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "struct Pairing.G1Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "struct Pairing.G1Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8440, "type": "struct Pairing.G1Point memory[] memory", "value": "p1" }, "id": 8463, "name": "Identifier", "src": "6021:2:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "31", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 1", "value": "1" }, "id": 8464, "name": "Literal", "src": "6024:1:8" } ], "id": 8465, "name": "IndexAccess", "src": "6021:5:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8426, "type": "struct Pairing.G1Point memory", "value": "b1" }, "id": 8466, "name": "Identifier", "src": "6029:2:8" } ], "id": 8467, "name": "Assignment", "src": "6021:10:8" } ], "id": 8468, "name": "ExpressionStatement", "src": "6021:10:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "struct Pairing.G1Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "struct Pairing.G1Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8440, "type": "struct Pairing.G1Point memory[] memory", "value": "p1" }, "id": 8469, "name": "Identifier", "src": "6041:2:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "32", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 2", "value": "2" }, "id": 8470, "name": "Literal", "src": "6044:1:8" } ], "id": 8471, "name": "IndexAccess", "src": "6041:5:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8430, "type": "struct Pairing.G1Point memory", "value": "c1" }, "id": 8472, "name": "Identifier", "src": "6049:2:8" } ], "id": 8473, "name": "Assignment", "src": "6041:10:8" } ], "id": 8474, "name": "ExpressionStatement", "src": "6041:10:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "struct Pairing.G2Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "struct Pairing.G2Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8450, "type": "struct Pairing.G2Point memory[] memory", "value": "p2" }, "id": 8475, "name": "Identifier", "src": "6061:2:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "30", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 0", "value": "0" }, "id": 8476, "name": "Literal", "src": "6064:1:8" } ], "id": 8477, "name": "IndexAccess", "src": "6061:5:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8424, "type": "struct Pairing.G2Point memory", "value": "a2" }, "id": 8478, "name": "Identifier", "src": "6069:2:8" } ], "id": 8479, "name": "Assignment", "src": "6061:10:8" } ], "id": 8480, "name": "ExpressionStatement", "src": "6061:10:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "struct Pairing.G2Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "struct Pairing.G2Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8450, "type": "struct Pairing.G2Point memory[] memory", "value": "p2" }, "id": 8481, "name": "Identifier", "src": "6081:2:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "31", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 1", "value": "1" }, "id": 8482, "name": "Literal", "src": "6084:1:8" } ], "id": 8483, "name": "IndexAccess", "src": "6081:5:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8428, "type": "struct Pairing.G2Point memory", "value": "b2" }, "id": 8484, "name": "Identifier", "src": "6089:2:8" } ], "id": 8485, "name": "Assignment", "src": "6081:10:8" } ], "id": 8486, "name": "ExpressionStatement", "src": "6081:10:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "struct Pairing.G2Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "struct Pairing.G2Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8450, "type": "struct Pairing.G2Point memory[] memory", "value": "p2" }, "id": 8487, "name": "Identifier", "src": "6101:2:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "32", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 2", "value": "2" }, "id": 8488, "name": "Literal", "src": "6104:1:8" } ], "id": 8489, "name": "IndexAccess", "src": "6101:5:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8432, "type": "struct Pairing.G2Point memory", "value": "c2" }, "id": 8490, "name": "Identifier", "src": "6109:2:8" } ], "id": 8491, "name": "Assignment", "src": "6101:10:8" } ], "id": 8492, "name": "ExpressionStatement", "src": "6101:10:8" }, { "attributes": { "functionReturnParameters": 8436 }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "bool", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G1Point memory[] memory" }, { "typeIdentifier": "t_array$_t_struct$_G2Point_$8037_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G2Point memory[] memory" } ], "overloadedDeclarations": [ null ], "referencedDeclaration": 8357, "type": "function (struct Pairing.G1Point memory[] memory,struct Pairing.G2Point memory[] memory) view returns (bool)", "value": "pairing" }, "id": 8493, "name": "Identifier", "src": "6128:7:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8440, "type": "struct Pairing.G1Point memory[] memory", "value": "p1" }, "id": 8494, "name": "Identifier", "src": "6136:2:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8450, "type": "struct Pairing.G2Point memory[] memory", "value": "p2" }, "id": 8495, "name": "Identifier", "src": "6140:2:8" } ], "id": 8496, "name": "FunctionCall", "src": "6128:15:8" } ], "id": 8497, "name": "Return", "src": "6121:22:8" } ], "id": 8498, "name": "Block", "src": "5895:255:8" } ], "id": 8499, "name": "FunctionDefinition", "src": "5676:474:8" }, { "attributes": { "documentation": "Convenience method for a pairing check for four pairs.", "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "pairingProd4", "scope": 8595, "stateMutability": "view", "superFunction": null, "visibility": "internal" }, "children": [ { "children": [ { "attributes": { "constant": false, "name": "a1", "scope": 8594, "stateVariable": false, "storageLocation": "memory", "type": "struct Pairing.G1Point", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "contractScope": null, "name": "G1Point", "referencedDeclaration": 8028, "type": "struct Pairing.G1Point" }, "id": 8500, "name": "UserDefinedTypeName", "src": "6250:7:8" } ], "id": 8501, "name": "VariableDeclaration", "src": "6250:17:8" }, { "attributes": { "constant": false, "name": "a2", "scope": 8594, "stateVariable": false, "storageLocation": "memory", "type": "struct Pairing.G2Point", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "contractScope": null, "name": "G2Point", "referencedDeclaration": 8037, "type": "struct Pairing.G2Point" }, "id": 8502, "name": "UserDefinedTypeName", "src": "6277:7:8" } ], "id": 8503, "name": "VariableDeclaration", "src": "6277:17:8" }, { "attributes": { "constant": false, "name": "b1", "scope": 8594, "stateVariable": false, "storageLocation": "memory", "type": "struct Pairing.G1Point", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "contractScope": null, "name": "G1Point", "referencedDeclaration": 8028, "type": "struct Pairing.G1Point" }, "id": 8504, "name": "UserDefinedTypeName", "src": "6304:7:8" } ], "id": 8505, "name": "VariableDeclaration", "src": "6304:17:8" }, { "attributes": { "constant": false, "name": "b2", "scope": 8594, "stateVariable": false, "storageLocation": "memory", "type": "struct Pairing.G2Point", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "contractScope": null, "name": "G2Point", "referencedDeclaration": 8037, "type": "struct Pairing.G2Point" }, "id": 8506, "name": "UserDefinedTypeName", "src": "6331:7:8" } ], "id": 8507, "name": "VariableDeclaration", "src": "6331:17:8" }, { "attributes": { "constant": false, "name": "c1", "scope": 8594, "stateVariable": false, "storageLocation": "memory", "type": "struct Pairing.G1Point", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "contractScope": null, "name": "G1Point", "referencedDeclaration": 8028, "type": "struct Pairing.G1Point" }, "id": 8508, "name": "UserDefinedTypeName", "src": "6358:7:8" } ], "id": 8509, "name": "VariableDeclaration", "src": "6358:17:8" }, { "attributes": { "constant": false, "name": "c2", "scope": 8594, "stateVariable": false, "storageLocation": "memory", "type": "struct Pairing.G2Point", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "contractScope": null, "name": "G2Point", "referencedDeclaration": 8037, "type": "struct Pairing.G2Point" }, "id": 8510, "name": "UserDefinedTypeName", "src": "6385:7:8" } ], "id": 8511, "name": "VariableDeclaration", "src": "6385:17:8" }, { "attributes": { "constant": false, "name": "d1", "scope": 8594, "stateVariable": false, "storageLocation": "memory", "type": "struct Pairing.G1Point", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "contractScope": null, "name": "G1Point", "referencedDeclaration": 8028, "type": "struct Pairing.G1Point" }, "id": 8512, "name": "UserDefinedTypeName", "src": "6412:7:8" } ], "id": 8513, "name": "VariableDeclaration", "src": "6412:17:8" }, { "attributes": { "constant": false, "name": "d2", "scope": 8594, "stateVariable": false, "storageLocation": "memory", "type": "struct Pairing.G2Point", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "contractScope": null, "name": "G2Point", "referencedDeclaration": 8037, "type": "struct Pairing.G2Point" }, "id": 8514, "name": "UserDefinedTypeName", "src": "6439:7:8" } ], "id": 8515, "name": "VariableDeclaration", "src": "6439:17:8" } ], "id": 8516, "name": "ParameterList", "src": "6240:222:8" }, { "children": [ { "attributes": { "constant": false, "name": "", "scope": 8594, "stateVariable": false, "storageLocation": "default", "type": "bool", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "bool", "type": "bool" }, "id": 8517, "name": "ElementaryTypeName", "src": "6486:4:8" } ], "id": 8518, "name": "VariableDeclaration", "src": "6486:4:8" } ], "id": 8519, "name": "ParameterList", "src": "6485:6:8" }, { "children": [ { "attributes": { "assignments": [ 8523 ] }, "children": [ { "attributes": { "constant": false, "name": "p1", "scope": 8593, "stateVariable": false, "storageLocation": "memory", "type": "struct Pairing.G1Point[]", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "length": null, "type": "struct Pairing.G1Point[]" }, "children": [ { "attributes": { "contractScope": null, "name": "G1Point", "referencedDeclaration": 8028, "type": "struct Pairing.G1Point" }, "id": 8521, "name": "UserDefinedTypeName", "src": "6502:7:8" } ], "id": 8522, "name": "ArrayTypeName", "src": "6502:9:8" } ], "id": 8523, "name": "VariableDeclaration", "src": "6502:19:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "struct Pairing.G1Point memory[] memory", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_rational_4_by_1", "typeString": "int_const 4" } ], "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "function (uint256) pure returns (struct Pairing.G1Point memory[] memory)" }, "children": [ { "attributes": { "length": null, "type": "struct Pairing.G1Point[]" }, "children": [ { "attributes": { "contractScope": null, "name": "G1Point", "referencedDeclaration": 8028, "type": "struct Pairing.G1Point" }, "id": 8524, "name": "UserDefinedTypeName", "src": "6528:7:8" } ], "id": 8525, "name": "ArrayTypeName", "src": "6528:9:8" } ], "id": 8526, "name": "NewExpression", "src": "6524:13:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "34", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 4", "value": "4" }, "id": 8527, "name": "Literal", "src": "6538:1:8" } ], "id": 8528, "name": "FunctionCall", "src": "6524:16:8" } ], "id": 8529, "name": "VariableDeclarationStatement", "src": "6502:38:8" }, { "attributes": { "assignments": [ 8533 ] }, "children": [ { "attributes": { "constant": false, "name": "p2", "scope": 8593, "stateVariable": false, "storageLocation": "memory", "type": "struct Pairing.G2Point[]", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "length": null, "type": "struct Pairing.G2Point[]" }, "children": [ { "attributes": { "contractScope": null, "name": "G2Point", "referencedDeclaration": 8037, "type": "struct Pairing.G2Point" }, "id": 8531, "name": "UserDefinedTypeName", "src": "6550:7:8" } ], "id": 8532, "name": "ArrayTypeName", "src": "6550:9:8" } ], "id": 8533, "name": "VariableDeclaration", "src": "6550:19:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "struct Pairing.G2Point memory[] memory", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_rational_4_by_1", "typeString": "int_const 4" } ], "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "function (uint256) pure returns (struct Pairing.G2Point memory[] memory)" }, "children": [ { "attributes": { "length": null, "type": "struct Pairing.G2Point[]" }, "children": [ { "attributes": { "contractScope": null, "name": "G2Point", "referencedDeclaration": 8037, "type": "struct Pairing.G2Point" }, "id": 8534, "name": "UserDefinedTypeName", "src": "6576:7:8" } ], "id": 8535, "name": "ArrayTypeName", "src": "6576:9:8" } ], "id": 8536, "name": "NewExpression", "src": "6572:13:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "34", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 4", "value": "4" }, "id": 8537, "name": "Literal", "src": "6586:1:8" } ], "id": 8538, "name": "FunctionCall", "src": "6572:16:8" } ], "id": 8539, "name": "VariableDeclarationStatement", "src": "6550:38:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "struct Pairing.G1Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "struct Pairing.G1Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8523, "type": "struct Pairing.G1Point memory[] memory", "value": "p1" }, "id": 8540, "name": "Identifier", "src": "6598:2:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "30", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 0", "value": "0" }, "id": 8541, "name": "Literal", "src": "6601:1:8" } ], "id": 8542, "name": "IndexAccess", "src": "6598:5:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8501, "type": "struct Pairing.G1Point memory", "value": "a1" }, "id": 8543, "name": "Identifier", "src": "6606:2:8" } ], "id": 8544, "name": "Assignment", "src": "6598:10:8" } ], "id": 8545, "name": "ExpressionStatement", "src": "6598:10:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "struct Pairing.G1Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "struct Pairing.G1Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8523, "type": "struct Pairing.G1Point memory[] memory", "value": "p1" }, "id": 8546, "name": "Identifier", "src": "6618:2:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "31", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 1", "value": "1" }, "id": 8547, "name": "Literal", "src": "6621:1:8" } ], "id": 8548, "name": "IndexAccess", "src": "6618:5:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8505, "type": "struct Pairing.G1Point memory", "value": "b1" }, "id": 8549, "name": "Identifier", "src": "6626:2:8" } ], "id": 8550, "name": "Assignment", "src": "6618:10:8" } ], "id": 8551, "name": "ExpressionStatement", "src": "6618:10:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "struct Pairing.G1Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "struct Pairing.G1Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8523, "type": "struct Pairing.G1Point memory[] memory", "value": "p1" }, "id": 8552, "name": "Identifier", "src": "6638:2:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "32", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 2", "value": "2" }, "id": 8553, "name": "Literal", "src": "6641:1:8" } ], "id": 8554, "name": "IndexAccess", "src": "6638:5:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8509, "type": "struct Pairing.G1Point memory", "value": "c1" }, "id": 8555, "name": "Identifier", "src": "6646:2:8" } ], "id": 8556, "name": "Assignment", "src": "6638:10:8" } ], "id": 8557, "name": "ExpressionStatement", "src": "6638:10:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "struct Pairing.G1Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "struct Pairing.G1Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8523, "type": "struct Pairing.G1Point memory[] memory", "value": "p1" }, "id": 8558, "name": "Identifier", "src": "6658:2:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "33", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 3", "value": "3" }, "id": 8559, "name": "Literal", "src": "6661:1:8" } ], "id": 8560, "name": "IndexAccess", "src": "6658:5:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8513, "type": "struct Pairing.G1Point memory", "value": "d1" }, "id": 8561, "name": "Identifier", "src": "6666:2:8" } ], "id": 8562, "name": "Assignment", "src": "6658:10:8" } ], "id": 8563, "name": "ExpressionStatement", "src": "6658:10:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "struct Pairing.G2Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "struct Pairing.G2Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8533, "type": "struct Pairing.G2Point memory[] memory", "value": "p2" }, "id": 8564, "name": "Identifier", "src": "6678:2:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "30", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 0", "value": "0" }, "id": 8565, "name": "Literal", "src": "6681:1:8" } ], "id": 8566, "name": "IndexAccess", "src": "6678:5:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8503, "type": "struct Pairing.G2Point memory", "value": "a2" }, "id": 8567, "name": "Identifier", "src": "6686:2:8" } ], "id": 8568, "name": "Assignment", "src": "6678:10:8" } ], "id": 8569, "name": "ExpressionStatement", "src": "6678:10:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "struct Pairing.G2Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "struct Pairing.G2Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8533, "type": "struct Pairing.G2Point memory[] memory", "value": "p2" }, "id": 8570, "name": "Identifier", "src": "6698:2:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "31", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 1", "value": "1" }, "id": 8571, "name": "Literal", "src": "6701:1:8" } ], "id": 8572, "name": "IndexAccess", "src": "6698:5:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8507, "type": "struct Pairing.G2Point memory", "value": "b2" }, "id": 8573, "name": "Identifier", "src": "6706:2:8" } ], "id": 8574, "name": "Assignment", "src": "6698:10:8" } ], "id": 8575, "name": "ExpressionStatement", "src": "6698:10:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "struct Pairing.G2Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "struct Pairing.G2Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8533, "type": "struct Pairing.G2Point memory[] memory", "value": "p2" }, "id": 8576, "name": "Identifier", "src": "6718:2:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "32", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 2", "value": "2" }, "id": 8577, "name": "Literal", "src": "6721:1:8" } ], "id": 8578, "name": "IndexAccess", "src": "6718:5:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8511, "type": "struct Pairing.G2Point memory", "value": "c2" }, "id": 8579, "name": "Identifier", "src": "6726:2:8" } ], "id": 8580, "name": "Assignment", "src": "6718:10:8" } ], "id": 8581, "name": "ExpressionStatement", "src": "6718:10:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "struct Pairing.G2Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "struct Pairing.G2Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8533, "type": "struct Pairing.G2Point memory[] memory", "value": "p2" }, "id": 8582, "name": "Identifier", "src": "6738:2:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "33", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 3", "value": "3" }, "id": 8583, "name": "Literal", "src": "6741:1:8" } ], "id": 8584, "name": "IndexAccess", "src": "6738:5:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8515, "type": "struct Pairing.G2Point memory", "value": "d2" }, "id": 8585, "name": "Identifier", "src": "6746:2:8" } ], "id": 8586, "name": "Assignment", "src": "6738:10:8" } ], "id": 8587, "name": "ExpressionStatement", "src": "6738:10:8" }, { "attributes": { "functionReturnParameters": 8519 }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "bool", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_array$_t_struct$_G1Point_$8028_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G1Point memory[] memory" }, { "typeIdentifier": "t_array$_t_struct$_G2Point_$8037_memory_$dyn_memory_ptr", "typeString": "struct Pairing.G2Point memory[] memory" } ], "overloadedDeclarations": [ null ], "referencedDeclaration": 8357, "type": "function (struct Pairing.G1Point memory[] memory,struct Pairing.G2Point memory[] memory) view returns (bool)", "value": "pairing" }, "id": 8588, "name": "Identifier", "src": "6765:7:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8523, "type": "struct Pairing.G1Point memory[] memory", "value": "p1" }, "id": 8589, "name": "Identifier", "src": "6773:2:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8533, "type": "struct Pairing.G2Point memory[] memory", "value": "p2" }, "id": 8590, "name": "Identifier", "src": "6777:2:8" } ], "id": 8591, "name": "FunctionCall", "src": "6765:15:8" } ], "id": 8592, "name": "Return", "src": "6758:22:8" } ], "id": 8593, "name": "Block", "src": "6492:295:8" } ], "id": 8594, "name": "FunctionDefinition", "src": "6219:568:8" } ], "id": 8595, "name": "ContractDefinition", "src": "1163:5626:8" }, { "attributes": { "baseContracts": [ null ], "contractDependencies": [ null ], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "linearizedBaseContracts": [ 8942 ], "name": "SquareVerifier", "scope": 8943 }, "children": [ { "attributes": { "typeName": null }, "children": [ { "attributes": { "contractScope": null, "name": "Pairing", "referencedDeclaration": 8595, "type": "library Pairing" }, "id": 8596, "name": "UserDefinedTypeName", "src": "6827:7:8" } ], "id": 8597, "name": "UsingForDirective", "src": "6821:20:8" }, { "attributes": { "canonicalName": "SquareVerifier.VerifyingKey", "name": "VerifyingKey", "scope": 8942, "visibility": "public" }, "children": [ { "attributes": { "constant": false, "name": "alpha", "scope": 8609, "stateVariable": false, "storageLocation": "default", "type": "struct Pairing.G1Point", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "contractScope": null, "name": "Pairing.G1Point", "referencedDeclaration": 8028, "type": "struct Pairing.G1Point" }, "id": 8598, "name": "UserDefinedTypeName", "src": "6876:15:8" } ], "id": 8599, "name": "VariableDeclaration", "src": "6876:21:8" }, { "attributes": { "constant": false, "name": "beta", "scope": 8609, "stateVariable": false, "storageLocation": "default", "type": "struct Pairing.G2Point", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "contractScope": null, "name": "Pairing.G2Point", "referencedDeclaration": 8037, "type": "struct Pairing.G2Point" }, "id": 8600, "name": "UserDefinedTypeName", "src": "6907:15:8" } ], "id": 8601, "name": "VariableDeclaration", "src": "6907:20:8" }, { "attributes": { "constant": false, "name": "gamma", "scope": 8609, "stateVariable": false, "storageLocation": "default", "type": "struct Pairing.G2Point", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "contractScope": null, "name": "Pairing.G2Point", "referencedDeclaration": 8037, "type": "struct Pairing.G2Point" }, "id": 8602, "name": "UserDefinedTypeName", "src": "6937:15:8" } ], "id": 8603, "name": "VariableDeclaration", "src": "6937:21:8" }, { "attributes": { "constant": false, "name": "delta", "scope": 8609, "stateVariable": false, "storageLocation": "default", "type": "struct Pairing.G2Point", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "contractScope": null, "name": "Pairing.G2Point", "referencedDeclaration": 8037, "type": "struct Pairing.G2Point" }, "id": 8604, "name": "UserDefinedTypeName", "src": "6968:15:8" } ], "id": 8605, "name": "VariableDeclaration", "src": "6968:21:8" }, { "attributes": { "constant": false, "name": "gamma_abc", "scope": 8609, "stateVariable": false, "storageLocation": "default", "type": "struct Pairing.G1Point[]", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "length": null, "type": "struct Pairing.G1Point[]" }, "children": [ { "attributes": { "contractScope": null, "name": "Pairing.G1Point", "referencedDeclaration": 8028, "type": "struct Pairing.G1Point" }, "id": 8606, "name": "UserDefinedTypeName", "src": "6999:15:8" } ], "id": 8607, "name": "ArrayTypeName", "src": "6999:17:8" } ], "id": 8608, "name": "VariableDeclaration", "src": "6999:27:8" } ], "id": 8609, "name": "StructDefinition", "src": "6846:187:8" }, { "attributes": { "canonicalName": "SquareVerifier.Proof", "name": "Proof", "scope": 8942, "visibility": "public" }, "children": [ { "attributes": { "constant": false, "name": "a", "scope": 8616, "stateVariable": false, "storageLocation": "default", "type": "struct Pairing.G1Point", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "contractScope": null, "name": "Pairing.G1Point", "referencedDeclaration": 8028, "type": "struct Pairing.G1Point" }, "id": 8610, "name": "UserDefinedTypeName", "src": "7061:15:8" } ], "id": 8611, "name": "VariableDeclaration", "src": "7061:17:8" }, { "attributes": { "constant": false, "name": "b", "scope": 8616, "stateVariable": false, "storageLocation": "default", "type": "struct Pairing.G2Point", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "contractScope": null, "name": "Pairing.G2Point", "referencedDeclaration": 8037, "type": "struct Pairing.G2Point" }, "id": 8612, "name": "UserDefinedTypeName", "src": "7088:15:8" } ], "id": 8613, "name": "VariableDeclaration", "src": "7088:17:8" }, { "attributes": { "constant": false, "name": "c", "scope": 8616, "stateVariable": false, "storageLocation": "default", "type": "struct Pairing.G1Point", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "contractScope": null, "name": "Pairing.G1Point", "referencedDeclaration": 8028, "type": "struct Pairing.G1Point" }, "id": 8614, "name": "UserDefinedTypeName", "src": "7115:15:8" } ], "id": 8615, "name": "VariableDeclaration", "src": "7115:17:8" } ], "id": 8616, "name": "StructDefinition", "src": "7038:101:8" }, { "attributes": { "documentation": null, "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "verifyingKey", "scope": 8942, "stateMutability": "pure", "superFunction": null, "visibility": "internal" }, "children": [ { "attributes": { "parameters": [ null ] }, "children": [], "id": 8617, "name": "ParameterList", "src": "7166:2:8" }, { "children": [ { "attributes": { "constant": false, "name": "vk", "scope": 8760, "stateVariable": false, "storageLocation": "memory", "type": "struct SquareVerifier.VerifyingKey", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "contractScope": null, "name": "VerifyingKey", "referencedDeclaration": 8609, "type": "struct SquareVerifier.VerifyingKey" }, "id": 8618, "name": "UserDefinedTypeName", "src": "7192:12:8" } ], "id": 8619, "name": "VariableDeclaration", "src": "7192:22:8" } ], "id": 8620, "name": "ParameterList", "src": "7191:24:8" }, { "children": [ { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "struct Pairing.G1Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "member_name": "alpha", "referencedDeclaration": 8599, "type": "struct Pairing.G1Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8619, "type": "struct SquareVerifier.VerifyingKey memory", "value": "vk" }, "id": 8621, "name": "Identifier", "src": "7226:2:8" } ], "id": 8623, "name": "MemberAccess", "src": "7226:8:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": true, "lValueRequested": false, "names": [ null ], "type": "struct Pairing.G1Point memory", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "member_name": "G1Point", "referencedDeclaration": 8028, "type": "type(struct Pairing.G1Point storage pointer)" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8595, "type": "type(library Pairing)", "value": "Pairing" }, "id": 8624, "name": "Identifier", "src": "7237:7:8" } ], "id": 8625, "name": "MemberAccess", "src": "7237:15:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "uint256", "type_conversion": true }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_rational_5367683041363671670259095296341188023653179576849008337398209941243878922726_by_1", "typeString": "int_const 5367...(68 digits omitted)...2726" } ], "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "type(uint256)", "value": "uint256" }, "id": 8626, "name": "ElementaryTypeNameExpression", "src": "7266:7:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "307830626465303033643835303865346265643562323765316234386539663466666261363263616565653834303030393365363166363330336166333335396536", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 5367...(68 digits omitted)...2726", "value": "0x0bde003d8508e4bed5b27e1b48e9f4ffba62caeee8400093e61f6303af3359e6" }, "id": 8627, "name": "Literal", "src": "7291:66:8" } ], "id": 8628, "name": "FunctionCall", "src": "7266:105:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "uint256", "type_conversion": true }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_rational_1520212607887864056705833893502993764124167484168040781465011384848142670156_by_1", "typeString": "int_const 1520...(68 digits omitted)...0156" } ], "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "type(uint256)", "value": "uint256" }, "id": 8629, "name": "ElementaryTypeNameExpression", "src": "7385:7:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "307830333563363865623865323834616238383736323833353032633537313138633564616461653039316563386334363735326662323862313238323139393463", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 1520...(68 digits omitted)...0156", "value": "0x035c68eb8e284ab8876283502c57118c5dadae091ec8c46752fb28b12821994c" }, "id": 8630, "name": "Literal", "src": "7410:66:8" } ], "id": 8631, "name": "FunctionCall", "src": "7385:105:8" } ], "id": 8632, "name": "FunctionCall", "src": "7237:263:8" } ], "id": 8633, "name": "Assignment", "src": "7226:274:8" } ], "id": 8634, "name": "ExpressionStatement", "src": "7226:274:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "struct Pairing.G2Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "member_name": "beta", "referencedDeclaration": 8601, "type": "struct Pairing.G2Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8619, "type": "struct SquareVerifier.VerifyingKey memory", "value": "vk" }, "id": 8635, "name": "Identifier", "src": "7510:2:8" } ], "id": 8637, "name": "MemberAccess", "src": "7510:7:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": true, "lValueRequested": false, "names": [ null ], "type": "struct Pairing.G2Point memory", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_array$_t_uint256_$2_memory_ptr", "typeString": "uint256[2] memory" }, { "typeIdentifier": "t_array$_t_uint256_$2_memory_ptr", "typeString": "uint256[2] memory" } ], "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "member_name": "G2Point", "referencedDeclaration": 8037, "type": "type(struct Pairing.G2Point storage pointer)" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8595, "type": "type(library Pairing)", "value": "Pairing" }, "id": 8638, "name": "Identifier", "src": "7520:7:8" } ], "id": 8639, "name": "MemberAccess", "src": "7520:15:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isInlineArray": true, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "uint256[2] memory" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "uint256", "type_conversion": true }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_rational_6116537660320800993939168638987757619557266445552388698090253827144542039591_by_1", "typeString": "int_const 6116...(68 digits omitted)...9591" } ], "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "type(uint256)", "value": "uint256" }, "id": 8640, "name": "ElementaryTypeNameExpression", "src": "7567:7:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "307830643835643636663162313133616232653961616537336264663834353930343464373433363564366362326665663766336634363437636365326661653237", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 6116...(68 digits omitted)...9591", "value": "0x0d85d66f1b113ab2e9aae73bdf8459044d74365d6cb2fef7f3f4647cce2fae27" }, "id": 8641, "name": "Literal", "src": "7596:66:8" } ], "id": 8642, "name": "FunctionCall", "src": "7567:113:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "uint256", "type_conversion": true }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_rational_19800990066419458026595056229484103579091785218925870089985597783412433750325_by_1", "typeString": "int_const 1980...(69 digits omitted)...0325" } ], "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "type(uint256)", "value": "uint256" }, "id": 8643, "name": "ElementaryTypeNameExpression", "src": "7698:7:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "307832626336663639353730636438333039623038613531633763383336616537646665323138616666353134326239383863353839316364613132323030393335", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 1980...(69 digits omitted)...0325", "value": "0x2bc6f69570cd8309b08a51c7c836ae7dfe218aff5142b988c5891cda12200935" }, "id": 8644, "name": "Literal", "src": "7727:66:8" } ], "id": 8645, "name": "FunctionCall", "src": "7698:113:8" } ], "id": 8646, "name": "TupleExpression", "src": "7549:276:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isInlineArray": true, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "uint256[2] memory" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "uint256", "type_conversion": true }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_rational_13998068492681721975620990211935029711745368467882478796126595165989423333054_by_1", "typeString": "int_const 1399...(69 digits omitted)...3054" } ], "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "type(uint256)", "value": "uint256" }, "id": 8647, "name": "ElementaryTypeNameExpression", "src": "7857:7:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "307831656632613034313832306238376561343730383033623235313830323531613230333065323536303130383033373365393166363134396230623062656265", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 1399...(69 digits omitted)...3054", "value": "0x1ef2a041820b87ea470803b25180251a2030e25601080373e91f6149b0b0bebe" }, "id": 8648, "name": "Literal", "src": "7886:66:8" } ], "id": 8649, "name": "FunctionCall", "src": "7857:113:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "uint256", "type_conversion": true }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_rational_13361325803078416461973352578645720291606868658940749178385985524652960970620_by_1", "typeString": "int_const 1336...(69 digits omitted)...0620" } ], "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "type(uint256)", "value": "uint256" }, "id": 8650, "name": "ElementaryTypeNameExpression", "src": "7988:7:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "307831643861336530653830346361663662313961333236613664623632323864633262373230653765623734303565643335376537633137623365633466373763", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 1336...(69 digits omitted)...0620", "value": "0x1d8a3e0e804caf6b19a326a6db6228dc2b720e7eb7405ed357e7c17b3ec4f77c" }, "id": 8651, "name": "Literal", "src": "8017:66:8" } ], "id": 8652, "name": "FunctionCall", "src": "7988:113:8" } ], "id": 8653, "name": "TupleExpression", "src": "7839:276:8" } ], "id": 8654, "name": "FunctionCall", "src": "7520:605:8" } ], "id": 8655, "name": "Assignment", "src": "7510:615:8" } ], "id": 8656, "name": "ExpressionStatement", "src": "7510:615:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "struct Pairing.G2Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "member_name": "gamma", "referencedDeclaration": 8603, "type": "struct Pairing.G2Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8619, "type": "struct SquareVerifier.VerifyingKey memory", "value": "vk" }, "id": 8657, "name": "Identifier", "src": "8135:2:8" } ], "id": 8659, "name": "MemberAccess", "src": "8135:8:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": true, "lValueRequested": false, "names": [ null ], "type": "struct Pairing.G2Point memory", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_array$_t_uint256_$2_memory_ptr", "typeString": "uint256[2] memory" }, { "typeIdentifier": "t_array$_t_uint256_$2_memory_ptr", "typeString": "uint256[2] memory" } ], "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "member_name": "G2Point", "referencedDeclaration": 8037, "type": "type(struct Pairing.G2Point storage pointer)" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8595, "type": "type(library Pairing)", "value": "Pairing" }, "id": 8660, "name": "Identifier", "src": "8146:7:8" } ], "id": 8661, "name": "MemberAccess", "src": "8146:15:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isInlineArray": true, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "uint256[2] memory" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "uint256", "type_conversion": true }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_rational_19350290003505857449718978110818224854150271501332079148963058789061275313443_by_1", "typeString": "int_const 1935...(69 digits omitted)...3443" } ], "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "type(uint256)", "value": "uint256" }, "id": 8662, "name": "ElementaryTypeNameExpression", "src": "8193:7:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "307832616337653034326663363337333966613364363865346362373032633463393338643939396137633361656333323463316462613234313261616136353233", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 1935...(69 digits omitted)...3443", "value": "0x2ac7e042fc63739fa3d68e4cb702c4c938d999a7c3aec324c1dba2412aaa6523" }, "id": 8663, "name": "Literal", "src": "8222:66:8" } ], "id": 8664, "name": "FunctionCall", "src": "8193:113:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "uint256", "type_conversion": true }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_rational_5738052450771237150269347576361897104533383470667790634401814318628458730914_by_1", "typeString": "int_const 5738...(68 digits omitted)...0914" } ], "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "type(uint256)", "value": "uint256" }, "id": 8665, "name": "ElementaryTypeNameExpression", "src": "8324:7:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "307830636166396636323666303537353863643635363936333934666339323035626634363264346630363062613638303562333032656534336331323831356132", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 5738...(68 digits omitted)...0914", "value": "0x0caf9f626f05758cd65696394fc9205bf462d4f060ba6805b302ee43c12815a2" }, "id": 8666, "name": "Literal", "src": "8353:66:8" } ], "id": 8667, "name": "FunctionCall", "src": "8324:113:8" } ], "id": 8668, "name": "TupleExpression", "src": "8175:276:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isInlineArray": true, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "uint256[2] memory" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "uint256", "type_conversion": true }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_rational_397688613800721574760982494338894897390618094972159742411484710266202839137_by_1", "typeString": "int_const 3976...(67 digits omitted)...9137" } ], "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "type(uint256)", "value": "uint256" }, "id": 8669, "name": "ElementaryTypeNameExpression", "src": "8483:7:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "307830306531313537323836306665326636656138373438376434643164346136303137633164313964623537663036613733373232333933626134346435383631", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 3976...(67 digits omitted)...9137", "value": "0x00e11572860fe2f6ea87487d4d1d4a6017c1d19db57f06a73722393ba44d5861" }, "id": 8670, "name": "Literal", "src": "8512:66:8" } ], "id": 8671, "name": "FunctionCall", "src": "8483:113:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "uint256", "type_conversion": true }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_rational_2845321664162445453932815010296644323680701676993815136995337475375625370606_by_1", "typeString": "int_const 2845...(68 digits omitted)...0606" } ], "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "type(uint256)", "value": "uint256" }, "id": 8672, "name": "ElementaryTypeNameExpression", "src": "8614:7:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "307830363461363531653263383835326139393766636339643532373934663764626338393766333539326233666661303730343961663532393432343337626565", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 2845...(68 digits omitted)...0606", "value": "0x064a651e2c8852a997fcc9d52794f7dbc897f3592b3ffa07049af52942437bee" }, "id": 8673, "name": "Literal", "src": "8643:66:8" } ], "id": 8674, "name": "FunctionCall", "src": "8614:113:8" } ], "id": 8675, "name": "TupleExpression", "src": "8465:276:8" } ], "id": 8676, "name": "FunctionCall", "src": "8146:605:8" } ], "id": 8677, "name": "Assignment", "src": "8135:616:8" } ], "id": 8678, "name": "ExpressionStatement", "src": "8135:616:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "struct Pairing.G2Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "member_name": "delta", "referencedDeclaration": 8605, "type": "struct Pairing.G2Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8619, "type": "struct SquareVerifier.VerifyingKey memory", "value": "vk" }, "id": 8679, "name": "Identifier", "src": "8761:2:8" } ], "id": 8681, "name": "MemberAccess", "src": "8761:8:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": true, "lValueRequested": false, "names": [ null ], "type": "struct Pairing.G2Point memory", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_array$_t_uint256_$2_memory_ptr", "typeString": "uint256[2] memory" }, { "typeIdentifier": "t_array$_t_uint256_$2_memory_ptr", "typeString": "uint256[2] memory" } ], "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "member_name": "G2Point", "referencedDeclaration": 8037, "type": "type(struct Pairing.G2Point storage pointer)" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8595, "type": "type(library Pairing)", "value": "Pairing" }, "id": 8682, "name": "Identifier", "src": "8772:7:8" } ], "id": 8683, "name": "MemberAccess", "src": "8772:15:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isInlineArray": true, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "uint256[2] memory" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "uint256", "type_conversion": true }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_rational_7286660873967023741770113746043839046317885232634639656980408101047627483075_by_1", "typeString": "int_const 7286...(68 digits omitted)...3075" } ], "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "type(uint256)", "value": "uint256" }, "id": 8684, "name": "ElementaryTypeNameExpression", "src": "8819:7:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "307831303163316139393531323139346361643836363434646463316536663662653639666232323862343462353264333463386266613032633463316430376333", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 7286...(68 digits omitted)...3075", "value": "0x101c1a99512194cad86644ddc1e6f6be69fb228b44b52d34c8bfa02c4c1d07c3" }, "id": 8685, "name": "Literal", "src": "8848:66:8" } ], "id": 8686, "name": "FunctionCall", "src": "8819:113:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "uint256", "type_conversion": true }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_rational_18977974206571185256403973522670350763703946475460828814353096171012184656008_by_1", "typeString": "int_const 1897...(69 digits omitted)...6008" } ], "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "type(uint256)", "value": "uint256" }, "id": 8687, "name": "ElementaryTypeNameExpression", "src": "8950:7:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "307832396635323731613862633735633739373862363762343065386237653563343561396536653561636636633866363739636265353266386238393863383838", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 1897...(69 digits omitted)...6008", "value": "0x29f5271a8bc75c7978b67b40e8b7e5c45a9e6e5acf6c8f679cbe52f8b898c888" }, "id": 8688, "name": "Literal", "src": "8979:66:8" } ], "id": 8689, "name": "FunctionCall", "src": "8950:113:8" } ], "id": 8690, "name": "TupleExpression", "src": "8801:276:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isInlineArray": true, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "uint256[2] memory" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "uint256", "type_conversion": true }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_rational_19666938832267936563837004080917227839809300097921770501137060737092472608120_by_1", "typeString": "int_const 1966...(69 digits omitted)...8120" } ], "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "type(uint256)", "value": "uint256" }, "id": 8691, "name": "ElementaryTypeNameExpression", "src": "9109:7:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "307832623762313763386431383361393162383063653334646266663332376166633738303838393238633366633963313066313535613864386333323931353738", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 1966...(69 digits omitted)...8120", "value": "0x2b7b17c8d183a91b80ce34dbff327afc78088928c3fc9c10f155a8d8c3291578" }, "id": 8692, "name": "Literal", "src": "9138:66:8" } ], "id": 8693, "name": "FunctionCall", "src": "9109:113:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "uint256", "type_conversion": true }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_rational_2569799677506338333551997999797653654909840647357947313833514140547910174859_by_1", "typeString": "int_const 2569...(68 digits omitted)...4859" } ], "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "type(uint256)", "value": "uint256" }, "id": 8694, "name": "ElementaryTypeNameExpression", "src": "9240:7:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "307830356165373437666232636230396436656261336634346462366331643962646334383536626461333636333136623430313931663433643662643338383862", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 2569...(68 digits omitted)...4859", "value": "0x05ae747fb2cb09d6eba3f44db6c1d9bdc4856bda366316b40191f43d6bd3888b" }, "id": 8695, "name": "Literal", "src": "9269:66:8" } ], "id": 8696, "name": "FunctionCall", "src": "9240:113:8" } ], "id": 8697, "name": "TupleExpression", "src": "9091:276:8" } ], "id": 8698, "name": "FunctionCall", "src": "8772:605:8" } ], "id": 8699, "name": "Assignment", "src": "8761:616:8" } ], "id": 8700, "name": "ExpressionStatement", "src": "8761:616:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "struct Pairing.G1Point memory[] memory" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "member_name": "gamma_abc", "referencedDeclaration": 8608, "type": "struct Pairing.G1Point memory[] memory" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8619, "type": "struct SquareVerifier.VerifyingKey memory", "value": "vk" }, "id": 8701, "name": "Identifier", "src": "9387:2:8" } ], "id": 8703, "name": "MemberAccess", "src": "9387:12:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "struct Pairing.G1Point memory[] memory", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_rational_3_by_1", "typeString": "int_const 3" } ], "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "function (uint256) pure returns (struct Pairing.G1Point memory[] memory)" }, "children": [ { "attributes": { "length": null, "type": "struct Pairing.G1Point[]" }, "children": [ { "attributes": { "contractScope": null, "name": "Pairing.G1Point", "referencedDeclaration": 8028, "type": "struct Pairing.G1Point" }, "id": 8704, "name": "UserDefinedTypeName", "src": "9406:15:8" } ], "id": 8705, "name": "ArrayTypeName", "src": "9406:17:8" } ], "id": 8706, "name": "NewExpression", "src": "9402:21:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "33", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 3", "value": "3" }, "id": 8707, "name": "Literal", "src": "9424:1:8" } ], "id": 8708, "name": "FunctionCall", "src": "9402:24:8" } ], "id": 8709, "name": "Assignment", "src": "9387:39:8" } ], "id": 8710, "name": "ExpressionStatement", "src": "9387:39:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "struct Pairing.G1Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "struct Pairing.G1Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "member_name": "gamma_abc", "referencedDeclaration": 8608, "type": "struct Pairing.G1Point memory[] memory" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8619, "type": "struct SquareVerifier.VerifyingKey memory", "value": "vk" }, "id": 8711, "name": "Identifier", "src": "9436:2:8" } ], "id": 8714, "name": "MemberAccess", "src": "9436:12:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "30", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 0", "value": "0" }, "id": 8713, "name": "Literal", "src": "9449:1:8" } ], "id": 8715, "name": "IndexAccess", "src": "9436:15:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": true, "lValueRequested": false, "names": [ null ], "type": "struct Pairing.G1Point memory", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "member_name": "G1Point", "referencedDeclaration": 8028, "type": "type(struct Pairing.G1Point storage pointer)" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8595, "type": "type(library Pairing)", "value": "Pairing" }, "id": 8716, "name": "Identifier", "src": "9454:7:8" } ], "id": 8717, "name": "MemberAccess", "src": "9454:15:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "uint256", "type_conversion": true }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_rational_20909244675356630489249238499901390293761749452673048846406261800587359337520_by_1", "typeString": "int_const 2090...(69 digits omitted)...7520" } ], "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "type(uint256)", "value": "uint256" }, "id": 8718, "name": "ElementaryTypeNameExpression", "src": "9483:7:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "307832653361333638643866383432376636313539616162343334323435343339393338663436373834376262623563633066316363363861373838653262633330", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 2090...(69 digits omitted)...7520", "value": "0x2e3a368d8f8427f6159aab434245439938f467847bbb5cc0f1cc68a788e2bc30" }, "id": 8719, "name": "Literal", "src": "9508:66:8" } ], "id": 8720, "name": "FunctionCall", "src": "9483:105:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "uint256", "type_conversion": true }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_rational_7157458842497821014951654285127909069091881454006887621866040795680497089419_by_1", "typeString": "int_const 7157...(68 digits omitted)...9419" } ], "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "type(uint256)", "value": "uint256" }, "id": 8721, "name": "ElementaryTypeNameExpression", "src": "9602:7:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "307830666432666136373965366366323535386332363761633535663230386431323233353130653762383864636365353235393033396166623964636533623862", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 7157...(68 digits omitted)...9419", "value": "0x0fd2fa679e6cf2558c267ac55f208d1223510e7b88dcce5259039afb9dce3b8b" }, "id": 8722, "name": "Literal", "src": "9627:66:8" } ], "id": 8723, "name": "FunctionCall", "src": "9602:105:8" } ], "id": 8724, "name": "FunctionCall", "src": "9454:263:8" } ], "id": 8725, "name": "Assignment", "src": "9436:281:8" } ], "id": 8726, "name": "ExpressionStatement", "src": "9436:281:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "struct Pairing.G1Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "struct Pairing.G1Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "member_name": "gamma_abc", "referencedDeclaration": 8608, "type": "struct Pairing.G1Point memory[] memory" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8619, "type": "struct SquareVerifier.VerifyingKey memory", "value": "vk" }, "id": 8727, "name": "Identifier", "src": "9727:2:8" } ], "id": 8730, "name": "MemberAccess", "src": "9727:12:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "31", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 1", "value": "1" }, "id": 8729, "name": "Literal", "src": "9740:1:8" } ], "id": 8731, "name": "IndexAccess", "src": "9727:15:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": true, "lValueRequested": false, "names": [ null ], "type": "struct Pairing.G1Point memory", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "member_name": "G1Point", "referencedDeclaration": 8028, "type": "type(struct Pairing.G1Point storage pointer)" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8595, "type": "type(library Pairing)", "value": "Pairing" }, "id": 8732, "name": "Identifier", "src": "9745:7:8" } ], "id": 8733, "name": "MemberAccess", "src": "9745:15:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "uint256", "type_conversion": true }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_rational_16237597656499293965332794985865402468877624803211829998411595855473171096980_by_1", "typeString": "int_const 1623...(69 digits omitted)...6980" } ], "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "type(uint256)", "value": "uint256" }, "id": 8734, "name": "ElementaryTypeNameExpression", "src": "9774:7:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "307832336536323739326666616466396239613538303936663539303732396466326465626133623064643766333932633861393032646365313465323165353934", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 1623...(69 digits omitted)...6980", "value": "0x23e62792ffadf9b9a58096f590729df2deba3b0dd7f392c8a902dce14e21e594" }, "id": 8735, "name": "Literal", "src": "9799:66:8" } ], "id": 8736, "name": "FunctionCall", "src": "9774:105:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "uint256", "type_conversion": true }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_rational_1627570538680188729076063237447958472880180078086369158473432654366798121770_by_1", "typeString": "int_const 1627...(68 digits omitted)...1770" } ], "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "type(uint256)", "value": "uint256" }, "id": 8737, "name": "ElementaryTypeNameExpression", "src": "9893:7:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "307830333939326331613837306135653436363936613235626134343436346639356232383834303132386335373336653265623438626434636533306130623261", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 1627...(68 digits omitted)...1770", "value": "0x03992c1a870a5e46696a25ba44464f95b28840128c5736e2eb48bd4ce30a0b2a" }, "id": 8738, "name": "Literal", "src": "9918:66:8" } ], "id": 8739, "name": "FunctionCall", "src": "9893:105:8" } ], "id": 8740, "name": "FunctionCall", "src": "9745:263:8" } ], "id": 8741, "name": "Assignment", "src": "9727:281:8" } ], "id": 8742, "name": "ExpressionStatement", "src": "9727:281:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "struct Pairing.G1Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "struct Pairing.G1Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "member_name": "gamma_abc", "referencedDeclaration": 8608, "type": "struct Pairing.G1Point memory[] memory" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8619, "type": "struct SquareVerifier.VerifyingKey memory", "value": "vk" }, "id": 8743, "name": "Identifier", "src": "10018:2:8" } ], "id": 8746, "name": "MemberAccess", "src": "10018:12:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "32", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 2", "value": "2" }, "id": 8745, "name": "Literal", "src": "10031:1:8" } ], "id": 8747, "name": "IndexAccess", "src": "10018:15:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": true, "lValueRequested": false, "names": [ null ], "type": "struct Pairing.G1Point memory", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "member_name": "G1Point", "referencedDeclaration": 8028, "type": "type(struct Pairing.G1Point storage pointer)" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8595, "type": "type(library Pairing)", "value": "Pairing" }, "id": 8748, "name": "Identifier", "src": "10036:7:8" } ], "id": 8749, "name": "MemberAccess", "src": "10036:15:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "uint256", "type_conversion": true }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_rational_3917072389673298666886201415819452942784002821963010175041186681150805868843_by_1", "typeString": "int_const 3917...(68 digits omitted)...8843" } ], "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "type(uint256)", "value": "uint256" }, "id": 8750, "name": "ElementaryTypeNameExpression", "src": "10065:7:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "307830386138666330323031333032326537396563396464626562333135313532626234303734643136376330363065393030303539336634356330366638313262", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 3917...(68 digits omitted)...8843", "value": "0x08a8fc02013022e79ec9ddbeb315152bb4074d167c060e9000593f45c06f812b" }, "id": 8751, "name": "Literal", "src": "10090:66:8" } ], "id": 8752, "name": "FunctionCall", "src": "10065:105:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "uint256", "type_conversion": true }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_rational_9622090900832633104956589294347785905754087754983621298681102729766771097511_by_1", "typeString": "int_const 9622...(68 digits omitted)...7511" } ], "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "type(uint256)", "value": "uint256" }, "id": 8753, "name": "ElementaryTypeNameExpression", "src": "10184:7:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "307831353435653931333834623731373239363461343362323831646137306131396164396232323939663361363730646661306366633262303063383366666137", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 9622...(68 digits omitted)...7511", "value": "0x1545e91384b7172964a43b281da70a19ad9b2299f3a670dfa0cfc2b00c83ffa7" }, "id": 8754, "name": "Literal", "src": "10209:66:8" } ], "id": 8755, "name": "FunctionCall", "src": "10184:105:8" } ], "id": 8756, "name": "FunctionCall", "src": "10036:263:8" } ], "id": 8757, "name": "Assignment", "src": "10018:281:8" } ], "id": 8758, "name": "ExpressionStatement", "src": "10018:281:8" } ], "id": 8759, "name": "Block", "src": "7216:3090:8" } ], "id": 8760, "name": "FunctionDefinition", "src": "7145:3161:8" }, { "attributes": { "documentation": null, "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "verify", "scope": 8942, "stateMutability": "view", "superFunction": null, "visibility": "internal" }, "children": [ { "children": [ { "attributes": { "constant": false, "name": "input", "scope": 8885, "stateVariable": false, "storageLocation": "memory", "type": "uint256[]", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "length": null, "type": "uint256[]" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 8761, "name": "ElementaryTypeName", "src": "10328:7:8" } ], "id": 8762, "name": "ArrayTypeName", "src": "10328:9:8" } ], "id": 8763, "name": "VariableDeclaration", "src": "10328:22:8" }, { "attributes": { "constant": false, "name": "proof", "scope": 8885, "stateVariable": false, "storageLocation": "memory", "type": "struct SquareVerifier.Proof", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "contractScope": null, "name": "Proof", "referencedDeclaration": 8616, "type": "struct SquareVerifier.Proof" }, "id": 8764, "name": "UserDefinedTypeName", "src": "10352:5:8" } ], "id": 8765, "name": "VariableDeclaration", "src": "10352:18:8" } ], "id": 8766, "name": "ParameterList", "src": "10327:44:8" }, { "children": [ { "attributes": { "constant": false, "name": "", "scope": 8885, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 8767, "name": "ElementaryTypeName", "src": "10419:7:8" } ], "id": 8768, "name": "VariableDeclaration", "src": "10419:7:8" } ], "id": 8769, "name": "ParameterList", "src": "10418:9:8" }, { "children": [ { "attributes": { "assignments": [ 8771 ] }, "children": [ { "attributes": { "constant": false, "name": "snark_scalar_field", "scope": 8884, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 8770, "name": "ElementaryTypeName", "src": "10442:7:8" } ], "id": 8771, "name": "VariableDeclaration", "src": "10442:26:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "3231383838323432383731383339323735323232323436343035373435323537323735303838353438333634343030343136303334333433363938323034313836353735383038343935363137", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 2188...(69 digits omitted)...5617", "value": "21888242871839275222246405745257275088548364400416034343698204186575808495617" }, "id": 8772, "name": "Literal", "src": "10471:77:8" } ], "id": 8773, "name": "VariableDeclarationStatement", "src": "10442:106:8" }, { "attributes": { "assignments": [ 8775 ] }, "children": [ { "attributes": { "constant": false, "name": "vk", "scope": 8884, "stateVariable": false, "storageLocation": "memory", "type": "struct SquareVerifier.VerifyingKey", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "contractScope": null, "name": "VerifyingKey", "referencedDeclaration": 8609, "type": "struct SquareVerifier.VerifyingKey" }, "id": 8774, "name": "UserDefinedTypeName", "src": "10558:12:8" } ], "id": 8775, "name": "VariableDeclaration", "src": "10558:22:8" }, { "attributes": { "argumentTypes": null, "arguments": [ null ], "isConstant": false, "isLValue": false, "isPure": false, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "struct SquareVerifier.VerifyingKey memory", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ null ], "overloadedDeclarations": [ null ], "referencedDeclaration": 8760, "type": "function () pure returns (struct SquareVerifier.VerifyingKey memory)", "value": "verifyingKey" }, "id": 8776, "name": "Identifier", "src": "10583:12:8" } ], "id": 8777, "name": "FunctionCall", "src": "10583:14:8" } ], "id": 8778, "name": "VariableDeclarationStatement", "src": "10558:39:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "tuple()", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8960, "type": "function (bool) pure", "value": "require" }, "id": 8779, "name": "Identifier", "src": "10607:7:8" }, { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "==", "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "+", "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "member_name": "length", "referencedDeclaration": null, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8763, "type": "uint256[] memory", "value": "input" }, "id": 8780, "name": "Identifier", "src": "10615:5:8" } ], "id": 8781, "name": "MemberAccess", "src": "10615:12:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "31", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 1", "value": "1" }, "id": 8782, "name": "Literal", "src": "10630:1:8" } ], "id": 8783, "name": "BinaryOperation", "src": "10615:16:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "member_name": "length", "referencedDeclaration": null, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "member_name": "gamma_abc", "referencedDeclaration": 8608, "type": "struct Pairing.G1Point memory[] memory" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8775, "type": "struct SquareVerifier.VerifyingKey memory", "value": "vk" }, "id": 8784, "name": "Identifier", "src": "10635:2:8" } ], "id": 8785, "name": "MemberAccess", "src": "10635:12:8" } ], "id": 8786, "name": "MemberAccess", "src": "10635:19:8" } ], "id": 8787, "name": "BinaryOperation", "src": "10615:39:8" } ], "id": 8788, "name": "FunctionCall", "src": "10607:48:8" } ], "id": 8789, "name": "ExpressionStatement", "src": "10607:48:8" }, { "attributes": { "assignments": [ 8793 ] }, "children": [ { "attributes": { "constant": false, "name": "vk_x", "scope": 8884, "stateVariable": false, "storageLocation": "memory", "type": "struct Pairing.G1Point", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "contractScope": null, "name": "Pairing.G1Point", "referencedDeclaration": 8028, "type": "struct Pairing.G1Point" }, "id": 8792, "name": "UserDefinedTypeName", "src": "10712:15:8" } ], "id": 8793, "name": "VariableDeclaration", "src": "10712:27:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": true, "lValueRequested": false, "names": [ null ], "type": "struct Pairing.G1Point memory", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" } ], "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "member_name": "G1Point", "referencedDeclaration": 8028, "type": "type(struct Pairing.G1Point storage pointer)" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8595, "type": "type(library Pairing)", "value": "Pairing" }, "id": 8794, "name": "Identifier", "src": "10742:7:8" } ], "id": 8795, "name": "MemberAccess", "src": "10742:15:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "30", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 0", "value": "0" }, "id": 8796, "name": "Literal", "src": "10758:1:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "30", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 0", "value": "0" }, "id": 8797, "name": "Literal", "src": "10761:1:8" } ], "id": 8798, "name": "FunctionCall", "src": "10742:21:8" } ], "id": 8799, "name": "VariableDeclarationStatement", "src": "10712:51:8" }, { "children": [ { "attributes": { "assignments": [ 8801 ] }, "children": [ { "attributes": { "constant": false, "name": "i", "scope": 8839, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 8800, "name": "ElementaryTypeName", "src": "10778:7:8" } ], "id": 8801, "name": "VariableDeclaration", "src": "10778:9:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "30", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 0", "value": "0" }, "id": 8802, "name": "Literal", "src": "10790:1:8" } ], "id": 8803, "name": "VariableDeclarationStatement", "src": "10778:13:8" }, { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "<", "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8801, "type": "uint256", "value": "i" }, "id": 8804, "name": "Identifier", "src": "10793:1:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "member_name": "length", "referencedDeclaration": null, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8763, "type": "uint256[] memory", "value": "input" }, "id": 8805, "name": "Identifier", "src": "10797:5:8" } ], "id": 8806, "name": "MemberAccess", "src": "10797:12:8" } ], "id": 8807, "name": "BinaryOperation", "src": "10793:16:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "++", "prefix": false, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8801, "type": "uint256", "value": "i" }, "id": 8808, "name": "Identifier", "src": "10811:1:8" } ], "id": 8809, "name": "UnaryOperation", "src": "10811:3:8" } ], "id": 8810, "name": "ExpressionStatement", "src": "10811:3:8" }, { "children": [ { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "tuple()", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8960, "type": "function (bool) pure", "value": "require" }, "id": 8811, "name": "Identifier", "src": "10830:7:8" }, { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "<", "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8763, "type": "uint256[] memory", "value": "input" }, "id": 8812, "name": "Identifier", "src": "10838:5:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8801, "type": "uint256", "value": "i" }, "id": 8813, "name": "Identifier", "src": "10844:1:8" } ], "id": 8814, "name": "IndexAccess", "src": "10838:8:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8771, "type": "uint256", "value": "snark_scalar_field" }, "id": 8815, "name": "Identifier", "src": "10849:18:8" } ], "id": 8816, "name": "BinaryOperation", "src": "10838:29:8" } ], "id": 8817, "name": "FunctionCall", "src": "10830:38:8" } ], "id": 8818, "name": "ExpressionStatement", "src": "10830:38:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "struct Pairing.G1Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8793, "type": "struct Pairing.G1Point memory", "value": "vk_x" }, "id": 8819, "name": "Identifier", "src": "10882:4:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "struct Pairing.G1Point memory", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" }, { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" } ], "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "member_name": "addition", "referencedDeclaration": 8154, "type": "function (struct Pairing.G1Point memory,struct Pairing.G1Point memory) view returns (struct Pairing.G1Point memory)" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8595, "type": "type(library Pairing)", "value": "Pairing" }, "id": 8820, "name": "Identifier", "src": "10889:7:8" } ], "id": 8821, "name": "MemberAccess", "src": "10889:16:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8793, "type": "struct Pairing.G1Point memory", "value": "vk_x" }, "id": 8822, "name": "Identifier", "src": "10923:4:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "struct Pairing.G1Point memory", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "member_name": "scalar_mul", "referencedDeclaration": 8198, "type": "function (struct Pairing.G1Point memory,uint256) view returns (struct Pairing.G1Point memory)" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8595, "type": "type(library Pairing)", "value": "Pairing" }, "id": 8823, "name": "Identifier", "src": "10945:7:8" } ], "id": 8824, "name": "MemberAccess", "src": "10945:18:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "struct Pairing.G1Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "member_name": "gamma_abc", "referencedDeclaration": 8608, "type": "struct Pairing.G1Point memory[] memory" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8775, "type": "struct SquareVerifier.VerifyingKey memory", "value": "vk" }, "id": 8825, "name": "Identifier", "src": "10964:2:8" } ], "id": 8826, "name": "MemberAccess", "src": "10964:12:8" }, { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "+", "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8801, "type": "uint256", "value": "i" }, "id": 8827, "name": "Identifier", "src": "10977:1:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "31", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 1", "value": "1" }, "id": 8828, "name": "Literal", "src": "10981:1:8" } ], "id": 8829, "name": "BinaryOperation", "src": "10977:5:8" } ], "id": 8830, "name": "IndexAccess", "src": "10964:19:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8763, "type": "uint256[] memory", "value": "input" }, "id": 8831, "name": "Identifier", "src": "10985:5:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8801, "type": "uint256", "value": "i" }, "id": 8832, "name": "Identifier", "src": "10991:1:8" } ], "id": 8833, "name": "IndexAccess", "src": "10985:8:8" } ], "id": 8834, "name": "FunctionCall", "src": "10945:49:8" } ], "id": 8835, "name": "FunctionCall", "src": "10889:119:8" } ], "id": 8836, "name": "Assignment", "src": "10882:126:8" } ], "id": 8837, "name": "ExpressionStatement", "src": "10882:126:8" } ], "id": 8838, "name": "Block", "src": "10816:203:8" } ], "id": 8839, "name": "ForStatement", "src": "10773:246:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "struct Pairing.G1Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8793, "type": "struct Pairing.G1Point memory", "value": "vk_x" }, "id": 8840, "name": "Identifier", "src": "11028:4:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "struct Pairing.G1Point memory", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" }, { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } ], "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "member_name": "addition", "referencedDeclaration": 8154, "type": "function (struct Pairing.G1Point memory,struct Pairing.G1Point memory) view returns (struct Pairing.G1Point memory)" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8595, "type": "type(library Pairing)", "value": "Pairing" }, "id": 8841, "name": "Identifier", "src": "11035:7:8" } ], "id": 8842, "name": "MemberAccess", "src": "11035:16:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8793, "type": "struct Pairing.G1Point memory", "value": "vk_x" }, "id": 8843, "name": "Identifier", "src": "11052:4:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "struct Pairing.G1Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "member_name": "gamma_abc", "referencedDeclaration": 8608, "type": "struct Pairing.G1Point memory[] memory" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8775, "type": "struct SquareVerifier.VerifyingKey memory", "value": "vk" }, "id": 8844, "name": "Identifier", "src": "11058:2:8" } ], "id": 8845, "name": "MemberAccess", "src": "11058:12:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "30", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 0", "value": "0" }, "id": 8846, "name": "Literal", "src": "11071:1:8" } ], "id": 8847, "name": "IndexAccess", "src": "11058:15:8" } ], "id": 8848, "name": "FunctionCall", "src": "11035:39:8" } ], "id": 8849, "name": "Assignment", "src": "11028:46:8" } ], "id": 8850, "name": "ExpressionStatement", "src": "11028:46:8" }, { "attributes": { "falseBody": null }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "!", "prefix": true, "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "bool", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" }, { "typeIdentifier": "t_struct$_G2Point_$8037_memory", "typeString": "struct Pairing.G2Point memory" }, { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" }, { "typeIdentifier": "t_struct$_G2Point_$8037_memory", "typeString": "struct Pairing.G2Point memory" }, { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" }, { "typeIdentifier": "t_struct$_G2Point_$8037_memory", "typeString": "struct Pairing.G2Point memory" }, { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" }, { "typeIdentifier": "t_struct$_G2Point_$8037_memory", "typeString": "struct Pairing.G2Point memory" } ], "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "member_name": "pairingProd4", "referencedDeclaration": 8594, "type": "function (struct Pairing.G1Point memory,struct Pairing.G2Point memory,struct Pairing.G1Point memory,struct Pairing.G2Point memory,struct Pairing.G1Point memory,struct Pairing.G2Point memory,struct Pairing.G1Point memory,struct Pairing.G2Point memory) view returns (bool)" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8595, "type": "type(library Pairing)", "value": "Pairing" }, "id": 8851, "name": "Identifier", "src": "11102:7:8" } ], "id": 8852, "name": "MemberAccess", "src": "11102:20:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "member_name": "a", "referencedDeclaration": 8611, "type": "struct Pairing.G1Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8765, "type": "struct SquareVerifier.Proof memory", "value": "proof" }, "id": 8853, "name": "Identifier", "src": "11140:5:8" } ], "id": 8854, "name": "MemberAccess", "src": "11140:7:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "member_name": "b", "referencedDeclaration": 8613, "type": "struct Pairing.G2Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8765, "type": "struct SquareVerifier.Proof memory", "value": "proof" }, "id": 8855, "name": "Identifier", "src": "11165:5:8" } ], "id": 8856, "name": "MemberAccess", "src": "11165:7:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "struct Pairing.G1Point memory", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_struct$_G1Point_$8028_memory_ptr", "typeString": "struct Pairing.G1Point memory" } ], "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "member_name": "negate", "referencedDeclaration": 8102, "type": "function (struct Pairing.G1Point memory) pure returns (struct Pairing.G1Point memory)" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8595, "type": "type(library Pairing)", "value": "Pairing" }, "id": 8857, "name": "Identifier", "src": "11190:7:8" } ], "id": 8858, "name": "MemberAccess", "src": "11190:14:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8793, "type": "struct Pairing.G1Point memory", "value": "vk_x" }, "id": 8859, "name": "Identifier", "src": "11205:4:8" } ], "id": 8860, "name": "FunctionCall", "src": "11190:20:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "member_name": "gamma", "referencedDeclaration": 8603, "type": "struct Pairing.G2Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8775, "type": "struct SquareVerifier.VerifyingKey memory", "value": "vk" }, "id": 8861, "name": "Identifier", "src": "11228:2:8" } ], "id": 8862, "name": "MemberAccess", "src": "11228:8:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "struct Pairing.G1Point memory", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } ], "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "member_name": "negate", "referencedDeclaration": 8102, "type": "function (struct Pairing.G1Point memory) pure returns (struct Pairing.G1Point memory)" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8595, "type": "type(library Pairing)", "value": "Pairing" }, "id": 8863, "name": "Identifier", "src": "11254:7:8" } ], "id": 8864, "name": "MemberAccess", "src": "11254:14:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "member_name": "c", "referencedDeclaration": 8615, "type": "struct Pairing.G1Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8765, "type": "struct SquareVerifier.Proof memory", "value": "proof" }, "id": 8865, "name": "Identifier", "src": "11269:5:8" } ], "id": 8866, "name": "MemberAccess", "src": "11269:7:8" } ], "id": 8867, "name": "FunctionCall", "src": "11254:23:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "member_name": "delta", "referencedDeclaration": 8605, "type": "struct Pairing.G2Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8775, "type": "struct SquareVerifier.VerifyingKey memory", "value": "vk" }, "id": 8868, "name": "Identifier", "src": "11295:2:8" } ], "id": 8869, "name": "MemberAccess", "src": "11295:8:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "struct Pairing.G1Point memory", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_struct$_G1Point_$8028_memory", "typeString": "struct Pairing.G1Point memory" } ], "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "member_name": "negate", "referencedDeclaration": 8102, "type": "function (struct Pairing.G1Point memory) pure returns (struct Pairing.G1Point memory)" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8595, "type": "type(library Pairing)", "value": "Pairing" }, "id": 8870, "name": "Identifier", "src": "11321:7:8" } ], "id": 8871, "name": "MemberAccess", "src": "11321:14:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "member_name": "alpha", "referencedDeclaration": 8599, "type": "struct Pairing.G1Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8775, "type": "struct SquareVerifier.VerifyingKey memory", "value": "vk" }, "id": 8872, "name": "Identifier", "src": "11336:2:8" } ], "id": 8873, "name": "MemberAccess", "src": "11336:8:8" } ], "id": 8874, "name": "FunctionCall", "src": "11321:24:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "member_name": "beta", "referencedDeclaration": 8601, "type": "struct Pairing.G2Point memory" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8775, "type": "struct SquareVerifier.VerifyingKey memory", "value": "vk" }, "id": 8875, "name": "Identifier", "src": "11363:2:8" } ], "id": 8876, "name": "MemberAccess", "src": "11363:7:8" } ], "id": 8877, "name": "FunctionCall", "src": "11102:282:8" } ], "id": 8878, "name": "UnaryOperation", "src": "11101:283:8" }, { "attributes": { "functionReturnParameters": 8769 }, "children": [ { "attributes": { "argumentTypes": null, "hexvalue": "31", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 1", "value": "1" }, "id": 8879, "name": "Literal", "src": "11402:1:8" } ], "id": 8880, "name": "Return", "src": "11395:8:8" } ], "id": 8881, "name": "IfStatement", "src": "11084:319:8" }, { "attributes": { "functionReturnParameters": 8769 }, "children": [ { "attributes": { "argumentTypes": null, "hexvalue": "30", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 0", "value": "0" }, "id": 8882, "name": "Literal", "src": "11420:1:8" } ], "id": 8883, "name": "Return", "src": "11413:8:8" } ], "id": 8884, "name": "Block", "src": "10432:996:8" } ], "id": 8885, "name": "FunctionDefinition", "src": "10312:1116:8" }, { "attributes": { "documentation": null, "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "verifyTx", "scope": 8942, "stateMutability": "view", "superFunction": null, "visibility": "public" }, "children": [ { "children": [ { "attributes": { "constant": false, "name": "proof", "scope": 8941, "stateVariable": false, "storageLocation": "memory", "type": "struct SquareVerifier.Proof", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "contractScope": null, "name": "Proof", "referencedDeclaration": 8616, "type": "struct SquareVerifier.Proof" }, "id": 8886, "name": "UserDefinedTypeName", "src": "11452:5:8" } ], "id": 8887, "name": "VariableDeclaration", "src": "11452:18:8" }, { "attributes": { "constant": false, "name": "input", "scope": 8941, "stateVariable": false, "storageLocation": "memory", "type": "uint256[2]", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "type": "uint256[2]" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 8888, "name": "ElementaryTypeName", "src": "11472:7:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "32", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 2", "value": "2" }, "id": 8889, "name": "Literal", "src": "11480:1:8" } ], "id": 8890, "name": "ArrayTypeName", "src": "11472:10:8" } ], "id": 8891, "name": "VariableDeclaration", "src": "11472:23:8" } ], "id": 8892, "name": "ParameterList", "src": "11451:45:8" }, { "children": [ { "attributes": { "constant": false, "name": "r", "scope": 8941, "stateVariable": false, "storageLocation": "default", "type": "bool", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "bool", "type": "bool" }, "id": 8893, "name": "ElementaryTypeName", "src": "11542:4:8" } ], "id": 8894, "name": "VariableDeclaration", "src": "11542:6:8" } ], "id": 8895, "name": "ParameterList", "src": "11541:8:8" }, { "children": [ { "attributes": { "assignments": [ 8899 ] }, "children": [ { "attributes": { "constant": false, "name": "inputValues", "scope": 8940, "stateVariable": false, "storageLocation": "memory", "type": "uint256[]", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "length": null, "type": "uint256[]" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 8897, "name": "ElementaryTypeName", "src": "11564:7:8" } ], "id": 8898, "name": "ArrayTypeName", "src": "11564:9:8" } ], "id": 8899, "name": "VariableDeclaration", "src": "11564:28:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "uint256[] memory", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_rational_2_by_1", "typeString": "int_const 2" } ], "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "function (uint256) pure returns (uint256[] memory)" }, "children": [ { "attributes": { "length": null, "type": "uint256[]" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 8900, "name": "ElementaryTypeName", "src": "11599:7:8" } ], "id": 8901, "name": "ArrayTypeName", "src": "11599:9:8" } ], "id": 8902, "name": "NewExpression", "src": "11595:13:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "32", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 2", "value": "2" }, "id": 8903, "name": "Literal", "src": "11609:1:8" } ], "id": 8904, "name": "FunctionCall", "src": "11595:16:8" } ], "id": 8905, "name": "VariableDeclarationStatement", "src": "11564:47:8" }, { "children": [ { "attributes": { "assignments": [ 8907 ] }, "children": [ { "attributes": { "constant": false, "name": "i", "scope": 8926, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 8906, "name": "ElementaryTypeName", "src": "11627:7:8" } ], "id": 8907, "name": "VariableDeclaration", "src": "11627:9:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "30", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 0", "value": "0" }, "id": 8908, "name": "Literal", "src": "11639:1:8" } ], "id": 8909, "name": "VariableDeclarationStatement", "src": "11627:13:8" }, { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "<", "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8907, "type": "uint256", "value": "i" }, "id": 8910, "name": "Identifier", "src": "11642:1:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "member_name": "length", "referencedDeclaration": null, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8891, "type": "uint256[2] memory", "value": "input" }, "id": 8911, "name": "Identifier", "src": "11646:5:8" } ], "id": 8912, "name": "MemberAccess", "src": "11646:12:8" } ], "id": 8913, "name": "BinaryOperation", "src": "11642:16:8" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "++", "prefix": false, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8907, "type": "uint256", "value": "i" }, "id": 8914, "name": "Identifier", "src": "11660:1:8" } ], "id": 8915, "name": "UnaryOperation", "src": "11660:3:8" } ], "id": 8916, "name": "ExpressionStatement", "src": "11660:3:8" }, { "children": [ { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8899, "type": "uint256[] memory", "value": "inputValues" }, "id": 8917, "name": "Identifier", "src": "11679:11:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8907, "type": "uint256", "value": "i" }, "id": 8918, "name": "Identifier", "src": "11691:1:8" } ], "id": 8919, "name": "IndexAccess", "src": "11679:14:8" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8891, "type": "uint256[2] memory", "value": "input" }, "id": 8920, "name": "Identifier", "src": "11696:5:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8907, "type": "uint256", "value": "i" }, "id": 8921, "name": "Identifier", "src": "11702:1:8" } ], "id": 8922, "name": "IndexAccess", "src": "11696:8:8" } ], "id": 8923, "name": "Assignment", "src": "11679:25:8" } ], "id": 8924, "name": "ExpressionStatement", "src": "11679:25:8" } ], "id": 8925, "name": "Block", "src": "11665:50:8" } ], "id": 8926, "name": "ForStatement", "src": "11622:93:8" }, { "children": [ { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "==", "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "uint256", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" }, { "typeIdentifier": "t_struct$_Proof_$8616_memory_ptr", "typeString": "struct SquareVerifier.Proof memory" } ], "overloadedDeclarations": [ null ], "referencedDeclaration": 8885, "type": "function (uint256[] memory,struct SquareVerifier.Proof memory) view returns (uint256)", "value": "verify" }, "id": 8927, "name": "Identifier", "src": "11728:6:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8899, "type": "uint256[] memory", "value": "inputValues" }, "id": 8928, "name": "Identifier", "src": "11735:11:8" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 8887, "type": "struct SquareVerifier.Proof memory", "value": "proof" }, "id": 8929, "name": "Identifier", "src": "11748:5:8" } ], "id": 8930, "name": "FunctionCall", "src": "11728:26:8" }, { "attributes": { "argumentTypes": null, "hexvalue": "30", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 0", "value": "0" }, "id": 8931, "name": "Literal", "src": "11758:1:8" } ], "id": 8932, "name": "BinaryOperation", "src": "11728:31:8" }, { "children": [ { "attributes": { "functionReturnParameters": 8895 }, "children": [ { "attributes": { "argumentTypes": null, "hexvalue": "74727565", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "bool", "type": "bool", "value": "true" }, "id": 8933, "name": "Literal", "src": "11782:4:8" } ], "id": 8934, "name": "Return", "src": "11775:11:8" } ], "id": 8935, "name": "Block", "src": "11761:36:8" }, { "children": [ { "attributes": { "functionReturnParameters": 8895 }, "children": [ { "attributes": { "argumentTypes": null, "hexvalue": "66616c7365", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "bool", "type": "bool", "value": "false" }, "id": 8936, "name": "Literal", "src": "11824:5:8" } ], "id": 8937, "name": "Return", "src": "11817:12:8" } ], "id": 8938, "name": "Block", "src": "11803:37:8" } ], "id": 8939, "name": "IfStatement", "src": "11724:116:8" } ], "id": 8940, "name": "Block", "src": "11554:292:8" } ], "id": 8941, "name": "FunctionDefinition", "src": "11434:412:8" } ], "id": 8942, "name": "ContractDefinition", "src": "6791:5057:8" } ], "id": 8943, "name": "SourceUnit", "src": "1104:10745:8" }, "compiler": { "name": "solc", "version": "0.5.16+commit.9c3226ce.Emscripten.clang" }, "networks": { "4": { "events": {}, "links": {}, "address": "0x04Bc2c9652D52F686a4be3781FD3070B84a35F91", "transactionHash": "0x8f971b615acb60e3338aca0c3a4ac1598069428f3afa34c62500ce514fc04097" } }, "schemaVersion": "3.4.3", "updatedAt": "2021-10-30T19:14:22.671Z", "networkType": "ethereum", "devdoc": { "methods": {} }, "userdoc": { "methods": {} } }