@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.
@@ -1670,7 +1670,7 @@ declare class ProgramManager {
1670
1670
  * import { AleoKeyProvider, getOrInitConsensusVersionTestHeights, ProgramManager, NetworkRecordProvider } from "@provablehq/sdk/mainnet.js";
1671
1671
  *
1672
1672
  * // Initialize the development consensus heights in order to work with devnode.
1673
- * getOrInitConsensusVersionTestHeights("0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18");
1673
+ * getOrInitConsensusVersionTestHeights("0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21");
1674
1674
  *
1675
1675
  * // Create a new NetworkClient and RecordProvider.
1676
1676
  * const recordProvider = new NetworkRecordProvider(account, networkClient);
@@ -1711,7 +1711,7 @@ declare class ProgramManager {
1711
1711
  * import { ProgramManager, NetworkRecordProvider, getOrInitConsensusVersionTestHeights } from "@provablehq/sdk/mainnet.js";
1712
1712
  *
1713
1713
  * // Initialize the development consensus heights in order to work with a local devnode.
1714
- * getOrInitConsensusVersionTestHeights("0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18");
1714
+ * getOrInitConsensusVersionTestHeights("0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21");
1715
1715
  *
1716
1716
  * // Create a new NetworkClient, and RecordProvider
1717
1717
  * const recordProvider = new NetworkRecordProvider(account, networkClient);
@@ -1786,7 +1786,9 @@ declare function inputsToFields(inputs: string[]): string[];
1786
1786
  * Verify an Aleo zkSnark proof against a verifying key and public inputs.
1787
1787
  *
1788
1788
  * This verifies a proof produced by an Aleo program that may not be deployed on chain.
1789
- * It directly invokes the Varuna proof verification from snarkVM.
1789
+ * It directly invokes the Varuna proof verification from snarkVM, using the Varuna version
1790
+ * required by the latest consensus version (Varuna V3 as of ConsensusVersion::V21). Proofs
1791
+ * generated with an older Varuna version will fail verification.
1790
1792
  *
1791
1793
  * **Note:** The proof must have been generated with the Fiat-Shamir domain separator
1792
1794
  * "snark_verify". Proofs generated via snarkVM with a different function name will fail
@@ -1822,7 +1824,9 @@ declare function verifyProof(options: VerificationOptions): boolean;
1822
1824
  *
1823
1825
  * Each verifying key is paired with one or more sets of public inputs (instances).
1824
1826
  * Inputs can be raw field element strings or Aleo type strings — non-field inputs
1825
- * are automatically converted to their field representation.
1827
+ * are automatically converted to their field representation. Verification uses the
1828
+ * Varuna version required by the latest consensus version (Varuna V3 as of
1829
+ * ConsensusVersion::V21); batch proofs generated with an older Varuna version will fail.
1826
1830
  *
1827
1831
  * **Note:** The proof must have been generated with the Fiat-Shamir domain separator
1828
1832
  * "snark_verify_batch". Proofs generated with a different function name will fail
@@ -1670,7 +1670,7 @@ declare class ProgramManager {
1670
1670
  * import { AleoKeyProvider, getOrInitConsensusVersionTestHeights, ProgramManager, NetworkRecordProvider } from "@provablehq/sdk/mainnet.js";
1671
1671
  *
1672
1672
  * // Initialize the development consensus heights in order to work with devnode.
1673
- * getOrInitConsensusVersionTestHeights("0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18");
1673
+ * getOrInitConsensusVersionTestHeights("0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21");
1674
1674
  *
1675
1675
  * // Create a new NetworkClient and RecordProvider.
1676
1676
  * const recordProvider = new NetworkRecordProvider(account, networkClient);
@@ -1711,7 +1711,7 @@ declare class ProgramManager {
1711
1711
  * import { ProgramManager, NetworkRecordProvider, getOrInitConsensusVersionTestHeights } from "@provablehq/sdk/mainnet.js";
1712
1712
  *
1713
1713
  * // Initialize the development consensus heights in order to work with a local devnode.
1714
- * getOrInitConsensusVersionTestHeights("0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18");
1714
+ * getOrInitConsensusVersionTestHeights("0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21");
1715
1715
  *
1716
1716
  * // Create a new NetworkClient, and RecordProvider
1717
1717
  * const recordProvider = new NetworkRecordProvider(account, networkClient);
@@ -1786,7 +1786,9 @@ declare function inputsToFields(inputs: string[]): string[];
1786
1786
  * Verify an Aleo zkSnark proof against a verifying key and public inputs.
1787
1787
  *
1788
1788
  * This verifies a proof produced by an Aleo program that may not be deployed on chain.
1789
- * It directly invokes the Varuna proof verification from snarkVM.
1789
+ * It directly invokes the Varuna proof verification from snarkVM, using the Varuna version
1790
+ * required by the latest consensus version (Varuna V3 as of ConsensusVersion::V21). Proofs
1791
+ * generated with an older Varuna version will fail verification.
1790
1792
  *
1791
1793
  * **Note:** The proof must have been generated with the Fiat-Shamir domain separator
1792
1794
  * "snark_verify". Proofs generated via snarkVM with a different function name will fail
@@ -1822,7 +1824,9 @@ declare function verifyProof(options: VerificationOptions): boolean;
1822
1824
  *
1823
1825
  * Each verifying key is paired with one or more sets of public inputs (instances).
1824
1826
  * Inputs can be raw field element strings or Aleo type strings — non-field inputs
1825
- * are automatically converted to their field representation.
1827
+ * are automatically converted to their field representation. Verification uses the
1828
+ * Varuna version required by the latest consensus version (Varuna V3 as of
1829
+ * ConsensusVersion::V21); batch proofs generated with an older Varuna version will fail.
1826
1830
  *
1827
1831
  * **Note:** The proof must have been generated with the Fiat-Shamir domain separator
1828
1832
  * "snark_verify_batch". Proofs generated with a different function name will fail
@@ -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.11.10",
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.11.10",
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");
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");
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