add web3 intructions
This commit is contained in:
parent
8053524395
commit
e3b4c3336b
1 changed files with 6 additions and 0 deletions
|
@ -115,6 +115,12 @@ K = 0x1868436121f271e9fbf78a8f75bb4077e2d4f208891793fd5b468afc3b05c0e4, 0x1021c3
|
|||
```
|
||||
|
||||
Passed to the verifier contract, this proof can be checked.
|
||||
For example, using `web3`, a call would look like the following:
|
||||
```
|
||||
Verifier.at(<verifier contract address>).verifyTx(A, A_p, B, B_p, C, C_p, H, K, [...publicInputs, ...outputs])
|
||||
```
|
||||
|
||||
Where `A, ..., K` are defined as above (adding brackets and quotes: `A = ["0x123", "0x345"]`), `publicInputs` are the public inputs supplied to witness generation and `outputs` are the results of the computation.
|
||||
|
||||
# Testing
|
||||
|
||||
|
|
Loading…
Reference in a new issue