You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/2_integrating_aligned_into_your_application.md
+26-40Lines changed: 26 additions & 40 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -116,12 +116,13 @@ The proof submission and verification can be done either with the SDK or by usin
116
116
117
117
#### Using the SDK
118
118
119
-
To submit a proof using the SDK, you can use the `submit` function, and then you can use the `verify_proof_onchain` function to check if the proof was correctly verified in Aligned.
120
-
119
+
To submit a proof using the SDK, you can use the `submit_and_wait_verification` function.
120
+
This function submits the proof to aligned and waits for it to be verified in Aligned.
121
+
Alternatively you can call `submit` if you dont want to wait for proof verification.
121
122
The following code is an example of how to submit a proof using the SDK:
You can find an example of the proof submission and verification in the [ZKQuiz Program](../../examples/zkquiz/quiz/script/src/main.rs).
202
188
203
189
This example generates a proof, instantiates a wallet to submit the proof, and then submits the proof to Aligned for verification. It then waits for the proof to be verified in Aligned.
0 commit comments