File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -26,14 +26,12 @@ interface AleoNetworkClientOptions {
26
26
*
27
27
* @property provingRequest {ProvingRequest | string} The proving request being submitted to the network.
28
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.
29
+ * @property apiKey {string} The API key to use for authentication.
31
30
*/
32
31
interface DelegatedProvingParams {
33
32
provingRequest : ProvingRequest | string ;
34
33
url ?: string ;
35
34
apiKey ?: string ;
36
- delegatedProvingJWT ?: string ;
37
35
}
38
36
39
37
/**
@@ -1629,12 +1627,10 @@ class AleoNetworkClient {
1629
1627
} ;
1630
1628
1631
1629
// Add auth header based on what's available
1632
- if ( options . delegatedProvingJWT ) {
1633
- headers [ "Authorization" ] = `Bearer ${ options . delegatedProvingJWT } ` ;
1634
- } else if ( options . apiKey ) {
1635
- headers [ "X-API-Key" ] = options . apiKey ;
1630
+ if ( options . apiKey ) {
1631
+ headers [ "X-Provable-API-Key" ] = options . apiKey ;
1636
1632
}
1637
-
1633
+ console . log ( "Using headers:" , headers ) ;
1638
1634
try {
1639
1635
const response = await retryWithBackoff ( ( ) =>
1640
1636
post ( `${ proverUri } /prove` , {
You can’t perform that action at this time.
0 commit comments