@provablehq/sdk 0.10.5 → 0.11.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.
Files changed (75) hide show
  1. package/dist/mainnet/browser.cjs +1027 -418
  2. package/dist/mainnet/browser.cjs.map +1 -1
  3. package/dist/mainnet/browser.d.cts +6 -4
  4. package/dist/mainnet/browser.d.ts +6 -4
  5. package/dist/mainnet/browser.js +1021 -427
  6. package/dist/mainnet/browser.js.map +1 -1
  7. package/dist/mainnet/keys/keystore/indexeddb.d.cts +60 -0
  8. package/dist/mainnet/keys/keystore/indexeddb.d.ts +60 -0
  9. package/dist/mainnet/keys/provider/memory.d.cts +1 -1
  10. package/dist/mainnet/keys/provider/memory.d.ts +1 -1
  11. package/dist/mainnet/models/record-scanner/error.d.cts +1 -1
  12. package/dist/mainnet/models/record-scanner/error.d.ts +1 -1
  13. package/dist/mainnet/models/record-scanner/registrationResult.d.cts +1 -1
  14. package/dist/mainnet/models/record-scanner/registrationResult.d.ts +1 -1
  15. package/dist/mainnet/network-client.d.cts +22 -2
  16. package/dist/mainnet/network-client.d.ts +22 -2
  17. package/dist/mainnet/node.cjs +15 -0
  18. package/dist/mainnet/node.cjs.map +1 -1
  19. package/dist/mainnet/node.js +2 -2
  20. package/dist/mainnet/program-manager.d.cts +61 -1
  21. package/dist/mainnet/program-manager.d.ts +61 -1
  22. package/dist/mainnet/record-scanner.d.cts +13 -10
  23. package/dist/mainnet/record-scanner.d.ts +13 -10
  24. package/dist/mainnet/utils/index.d.cts +3 -0
  25. package/dist/mainnet/utils/index.d.ts +3 -0
  26. package/dist/mainnet/utils/logger.d.cts +34 -0
  27. package/dist/mainnet/utils/logger.d.ts +34 -0
  28. package/dist/mainnet/wasm-Bnb_v1_O.js +3 -0
  29. package/dist/mainnet/wasm-Bnb_v1_O.js.map +1 -0
  30. package/dist/mainnet/wasm.cjs +251 -0
  31. package/dist/mainnet/wasm.cjs.map +1 -0
  32. package/dist/mainnet/wasm.d.cts +1 -1
  33. package/dist/mainnet/wasm.d.ts +1 -1
  34. package/dist/testnet/browser.cjs +1027 -418
  35. package/dist/testnet/browser.cjs.map +1 -1
  36. package/dist/testnet/browser.d.cts +6 -4
  37. package/dist/testnet/browser.d.ts +6 -4
  38. package/dist/testnet/browser.js +1021 -427
  39. package/dist/testnet/browser.js.map +1 -1
  40. package/dist/testnet/keys/keystore/indexeddb.d.cts +60 -0
  41. package/dist/testnet/keys/keystore/indexeddb.d.ts +60 -0
  42. package/dist/testnet/keys/provider/memory.d.cts +1 -1
  43. package/dist/testnet/keys/provider/memory.d.ts +1 -1
  44. package/dist/testnet/models/record-scanner/error.d.cts +1 -1
  45. package/dist/testnet/models/record-scanner/error.d.ts +1 -1
  46. package/dist/testnet/models/record-scanner/registrationResult.d.cts +1 -1
  47. package/dist/testnet/models/record-scanner/registrationResult.d.ts +1 -1
  48. package/dist/testnet/network-client.d.cts +22 -2
  49. package/dist/testnet/network-client.d.ts +22 -2
  50. package/dist/testnet/node.cjs +15 -0
  51. package/dist/testnet/node.cjs.map +1 -1
  52. package/dist/testnet/node.js +2 -2
  53. package/dist/testnet/program-manager.d.cts +61 -1
  54. package/dist/testnet/program-manager.d.ts +61 -1
  55. package/dist/testnet/record-scanner.d.cts +13 -10
  56. package/dist/testnet/record-scanner.d.ts +13 -10
  57. package/dist/testnet/utils/index.d.cts +3 -0
  58. package/dist/testnet/utils/index.d.ts +3 -0
  59. package/dist/testnet/utils/logger.d.cts +34 -0
  60. package/dist/testnet/utils/logger.d.ts +34 -0
  61. package/dist/testnet/wasm-BCrMb35a.js +3 -0
  62. package/dist/testnet/wasm-BCrMb35a.js.map +1 -0
  63. package/dist/testnet/wasm.cjs +251 -0
  64. package/dist/testnet/wasm.cjs.map +1 -0
  65. package/dist/testnet/wasm.d.cts +1 -1
  66. package/dist/testnet/wasm.d.ts +1 -1
  67. package/package.json +2 -2
  68. package/dist/mainnet/models/record-scanner/registrationRequest.d.cts +0 -13
  69. package/dist/mainnet/models/record-scanner/registrationRequest.d.ts +0 -13
  70. package/dist/testnet/models/record-scanner/registrationRequest.d.cts +0 -13
  71. package/dist/testnet/models/record-scanner/registrationRequest.d.ts +0 -13
  72. /package/dist/mainnet/{utils.d.cts → utils/utils.d.cts} +0 -0
  73. /package/dist/mainnet/{utils.d.ts → utils/utils.d.ts} +0 -0
  74. /package/dist/testnet/{utils.d.cts → utils/utils.d.cts} +0 -0
  75. /package/dist/testnet/{utils.d.ts → utils/utils.d.ts} +0 -0
