1
0
Fork 0
mirror of synced 2025-09-24 04:40:05 +00:00

add web3 intructions

This commit is contained in:
schaeff 2018-05-02 15:31:00 +02:00
parent 8053524395
commit e3b4c3336b

View file

@ -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