Skip to content

Commit 0786507

Browse files
committed
updated the docs
1 parent 327a4d4 commit 0786507

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

docs/api_reference/sdk-src_network-client.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,6 +1017,20 @@ __*return*__ | `Promise.<string>` | *The solution id of the submitted solution o
10171017
10181018
---
10191019
1020+
### `submitProvingRequest(provingRequest, url) ► Promise.<ProvingResponse>`
1021+
1022+
![modifier: public](images/badges/modifier-public.svg)
1023+
1024+
Submit a &#x60;ProvingRequest&#x60; to a remote proving service for delegated proving. If the broadcast flag of the &#x60;ProvingRequest&#x60; is set to &#x60;true&#x60; the remote service will attempt to broadcast the result &#x60;Transaction&#x60; on behalf of the requestor.
1025+
1026+
Parameters | Type | Description
1027+
--- | --- | ---
1028+
__provingRequest__ | [ProvingRequest](sdk-src_wasm.md) | *The &#x60;ProvingRequest&#x60; (generated by the ProgramManager) to submit.*
1029+
__url__ | `string` | *(Optional) The url of the proving service.*
1030+
__*return*__ | `Promise.<ProvingResponse>` | *The ProvingResponse containing the transaction result and the result of the broadcast if the &#x60;broadcast&#x60; flag was set to &#x60;true&#x60;.*
1031+
1032+
---
1033+
10201034
### `waitForTransactionConfirmation(transactionId, checkInterval, timeout) ► Promise.<Transaction>`
10211035
10221036
![modifier: public](images/badges/modifier-public.svg)
@@ -2053,6 +2067,20 @@ __*return*__ | `Promise.<string>` | *The solution id of the submitted solution o
20532067
20542068
---
20552069
2070+
### `submitProvingRequest(provingRequest, url) ► Promise.<ProvingResponse>`
2071+
2072+
![modifier: public](images/badges/modifier-public.svg)
2073+
2074+
Submit a &#x60;ProvingRequest&#x60; to a remote proving service for delegated proving. If the broadcast flag of the &#x60;ProvingRequest&#x60; is set to &#x60;true&#x60; the remote service will attempt to broadcast the result &#x60;Transaction&#x60; on behalf of the requestor.
2075+
2076+
Parameters | Type | Description
2077+
--- | --- | ---
2078+
__provingRequest__ | [ProvingRequest](sdk-src_wasm.md) | *The &#x60;ProvingRequest&#x60; (generated by the ProgramManager) to submit.*
2079+
__url__ | `string` | *(Optional) The url of the proving service.*
2080+
__*return*__ | `Promise.<ProvingResponse>` | *The ProvingResponse containing the transaction result and the result of the broadcast if the &#x60;broadcast&#x60; flag was set to &#x60;true&#x60;.*
2081+
2082+
---
2083+
20562084
### `waitForTransactionConfirmation(transactionId, checkInterval, timeout) ► Promise.<Transaction>`
20572085
20582086
![modifier: public](images/badges/modifier-public.svg)

docs/api_reference/sdk-src_wasm.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3277,6 +3277,18 @@ __*return*__ | [Plaintext](sdk-src_wasm.md) | **
32773277
32783278
---
32793279
3280+
### `toField() ► Field`
3281+
3282+
![modifier: public](images/badges/modifier-public.svg)
3283+
3284+
Cast the scalar element to a field element.
3285+
3286+
Parameters | Type | Description
3287+
--- | --- | ---
3288+
__*return*__ | [Field](sdk-src_wasm.md) | **
3289+
3290+
---
3291+
32803292
### `clone() ► Scalar`
32813293
32823294
![modifier: public](images/badges/modifier-public.svg)
@@ -4330,3 +4342,15 @@ Parameters | Type | Description
43304342
__*return*__ | `String` | *String representation of the verifying key*
43314343
43324344
---
4345+
4346+
### `numConstraints() ► number`
4347+
4348+
![modifier: public](images/badges/modifier-public.svg)
4349+
4350+
Get the number of constraints associated with the circuit
4351+
4352+
Parameters | Type | Description
4353+
--- | --- | ---
4354+
__*return*__ | `number` | *The number of constraints*
4355+
4356+
---

0 commit comments

Comments
 (0)