@@ -4,6 +4,7 @@ import { ImportedPrograms, ImportedVerifyingKeys } from "./models/imports.js";
4
4
  import { RecordProvider } from "./record-provider.js";
5
5
  import { RecordSearchParams } from "./models/record-provider/recordSearchParams.js";
6
6
  import { FunctionKeyProvider, KeySearchParams } from "./keys/provider/interface.js";
7
+ import { KeyStore } from "./keys/keystore/interface.js";
7
8
  import { FunctionKeyPair } from "./models/keyPair.js";
8
9
  import { Authorization, ExecutionRequest, ExecutionResponse, OfflineQuery, RecordPlaintext, PrivateKey, Program, ProvingKey, ProvingRequest, VerifyingKey, Transaction } from "./wasm.js";
9
10
  import { ExternalSigningOptions } from "./models/external-signing.js";
@@ -120,6 +121,7 @@ interface ExecuteAuthorizationOptions {
120
121
  offlineQuery?: OfflineQuery;
121
122
  program?: string | Program;
122
123
  imports?: ProgramImports;
124
+ edition?: number;
123
125
  }
124
126
  /**
125
127
  * Represents the options for executing a transaction in the Aleo network.
@@ -213,13 +215,14 @@ declare class ProgramManager {
213
215
  networkClient: AleoNetworkClient;
214
216
  recordProvider: RecordProvider | undefined;
215
217
  inclusionKeysLoaded: boolean;
218
+ private _keyStore;
216
219
  /** Create a new instance of the ProgramManager
217
220
  *
218
221
  * @param { string | undefined } host A host uri running the official Aleo API
219
222
  * @param { FunctionKeyProvider | undefined } keyProvider A key provider that implements {@link FunctionKeyProvider} interface
220
223
  * @param { RecordProvider | undefined } recordProvider A record provider that implements {@link RecordProvider} interface
221
224
  */
222
- constructor(host?: string | undefined, keyProvider?: FunctionKeyProvider | undefined, recordProvider?: RecordProvider | undefined, networkClientOptions?: AleoNetworkClientOptions | undefined);
225
+ constructor(host?: string | undefined, keyProvider?: FunctionKeyProvider | undefined, recordProvider?: RecordProvider | undefined, networkClientOptions?: AleoNetworkClientOptions | undefined, keyStore?: KeyStore | undefined);
223
226
  /**
224
227
  * Pre-load the inclusion prover for offline execution. Required when the
225
228
  * user provides an explicit OfflineQuery (truly offline — can't fetch lazily).
@@ -262,6 +265,63 @@ declare class ProgramManager {
262
265
  * @param {RecordProvider} recordProvider
263
266
  */
264
267
  setRecordProvider(recordProvider: RecordProvider): void;
