@provablehq/sdk 0.11.11 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mainnet/browser.cjs +10 -6
- package/dist/mainnet/browser.cjs.map +1 -1
- package/dist/mainnet/browser.js +10 -6
- package/dist/mainnet/browser.js.map +1 -1
- package/dist/mainnet/program-manager.d.cts +8 -4
- package/dist/mainnet/program-manager.d.ts +8 -4
- package/dist/testnet/browser.cjs +10 -6
- package/dist/testnet/browser.cjs.map +1 -1
- package/dist/testnet/browser.js +10 -6
- package/dist/testnet/browser.js.map +1 -1
- package/dist/testnet/program-manager.d.cts +8 -4
- package/dist/testnet/program-manager.d.ts +8 -4
- package/package.json +2 -2
package/dist/mainnet/browser.cjs
CHANGED
|
@@ -1764,7 +1764,7 @@ class AleoNetworkClient {
|
|
|
1764
1764
|
else {
|
|
1765
1765
|
this.headers = {
|
|
1766
1766
|
// This is replaced by the actual version by a Rollup plugin
|
|
1767
|
-
"X-Aleo-SDK-Version": "0.
|
|
1767
|
+
"X-Aleo-SDK-Version": "0.12.0",
|
|
1768
1768
|
"X-Aleo-environment": environment(),
|
|
1769
1769
|
};
|
|
1770
1770
|
}
|
|
@@ -1786,7 +1786,7 @@ class AleoNetworkClient {
|
|
|
1786
1786
|
else {
|
|
1787
1787
|
this.headers = {
|
|
1788
1788
|
// This is replaced by the actual version by a Rollup plugin
|
|
1789
|
-
"X-Aleo-SDK-Version": "0.
|
|
1789
|
+
"X-Aleo-SDK-Version": "0.12.0",
|
|
1790
1790
|
"X-Aleo-environment": environment(),
|
|
1791
1791
|
};
|
|
1792
1792
|
}
|
|
@@ -9200,7 +9200,7 @@ class ProgramManager {
|
|
|
9200
9200
|
* import { AleoKeyProvider, getOrInitConsensusVersionTestHeights, ProgramManager, NetworkRecordProvider } from "@provablehq/sdk/mainnet.js";
|
|
9201
9201
|
*
|
|
9202
9202
|
* // Initialize the development consensus heights in order to work with devnode.
|
|
9203
|
-
* getOrInitConsensusVersionTestHeights("0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20");
|
|
9203
|
+
* getOrInitConsensusVersionTestHeights("0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21");
|
|
9204
9204
|
*
|
|
9205
9205
|
* // Create a new NetworkClient and RecordProvider.
|
|
9206
9206
|
* const recordProvider = new NetworkRecordProvider(account, networkClient);
|
|
@@ -9327,7 +9327,7 @@ class ProgramManager {
|
|
|
9327
9327
|
* import { ProgramManager, NetworkRecordProvider, getOrInitConsensusVersionTestHeights } from "@provablehq/sdk/mainnet.js";
|
|
9328
9328
|
*
|
|
9329
9329
|
* // Initialize the development consensus heights in order to work with a local devnode.
|
|
9330
|
-
* getOrInitConsensusVersionTestHeights("0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20");
|
|
9330
|
+
* getOrInitConsensusVersionTestHeights("0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21");
|
|
9331
9331
|
*
|
|
9332
9332
|
* // Create a new NetworkClient, and RecordProvider
|
|
9333
9333
|
* const recordProvider = new NetworkRecordProvider(account, networkClient);
|
|
@@ -9575,7 +9575,9 @@ function inputsToFields(inputs) {
|
|
|
9575
9575
|
* Verify an Aleo zkSnark proof against a verifying key and public inputs.
|
|
9576
9576
|
*
|
|
9577
9577
|
* This verifies a proof produced by an Aleo program that may not be deployed on chain.
|
|
9578
|
-
* It directly invokes the Varuna proof verification from snarkVM
|
|
9578
|
+
* It directly invokes the Varuna proof verification from snarkVM, using the Varuna version
|
|
9579
|
+
* required by the latest consensus version (Varuna V3 as of ConsensusVersion::V21). Proofs
|
|
9580
|
+
* generated with an older Varuna version will fail verification.
|
|
9579
9581
|
*
|
|
9580
9582
|
* **Note:** The proof must have been generated with the Fiat-Shamir domain separator
|
|
9581
9583
|
* "snark_verify". Proofs generated via snarkVM with a different function name will fail
|
|
@@ -9626,7 +9628,9 @@ function verifyProof(options) {
|
|
|
9626
9628
|
*
|
|
9627
9629
|
* Each verifying key is paired with one or more sets of public inputs (instances).
|
|
9628
9630
|
* Inputs can be raw field element strings or Aleo type strings — non-field inputs
|
|
9629
|
-
* are automatically converted to their field representation.
|
|
9631
|
+
* are automatically converted to their field representation. Verification uses the
|
|
9632
|
+
* Varuna version required by the latest consensus version (Varuna V3 as of
|
|
9633
|
+
* ConsensusVersion::V21); batch proofs generated with an older Varuna version will fail.
|
|
9630
9634
|
*
|
|
9631
9635
|
* **Note:** The proof must have been generated with the Fiat-Shamir domain separator
|
|
9632
9636
|
* "snark_verify_batch". Proofs generated with a different function name will fail
|