Skip to content

Commit

Permalink
seems to work
Browse files Browse the repository at this point in the history
  • Loading branch information
martyall committed Sep 30, 2023
1 parent ea7bd7e commit ec9a35e
Show file tree
Hide file tree
Showing 5 changed files with 269 additions and 75 deletions.
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

0 comments on commit ec9a35e

Please sign in to comment.