268
+ /**
269
+ * Set the key store for automatic key caching across executions.
270
+ *
271
+ * @param {KeyStore} keyStore
272
+ */
273
+ setKeyStore(keyStore: KeyStore): void;
274
+ /**
275
+ * Build a ProgramImportsBuilder from a program and its imports.
276
+ * Fetches imports from the network if not provided, resolves transitive
277
+ * dependencies, and optionally pre-loads cached keys from the KeyStore.
278
+ *
279
+ * @param loadKeys When true (default), loads cached proving/verifying keys
280
+ * from the KeyStore into the builder. Set to false for authorization and
281
+ * proving request paths where keys are not synthesized.
282
+ */
283
+ private buildProgramImports;
284
+ /**
285
+ * Extract `import program_name.aleo;` names from program source via regex.
286
+ * Avoids a WASM round-trip compared to Program.fromString + getImports.
287
+ */
288
+ private static getImportNames;
289
+ /**
290
+ * Convert the JS object returned by Program.getCallGraph() into a
291
+ * Map<string, Set<string>> for use in buildProgramImports.
292
+ */
293
+ private static callGraphToMap;
294
+ /**
295
+ * Resolve the active KeyStore, preferring the directly-set _keyStore
296
+ * over the KeyProvider's keyStore().
297
+ */
298
+ private resolveKeyStore;
299
+ /**
300
+ * Resolve the edition and amendment count for a program from the network.
301
+ * Returns `{ edition, amendment }` or falls back to `{ edition: 1, amendment: 0 }`.
302
+ */
303
+ private resolveEditionAndAmendment;
304
+ /**
305
+ * Load cached proving/verifying keys from the KeyStore into a ProgramImportsBuilder.
306
+ * Only loads keys for the specified functions — returns immediately if
307
+ * functionNames is empty or undefined.
308
+ * Resolves edition and amendment from the network for accurate key locator
309
+ * construction when not explicitly provided.
310
+ */
311
+ private loadKeysFromStore;
312
+ /**
313
+ * Persist newly synthesized keys from the returned ProgramImportsBuilder
314
+ * into the KeyStore. Only writes keys that are not already in the store,
315
+ * avoiding unnecessary writes of large proving keys.
316
+ * Fetches each program's current edition and amendment count from the network
317
+ * for accurate key locator construction.
318
+ */
319
+ private persistExtractedKeys;
320
+ /**
321
+ * Resolve top-level function keys, checking the KeyStore first and
322
+ * falling back to the KeyProvider.
323
+ */
324
+ private resolveTopLevelKeys;
265
325
  /**
266
326
  * Set a header in the `AleoNetworkClient`s header map
267
327
  *
@@ -1,4 +1,4 @@
1
- import { TransportFunction } from "./utils.js";
1
+ import { TransportFunction } from "./utils/utils.js";
2
2
  import { EncryptedRecord } from "./models/record-provider/encryptedRecord.js";
3
3
  import { CryptoBoxPubKey } from "./models/cryptoBoxPubkey.js";
4
4
  import { OwnedFilter } from "./models/record-scanner/ownedFilter.js";
@@ -62,7 +62,7 @@ export interface RecordScannerOptions {
62
62
  * const recordScanner = new RecordScanner({ url: "https://record-scanner.aleo.org" });
63
63
  * recordScanner.setAccount(account);
64
64
  * recordScanner.setApiKey("example-api-key");
65
- * const result = await recordScanner.register(viewKey, 0);
65
+ * const result = await recordScanner.registerEncrypted(viewKey, 0);
66
66
  * if (result.ok) { const uuid = result.data.uuid; }
67
67
  *
68
68
  * const filter = {
@@ -200,14 +200,6 @@ declare class RecordScanner implements RecordProvider {
200
200
  * @throws Re-throws err when it is not a RecordScannerRequestError.
201
201
  */
202
202
  private handleRequestError;
203
- /**
204
- * Register the account with the record scanning service (unencrypted POST /register). Does not throw if a valid error response from the record scanner is received; returns a result object instead.
205
- *
206
- * @param {ViewKey} viewKey The view key to register.
207
- * @param {number} startBlock The block height to start scanning from.
208
- * @returns {Promise<RegisterResult>} `{ ok: true, data }` on success, or `{ ok: false, status, error }` on failure.
209
- */
210
- register(viewKey: ViewKey, startBlock: number): Promise<RegisterResult>;
211
203
  /**
212
204
  * Fetches an ephemeral public key from the record scanning service for use with registerEncrypted.
213
205
  * Follows the same pattern as the delegated proving service /pubkey endpoint.
@@ -215,6 +207,17 @@ declare class RecordScanner implements RecordProvider {
215
207
  * @returns {Promise<CryptoBoxPubKey>} The service's ephemeral public key and key_id.
216
208
  */
217
209
  getPubkey(): Promise<CryptoBoxPubKey>;
