@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
|
@@ -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,19,20");
|
|
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,19,20");
|
|
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,19,20");
|
|
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,19,20");
|
|
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
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@provablehq/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "A Software Development Kit (SDK) for Zero-Knowledge Transactions",
|
|
5
5
|
"collaborators": [
|
|
6
6
|
"The Provable Team"
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
},
|
|
92
92
|
"homepage": "https://github.com/ProvableHQ/sdk#readme",
|
|
93
93
|
"dependencies": {
|
|
94
|
-
"@provablehq/wasm": "^0.
|
|
94
|
+
"@provablehq/wasm": "^0.12.0",
|
|
95
95
|
"@scure/base": "^2.0.0",
|
|
96
96
|
"@serenity-kit/noble-sodium": "0.2.3",
|
|
97
97
|
"comlink": "^4.4.2",
|