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