210
+ /**
211
+ * Registers the account with the record scanning service using the encrypted flow.
212
+ * Alias of {@link registerEncrypted} — preserved so existing callers using the
213
+ * previous unencrypted `register(viewKey, startBlock)` API continue to work
214
+ * unchanged while transparently using the encrypted endpoint.
215
+ *
216
+ * @param {ViewKey} viewKey The view key to register.
217
+ * @param {number} startBlock The block height to start scanning from.
218
+ * @returns {Promise<RegisterResult>} `{ ok: true, data }` on success, or `{ ok: false, status, error }` on failure.
219
+ */
220
+ register(viewKey: ViewKey, startBlock: number): Promise<RegisterResult>;
218
221
  /**
219
222
  * Registers the account with the record scanning service using the encrypted flow: 1. fetches an ephemeral public key from /pubkey - 2. encrypts the registration request (view key + start block) - 3. POSTs to /register/encrypted. Does not HTTP error on a proper error response from the record scanner; returns a result object instead.
220
223
  *
@@ -1,4 +1,4 @@
1
- import { TransportFunction } from "./utils.js";
1
+ import { TransportFunction } from "./utils/utils.js";
2
2
  import { EncryptedRecord } from "./models/record-provider/encryptedRecord.js";
3
3
  import { CryptoBoxPubKey } from "./models/cryptoBoxPubkey.js";
4
4
  import { OwnedFilter } from "./models/record-scanner/ownedFilter.js";
@@ -62,7 +62,7 @@ export interface RecordScannerOptions {
62
62
  * const recordScanner = new RecordScanner({ url: "https://record-scanner.aleo.org" });
63
63
  * recordScanner.setAccount(account);
64
64
  * recordScanner.setApiKey("example-api-key");
65
- * const result = await recordScanner.register(viewKey, 0);
65
+ * const result = await recordScanner.registerEncrypted(viewKey, 0);
66
66
  * if (result.ok) { const uuid = result.data.uuid; }
67
67
  *
68
68
  * const filter = {
@@ -200,14 +200,6 @@ declare class RecordScanner implements RecordProvider {
200
200
  * @throws Re-throws err when it is not a RecordScannerRequestError.
201
201
  */
202
202
  private handleRequestError;
203
- /**
204
- * Register the account with the record scanning service (unencrypted POST /register). Does not throw if a valid error response from the record scanner is received; returns a result object instead.
205
- *
206
- * @param {ViewKey} viewKey The view key to register.
207
- * @param {number} startBlock The block height to start scanning from.
208
- * @returns {Promise<RegisterResult>} `{ ok: true, data }` on success, or `{ ok: false, status, error }` on failure.
209
- */
210
- register(viewKey: ViewKey, startBlock: number): Promise<RegisterResult>;
211
203
  /**
212
204
  * Fetches an ephemeral public key from the record scanning service for use with registerEncrypted.
213
205
  * Follows the same pattern as the delegated proving service /pubkey endpoint.
@@ -215,6 +207,17 @@ declare class RecordScanner implements RecordProvider {
215
207
  * @returns {Promise<CryptoBoxPubKey>} The service's ephemeral public key and key_id.
216
208
  */
217
209
  getPubkey(): Promise<CryptoBoxPubKey>;
