Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support nested tuples #83

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
174 changes: 174 additions & 0 deletions abi-data/abis/Verifier.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
[
{
"inputs": [
{
"components": [
{
"internalType": "bytes",
"name": "seal",
"type": "bytes"
},
{
"components": [
{
"internalType": "bytes32",
"name": "preStateDigest",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "postStateDigest",
"type": "bytes32"
},
{
"components": [
{
"internalType": "enum SystemExitCode",
"name": "system",
"type": "uint8"
},
{
"internalType": "uint8",
"name": "user",
"type": "uint8"
}
],
"internalType": "struct ExitCode",
"name": "exitCode",
"type": "tuple"
},
{
"internalType": "bytes32",
"name": "input",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "output",
"type": "bytes32"
}
],
"internalType": "struct ReceiptMetadata",
"name": "meta",
"type": "tuple"
}
],
"internalType": "struct Receipt",
"name": "receipt",
"type": "tuple"
}
],
"name": "verify",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes",
"name": "seal",
"type": "bytes"
},
{
"internalType": "bytes32",
"name": "imageId",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "postStateDigest",
"type": "bytes32"
},
{
"internalType": "bytes",
"name": "journal",
"type": "bytes"
}
],
"name": "verify",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes",
"name": "seal",
"type": "bytes"
},
{
"internalType": "bytes32",
"name": "imageId",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "postStateDigest",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "journalHash",
"type": "bytes32"
}
],
"name": "verify",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256[2]",
"name": "_pA",
"type": "uint256[2]"
},
{
"internalType": "uint256[2][2]",
"name": "_pB",
"type": "uint256[2][2]"
},
{
"internalType": "uint256[2]",
"name": "_pC",
"type": "uint256[2]"
},
{
"internalType": "uint256[4]",
"name": "_pubSignals",
"type": "uint256[4]"
}
],
"name": "verifyProof",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
}
]
1 change: 1 addition & 0 deletions packages.dhall
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
let upstream =
https://raw.githubusercontent.com/f-o-a-m/package-sets/921ac217454768ec3f614a9571c109b2ad542c07/purs-0.15.7-web3.dhall
sha256:818d12df6f7ce455657ff559798e50ec14e098f8d6acc655f674f26c7a007e3d
with web3 = ../purescript-web3/spago.dhall as Location

in upstream
Loading
Loading