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
* @property provingRequest {ProvingRequest | string} The proving request being submitted to the network.
28
+
* @property url {string} The URL of the delegated proving service.
29
+
* @property apiKey {string} The API key to use for authentication. NOTE: This is not currently used but will be in a future release.
30
+
* @property delegatedProvingJWT {string} JWT token for authentication. NOTE: This will be deprecated in favor of apiKey in a future release.
31
+
*/
32
+
interfaceDelegatedProvingParams{
33
+
provingRequest: ProvingRequest|string;
34
+
url?: string;
35
+
apiKey?: string;
36
+
delegatedProvingJWT?: string;
37
+
}
38
+
24
39
/**
25
40
* Client library that encapsulates REST calls to publicly exposed endpoints of Aleo nodes. The methods provided in this
26
41
* allow users to query public information from the Aleo blockchain and submit transactions to the network.
@@ -1597,38 +1612,42 @@ class AleoNetworkClient {
1597
1612
/**
1598
1613
* Submit a `ProvingRequest` to a remote proving service for delegated proving. If the broadcast flag of the `ProvingRequest` is set to `true` the remote service will attempt to broadcast the result `Transaction` on behalf of the requestor.
1599
1614
*
1600
-
* @param {ProvingRequest | string} provingRequest - The `ProvingRequest` (generated by the ProgramManager) to submit.
1601
-
* @param {string} url - (Optional) The url of the proving service.
1615
+
* @param {DelegatedProvingParams} options - The optional parameters required to submit a proving request.
1602
1616
* @returns {Promise<ProvingResponse>} The ProvingResponse containing the transaction result and the result of the broadcast if the `broadcast` flag was set to `true`.
0 commit comments