210
+ /**
211
+ * Registers the account with the record scanning service using the encrypted flow.
212
+ * Alias of {@link registerEncrypted} — preserved so existing callers using the
213
+ * previous unencrypted `register(viewKey, startBlock)` API continue to work
214
+ * unchanged while transparently using the encrypted endpoint.
215
+ *
216
+ * @param {ViewKey} viewKey The view key to register.
217
+ * @param {number} startBlock The block height to start scanning from.
218
+ * @returns {Promise<RegisterResult>} `{ ok: true, data }` on success, or `{ ok: false, status, error }` on failure.
219
+ */
220
+ register(viewKey: ViewKey, startBlock: number): Promise<RegisterResult>;
218
221
  /**
219
222
  * Registers the account with the record scanning service using the encrypted flow: 1. fetches an ephemeral public key from /pubkey - 2. encrypts the registration request (view key + start block) - 3. POSTs to /register/encrypted. Does not HTTP error on a proper error response from the record scanner; returns a result object instead.
220
223
  *
@@ -0,0 +1,3 @@
1
+ export { logger, setLogLevel, getLogLevel } from "./logger.js";
2
+ export type { LogLevel } from "./logger.js";
3
+ export { logAndThrow, retryWithBackoff, environment, isNode, TransportFunction, defaultTransport } from "./utils.js";
@@ -0,0 +1,3 @@
1
+ export { logger, setLogLevel, getLogLevel } from "./logger.js";
2
+ export type { LogLevel } from "./logger.js";
3
+ export { logAndThrow, retryWithBackoff, environment, isNode, TransportFunction, defaultTransport } from "./utils.js";
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Log levels in ascending severity. Each level includes all levels above it.
3
+ * "silent" suppresses all output. "debug" enables everything.
4
+ *
5
+ * @example
6
+ * import { setLogLevel } from "@provablehq/sdk";
7
+ * setLogLevel("silent"); // suppress all SDK logging
8
+ */
9
+ export type LogLevel = "silent" | "error" | "warn" | "info" | "debug";
10
+ /**
11
+ * Set the SDK log level. Levels are hierarchical:
12
+ * - "silent" — suppress all SDK logging
13
+ * - "error" — only errors
14
+ * - "warn" — errors + warnings
15
+ * - "info" — errors + warnings + info (default)
16
+ * - "debug" — everything including debug traces
17
+ *
18
+ * This controls both TS-side and WASM-side logging. WASM log calls
19
+ * (e.g., "Loading program", "Executing program") are silenced when
20
+ * the level is below "info".
21
+ */
22
+ export declare function setLogLevel(level: LogLevel): void;
23
+ /** Returns the current SDK log level. */
24
+ export declare function getLogLevel(): LogLevel;
25
+ /**
26
+ * SDK logger object following console.log/warn/error/debug syntax.
27
+ * Respects the current log level set via setLogLevel().
28
+ */
29
+ export declare const logger: {
30
+ log(...args: unknown[]): void;
31
+ warn(...args: unknown[]): void;
32
+ error(...args: unknown[]): void;
33
+ debug(...args: unknown[]): void;
34
+ };
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Log levels in ascending severity. Each level includes all levels above it.
3
+ * "silent" suppresses all output. "debug" enables everything.
4
+ *
5
+ * @example
6
+ * import { setLogLevel } from "@provablehq/sdk";
7
+ * setLogLevel("silent"); // suppress all SDK logging
8
+ */
9
+ export type LogLevel = "silent" | "error" | "warn" | "info" | "debug";
10
+ /**
11
+ * Set the SDK log level. Levels are hierarchical:
12
+ * - "silent" — suppress all SDK logging
13
+ * - "error" — only errors
14
+ * - "warn" — errors + warnings
15
+ * - "info" — errors + warnings + info (default)
16
+ * - "debug" — everything including debug traces
17
+ *
18
+ * This controls both TS-side and WASM-side logging. WASM log calls
19
+ * (e.g., "Loading program", "Executing program") are silenced when
20
+ * the level is below "info".
21
+ */
22
+ export declare function setLogLevel(level: LogLevel): void;
23
+ /** Returns the current SDK log level. */
24
+ export declare function getLogLevel(): LogLevel;
25
+ /**
26
+ * SDK logger object following console.log/warn/error/debug syntax.
27
+ * Respects the current log level set via setLogLevel().
28
+ */
29
+ export declare const logger: {
30
+ log(...args: unknown[]): void;
31
+ warn(...args: unknown[]): void;
32
+ error(...args: unknown[]): void;
33
+ debug(...args: unknown[]): void;
34
+ };
@@ -0,0 +1,3 @@
1
+ import { setWasmLogLevel } from '@provablehq/wasm/mainnet.js';
2
+ export { Address, Authorization, BHP1024, BHP256, BHP512, BHP768, Boolean, CallbackQuery, Ciphertext, ComputeKey, DynamicRecord, EncryptionToolkit, Execution, ExecutionRequest, ExecutionResponse, Field, GraphKey, Group, I128, I16, I32, I64, I8, Metadata, OfflineQuery, Pedersen128, Pedersen64, Plaintext, Poseidon2, Poseidon4, Poseidon8, PrivateKey, PrivateKeyCiphertext, Program, ProgramImports as ProgramImportsBuilder, ProgramManager, Proof, ProvingKey, ProvingRequest, QueryOption, RecordCiphertext, RecordPlaintext, Scalar, Signature, Transaction, Transition, U128, U16, U32, U64, U8, Value, VerifyingKey, ViewKey, getOrInitConsensusVersionTestHeights, initThreadPool, setWasmLogLevel, snarkVerify, snarkVerifyBatch, stringToField, verifyFunctionExecution } from '@provablehq/wasm/mainnet.js';
3
+ //# sourceMappingURL=wasm-Bnb_v1_O.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wasm-Bnb_v1_O.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,251 @@
1
+ 'use strict';
2
+
3
+ var mainnet_js = require('@provablehq/wasm/mainnet.js');
4
+
5
+
6
+
7
+ Object.defineProperty(exports, "Address", {
8
+ enumerable: true,
9
+ get: function () { return mainnet_js.Address; }
10
+ });
11
+ Object.defineProperty(exports, "Authorization", {
12
+ enumerable: true,
13
+ get: function () { return mainnet_js.Authorization; }
14
+ });
15
+ Object.defineProperty(exports, "BHP1024", {
16
+ enumerable: true,
17
+ get: function () { return mainnet_js.BHP1024; }
18
+ });
19
+ Object.defineProperty(exports, "BHP256", {
20
+ enumerable: true,
21
+ get: function () { return mainnet_js.BHP256; }
22
+ });
23
+ Object.defineProperty(exports, "BHP512", {
24
+ enumerable: true,
25
+ get: function () { return mainnet_js.BHP512; }
26
+ });
27
+ Object.defineProperty(exports, "BHP768", {
28
+ enumerable: true,
29
+ get: function () { return mainnet_js.BHP768; }
30
+ });
31
+ Object.defineProperty(exports, "Boolean", {
32
+ enumerable: true,
33
+ get: function () { return mainnet_js.Boolean; }
34
+ });
35
+ Object.defineProperty(exports, "CallbackQuery", {
36
+ enumerable: true,
37
+ get: function () { return mainnet_js.CallbackQuery; }
38
+ });
39
+ Object.defineProperty(exports, "Ciphertext", {
40
+ enumerable: true,
41
+ get: function () { return mainnet_js.Ciphertext; }
42
+ });
43
+ Object.defineProperty(exports, "ComputeKey", {
44
+ enumerable: true,
45
+ get: function () { return mainnet_js.ComputeKey; }
46
+ });
47
+ Object.defineProperty(exports, "DynamicRecord", {
48
+ enumerable: true,
49
+ get: function () { return mainnet_js.DynamicRecord; }
50
+ });
51
+ Object.defineProperty(exports, "EncryptionToolkit", {
52
+ enumerable: true,
53
+ get: function () { return mainnet_js.EncryptionToolkit; }
54
+ });
55
+ Object.defineProperty(exports, "Execution", {
56
+ enumerable: true,
57
+ get: function () { return mainnet_js.Execution; }
58
+ });
59
+ Object.defineProperty(exports, "ExecutionRequest", {
60
+ enumerable: true,
61
+ get: function () { return mainnet_js.ExecutionRequest; }
62
+ });
63
+ Object.defineProperty(exports, "ExecutionResponse", {
64
+ enumerable: true,
65
+ get: function () { return mainnet_js.ExecutionResponse; }
66
+ });
67
+ Object.defineProperty(exports, "Field", {
68
+ enumerable: true,
69
+ get: function () { return mainnet_js.Field; }
70
+ });
71
+ Object.defineProperty(exports, "GraphKey", {
72
+ enumerable: true,
73
+ get: function () { return mainnet_js.GraphKey; }
74
+ });
75
+ Object.defineProperty(exports, "Group", {
76
+ enumerable: true,
77
+ get: function () { return mainnet_js.Group; }
78
+ });
79
+ Object.defineProperty(exports, "I128", {
80
+ enumerable: true,
81
+ get: function () { return mainnet_js.I128; }
82
+ });
83
+ Object.defineProperty(exports, "I16", {
84
+ enumerable: true,
85
+ get: function () { return mainnet_js.I16; }
86
+ });
87
+ Object.defineProperty(exports, "I32", {
88
+ enumerable: true,
89
+ get: function () { return mainnet_js.I32; }
90
+ });
91
+ Object.defineProperty(exports, "I64", {
92
+ enumerable: true,
93
+ get: function () { return mainnet_js.I64; }
94
+ });
95
+ Object.defineProperty(exports, "I8", {
96
+ enumerable: true,
97
+ get: function () { return mainnet_js.I8; }
98
+ });
99
+ Object.defineProperty(exports, "Metadata", {
100
+ enumerable: true,
101
+ get: function () { return mainnet_js.Metadata; }
102
+ });
103
+ Object.defineProperty(exports, "OfflineQuery", {
104
+ enumerable: true,
105
+ get: function () { return mainnet_js.OfflineQuery; }
106
+ });
107
+ Object.defineProperty(exports, "Pedersen128", {
108
+ enumerable: true,
109
+ get: function () { return mainnet_js.Pedersen128; }
110
+ });
111
+ Object.defineProperty(exports, "Pedersen64", {
112
+ enumerable: true,
113
+ get: function () { return mainnet_js.Pedersen64; }
114
+ });
115
+ Object.defineProperty(exports, "Plaintext", {
116
+ enumerable: true,
117
+ get: function () { return mainnet_js.Plaintext; }
118
+ });
119
+ Object.defineProperty(exports, "Poseidon2", {
120
+ enumerable: true,
121
+ get: function () { return mainnet_js.Poseidon2; }
122
+ });
123
+ Object.defineProperty(exports, "Poseidon4", {
124
+ enumerable: true,
125
+ get: function () { return mainnet_js.Poseidon4; }
126
+ });
127
+ Object.defineProperty(exports, "Poseidon8", {
128
+ enumerable: true,
129
+ get: function () { return mainnet_js.Poseidon8; }
130
+ });
131
+ Object.defineProperty(exports, "PrivateKey", {
132
+ enumerable: true,
133
+ get: function () { return mainnet_js.PrivateKey; }
134
+ });
135
+ Object.defineProperty(exports, "PrivateKeyCiphertext", {
136
+ enumerable: true,
137
+ get: function () { return mainnet_js.PrivateKeyCiphertext; }
138
+ });
139
+ Object.defineProperty(exports, "Program", {
140
+ enumerable: true,
141
+ get: function () { return mainnet_js.Program; }
142
+ });
143
+ Object.defineProperty(exports, "ProgramImportsBuilder", {
144
+ enumerable: true,
145
+ get: function () { return mainnet_js.ProgramImports; }
146
+ });
147
+ Object.defineProperty(exports, "ProgramManager", {
148
+ enumerable: true,
149
+ get: function () { return mainnet_js.ProgramManager; }
150
+ });
151
+ Object.defineProperty(exports, "Proof", {
152
+ enumerable: true,
153
+ get: function () { return mainnet_js.Proof; }
154
+ });
155
+ Object.defineProperty(exports, "ProvingKey", {
156
+ enumerable: true,
157
+ get: function () { return mainnet_js.ProvingKey; }
158
+ });
159
+ Object.defineProperty(exports, "ProvingRequest", {
160
+ enumerable: true,
161
+ get: function () { return mainnet_js.ProvingRequest; }
162
+ });
163
+ Object.defineProperty(exports, "QueryOption", {
164
+ enumerable: true,
165
+ get: function () { return mainnet_js.QueryOption; }
166
+ });
167
+ Object.defineProperty(exports, "RecordCiphertext", {
168
+ enumerable: true,
169
+ get: function () { return mainnet_js.RecordCiphertext; }
170
+ });
171
+ Object.defineProperty(exports, "RecordPlaintext", {
172
+ enumerable: true,
173
+ get: function () { return mainnet_js.RecordPlaintext; }
174
+ });
175
+ Object.defineProperty(exports, "Scalar", {
176
+ enumerable: true,
177
+ get: function () { return mainnet_js.Scalar; }
178
+ });
179
+ Object.defineProperty(exports, "Signature", {
180
+ enumerable: true,
181
+ get: function () { return mainnet_js.Signature; }
182
+ });
183
+ Object.defineProperty(exports, "Transaction", {
184
+ enumerable: true,
185
+ get: function () { return mainnet_js.Transaction; }
186
+ });
187
+ Object.defineProperty(exports, "Transition", {
188
+ enumerable: true,
189
+ get: function () { return mainnet_js.Transition; }
190
+ });
191
+ Object.defineProperty(exports, "U128", {
192
+ enumerable: true,
193
+ get: function () { return mainnet_js.U128; }
194
+ });
195
+ Object.defineProperty(exports, "U16", {
196
+ enumerable: true,
197
+ get: function () { return mainnet_js.U16; }
198
+ });
199
+ Object.defineProperty(exports, "U32", {
200
+ enumerable: true,
201
+ get: function () { return mainnet_js.U32; }
202
+ });
203
+ Object.defineProperty(exports, "U64", {
204
+ enumerable: true,
205
+ get: function () { return mainnet_js.U64; }
206
+ });
207
+ Object.defineProperty(exports, "U8", {
208
+ enumerable: true,
209
+ get: function () { return mainnet_js.U8; }
210
+ });
211
+ Object.defineProperty(exports, "Value", {
212
+ enumerable: true,
213
+ get: function () { return mainnet_js.Value; }
214
+ });
215
+ Object.defineProperty(exports, "VerifyingKey", {
216
+ enumerable: true,
217
+ get: function () { return mainnet_js.VerifyingKey; }
218
+ });
219
+ Object.defineProperty(exports, "ViewKey", {
220
+ enumerable: true,
221
+ get: function () { return mainnet_js.ViewKey; }
222
+ });
223
+ Object.defineProperty(exports, "getOrInitConsensusVersionTestHeights", {
224
+ enumerable: true,
225
+ get: function () { return mainnet_js.getOrInitConsensusVersionTestHeights; }
226
+ });
227
+ Object.defineProperty(exports, "initThreadPool", {
228
+ enumerable: true,
229
+ get: function () { return mainnet_js.initThreadPool; }
230
+ });
231
+ Object.defineProperty(exports, "setWasmLogLevel", {
232
+ enumerable: true,
233
+ get: function () { return mainnet_js.setWasmLogLevel; }
234
+ });
235
+ Object.defineProperty(exports, "snarkVerify", {
236
+ enumerable: true,
237
+ get: function () { return mainnet_js.snarkVerify; }
238
+ });
239
+ Object.defineProperty(exports, "snarkVerifyBatch", {
240
+ enumerable: true,
241
+ get: function () { return mainnet_js.snarkVerifyBatch; }
242
+ });
243
+ Object.defineProperty(exports, "stringToField", {
244
+ enumerable: true,
245
+ get: function () { return mainnet_js.stringToField; }
246
+ });
247
+ Object.defineProperty(exports, "verifyFunctionExecution", {
248
+ enumerable: true,
249
+ get: function () { return mainnet_js.verifyFunctionExecution; }
250
+ });
251
+ //# sourceMappingURL=wasm.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wasm.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- export { Address, Authorization, Boolean, BHP256, BHP512, BHP768, BHP1024, Ciphertext, ComputeKey, DynamicRecord, EncryptionToolkit, ExecutionRequest, Execution, ExecutionResponse, Field, GraphKey, Group, I8, I16, I32, I64, I128, CallbackQuery, OfflineQuery, QueryOption, Metadata, Pedersen64, Pedersen128, Plaintext, Poseidon2, Poseidon4, Poseidon8, PrivateKey, PrivateKeyCiphertext, Program, ProgramManager, Proof, ProvingKey, ProvingRequest, RecordCiphertext, RecordPlaintext, Scalar, Signature, stringToField, Transaction, Transition, U8, U16, U32, U64, U128, Value, VerifyingKey, ViewKey, initThreadPool, getOrInitConsensusVersionTestHeights, snarkVerify, snarkVerifyBatch, verifyFunctionExecution, } from "@provablehq/wasm/mainnet.js";
1
+ export { Address, Authorization, Boolean, BHP256, BHP512, BHP768, BHP1024, Ciphertext, ComputeKey, DynamicRecord, EncryptionToolkit, ExecutionRequest, Execution, ExecutionResponse, Field, GraphKey, Group, I8, I16, I32, I64, I128, CallbackQuery, OfflineQuery, QueryOption, Metadata, Pedersen64, Pedersen128, Plaintext, Poseidon2, Poseidon4, Poseidon8, PrivateKey, PrivateKeyCiphertext, Program, ProgramImports as ProgramImportsBuilder, ProgramManager, Proof, ProvingKey, ProvingRequest, RecordCiphertext, RecordPlaintext, Scalar, Signature, stringToField, Transaction, Transition, U8, U16, U32, U64, U128, Value, VerifyingKey, ViewKey, initThreadPool, getOrInitConsensusVersionTestHeights, setWasmLogLevel, snarkVerify, snarkVerifyBatch, verifyFunctionExecution, } from "@provablehq/wasm/mainnet.js";
@@ -1 +1 @@
1
- export { Address, Authorization, Boolean, BHP256, BHP512, BHP768, BHP1024, Ciphertext, ComputeKey, DynamicRecord, EncryptionToolkit, ExecutionRequest, Execution, ExecutionResponse, Field, GraphKey, Group, I8, I16, I32, I64, I128, CallbackQuery, OfflineQuery, QueryOption, Metadata, Pedersen64, Pedersen128, Plaintext, Poseidon2, Poseidon4, Poseidon8, PrivateKey, PrivateKeyCiphertext, Program, ProgramManager, Proof, ProvingKey, ProvingRequest, RecordCiphertext, RecordPlaintext, Scalar, Signature, stringToField, Transaction, Transition, U8, U16, U32, U64, U128, Value, VerifyingKey, ViewKey, initThreadPool, getOrInitConsensusVersionTestHeights, snarkVerify, snarkVerifyBatch, verifyFunctionExecution, } from "@provablehq/wasm/mainnet.js";
1
+ export { Address, Authorization, Boolean, BHP256, BHP512, BHP768, BHP1024, Ciphertext, ComputeKey, DynamicRecord, EncryptionToolkit, ExecutionRequest, Execution, ExecutionResponse, Field, GraphKey, Group, I8, I16, I32, I64, I128, CallbackQuery, OfflineQuery, QueryOption, Metadata, Pedersen64, Pedersen128, Plaintext, Poseidon2, Poseidon4, Poseidon8, PrivateKey, PrivateKeyCiphertext, Program, ProgramImports as ProgramImportsBuilder, ProgramManager, Proof, ProvingKey, ProvingRequest, RecordCiphertext, RecordPlaintext, Scalar, Signature, stringToField, Transaction, Transition, U8, U16, U32, U64, U128, Value, VerifyingKey, ViewKey, initThreadPool, getOrInitConsensusVersionTestHeights, setWasmLogLevel, snarkVerify, snarkVerifyBatch, verifyFunctionExecution, } from "@provablehq/wasm/mainnet.js";