@aztec/bb.js 2.1.0-rc.24 → 2.1.0-rc.28
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/dest/browser/barretenberg/index.d.ts +8 -1
- package/dest/browser/barretenberg/index.d.ts.map +1 -1
- package/dest/browser/barretenberg/index.js +18 -1
- package/dest/browser/barretenberg_wasm/fetch_code/browser/barretenberg-threads.js +1 -1
- package/dest/browser/barretenberg_wasm/fetch_code/browser/barretenberg.js +1 -1
- package/dest/browser/bbapi_exception.d.ts +7 -0
- package/dest/browser/bbapi_exception.d.ts.map +1 -0
- package/dest/browser/bbapi_exception.js +14 -0
- package/dest/browser/cbind/generate.js +93 -1
- package/dest/browser/cbind/generated/api_types.d.ts +242 -0
- package/dest/browser/cbind/generated/api_types.d.ts.map +1 -1
- package/dest/browser/cbind/generated/api_types.js +319 -1
- package/dest/browser/cbind/generated/async.d.ts +7 -1
- package/dest/browser/cbind/generated/async.d.ts.map +1 -1
- package/dest/browser/cbind/generated/async.js +135 -17
- package/dest/browser/cbind/generated/curve_constants.d.ts +45 -0
- package/dest/browser/cbind/generated/curve_constants.d.ts.map +1 -0
- package/dest/browser/cbind/generated/curve_constants.js +45 -0
- package/dest/browser/cbind/generated/native.d.ts +7 -1
- package/dest/browser/cbind/generated/native.d.ts.map +1 -1
- package/dest/browser/cbind/generated/native.js +56 -2
- package/dest/browser/cbind/generated/sync.d.ts +7 -1
- package/dest/browser/cbind/generated/sync.d.ts.map +1 -1
- package/dest/browser/cbind/generated/sync.js +129 -17
- package/dest/browser/cbind/schema_compiler.d.ts.map +1 -1
- package/dest/browser/cbind/schema_compiler.js +31 -7
- package/dest/browser/index.d.ts +4 -1
- package/dest/browser/index.d.ts.map +1 -1
- package/dest/browser/index.js +5 -2
- package/dest/node/barretenberg/index.d.ts +8 -1
- package/dest/node/barretenberg/index.d.ts.map +1 -1
- package/dest/node/barretenberg/index.js +18 -1
- package/dest/node/barretenberg_wasm/barretenberg-threads.wasm.gz +0 -0
- package/dest/node/bbapi_exception.d.ts +7 -0
- package/dest/node/bbapi_exception.d.ts.map +1 -0
- package/dest/node/bbapi_exception.js +14 -0
- package/dest/node/cbind/generate.js +93 -1
- package/dest/node/cbind/generated/api_types.d.ts +242 -0
- package/dest/node/cbind/generated/api_types.d.ts.map +1 -1
- package/dest/node/cbind/generated/api_types.js +319 -1
- package/dest/node/cbind/generated/async.d.ts +7 -1
- package/dest/node/cbind/generated/async.d.ts.map +1 -1
- package/dest/node/cbind/generated/async.js +135 -17
- package/dest/node/cbind/generated/curve_constants.d.ts +45 -0
- package/dest/node/cbind/generated/curve_constants.d.ts.map +1 -0
- package/dest/node/cbind/generated/curve_constants.js +45 -0
- package/dest/node/cbind/generated/native.d.ts +7 -1
- package/dest/node/cbind/generated/native.d.ts.map +1 -1
- package/dest/node/cbind/generated/native.js +56 -2
- package/dest/node/cbind/generated/sync.d.ts +7 -1
- package/dest/node/cbind/generated/sync.d.ts.map +1 -1
- package/dest/node/cbind/generated/sync.js +129 -17
- package/dest/node/cbind/schema_compiler.d.ts.map +1 -1
- package/dest/node/cbind/schema_compiler.js +31 -7
- package/dest/node/index.d.ts +4 -1
- package/dest/node/index.d.ts.map +1 -1
- package/dest/node/index.js +5 -2
- package/dest/node/main.d.ts +0 -10
- package/dest/node/main.d.ts.map +1 -1
- package/dest/node/main.js +469 -457
- package/dest/node-cjs/barretenberg/index.d.ts +8 -1
- package/dest/node-cjs/barretenberg/index.d.ts.map +1 -1
- package/dest/node-cjs/barretenberg/index.js +18 -1
- package/dest/node-cjs/barretenberg_wasm/barretenberg-threads.wasm.gz +0 -0
- package/dest/node-cjs/bbapi_exception.d.ts +7 -0
- package/dest/node-cjs/bbapi_exception.d.ts.map +1 -0
- package/dest/node-cjs/bbapi_exception.js +18 -0
- package/dest/node-cjs/cbind/generate.js +93 -1
- package/dest/node-cjs/cbind/generated/api_types.d.ts +242 -0
- package/dest/node-cjs/cbind/generated/api_types.d.ts.map +1 -1
- package/dest/node-cjs/cbind/generated/api_types.js +349 -1
- package/dest/node-cjs/cbind/generated/async.d.ts +7 -1
- package/dest/node-cjs/cbind/generated/async.d.ts.map +1 -1
- package/dest/node-cjs/cbind/generated/async.js +134 -16
- package/dest/node-cjs/cbind/generated/curve_constants.d.ts +45 -0
- package/dest/node-cjs/cbind/generated/curve_constants.d.ts.map +1 -0
- package/dest/node-cjs/cbind/generated/curve_constants.js +48 -0
- package/dest/node-cjs/cbind/generated/native.d.ts +7 -1
- package/dest/node-cjs/cbind/generated/native.d.ts.map +1 -1
- package/dest/node-cjs/cbind/generated/native.js +55 -1
- package/dest/node-cjs/cbind/generated/sync.d.ts +7 -1
- package/dest/node-cjs/cbind/generated/sync.d.ts.map +1 -1
- package/dest/node-cjs/cbind/generated/sync.js +128 -16
- package/dest/node-cjs/cbind/schema_compiler.d.ts.map +1 -1
- package/dest/node-cjs/cbind/schema_compiler.js +31 -7
- package/dest/node-cjs/index.d.ts +4 -1
- package/dest/node-cjs/index.d.ts.map +1 -1
- package/dest/node-cjs/index.js +24 -7
- package/dest/node-cjs/main.d.ts +0 -10
- package/dest/node-cjs/main.d.ts.map +1 -1
- package/dest/node-cjs/main.js +469 -466
- package/package.json +1 -1
- package/src/barretenberg/index.ts +20 -1
- package/src/bbapi_exception.ts +13 -0
- package/src/cbind/generate.ts +99 -0
- package/src/cbind/schema_compiler.ts +33 -6
- package/src/index.ts +26 -1
- package/src/main.ts +533 -532
package/dest/node-cjs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deflattenFields = exports.reconstructHonkProof = exports.splitHonkProof = exports.
|
|
3
|
+
exports.SECP256R1_G1_GENERATOR = exports.SECP256R1_FQ_MODULUS = exports.SECP256R1_FR_MODULUS = exports.SECP256K1_G1_GENERATOR = exports.SECP256K1_FQ_MODULUS = exports.SECP256K1_FR_MODULUS = exports.GRUMPKIN_G1_GENERATOR = exports.GRUMPKIN_FQ_MODULUS = exports.GRUMPKIN_FR_MODULUS = exports.BN254_G2_GENERATOR = exports.BN254_G1_GENERATOR = exports.BN254_FR_MODULUS = exports.BN254_FQ_MODULUS = exports.BBApiException = exports.deflattenFields = exports.reconstructHonkProof = exports.splitHonkProof = exports.randomBytes = exports.Fr = exports.RawBuffer = exports.AztecClientBackend = exports.UltraHonkBackend = exports.UltraHonkVerifierBackend = exports.BarretenbergSync = exports.Barretenberg = exports.GrumpkinCrs = exports.Crs = void 0;
|
|
4
4
|
var index_js_1 = require("./crs/index.js");
|
|
5
5
|
Object.defineProperty(exports, "Crs", { enumerable: true, get: function () { return index_js_1.Crs; } });
|
|
6
6
|
Object.defineProperty(exports, "GrumpkinCrs", { enumerable: true, get: function () { return index_js_1.GrumpkinCrs; } });
|
|
@@ -10,13 +10,30 @@ Object.defineProperty(exports, "BarretenbergSync", { enumerable: true, get: func
|
|
|
10
10
|
Object.defineProperty(exports, "UltraHonkVerifierBackend", { enumerable: true, get: function () { return index_js_2.UltraHonkVerifierBackend; } });
|
|
11
11
|
Object.defineProperty(exports, "UltraHonkBackend", { enumerable: true, get: function () { return index_js_2.UltraHonkBackend; } });
|
|
12
12
|
Object.defineProperty(exports, "AztecClientBackend", { enumerable: true, get: function () { return index_js_2.AztecClientBackend; } });
|
|
13
|
-
var index_js_3 = require("./
|
|
14
|
-
Object.defineProperty(exports, "
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
Object.defineProperty(exports, "
|
|
13
|
+
var index_js_3 = require("./types/index.js");
|
|
14
|
+
Object.defineProperty(exports, "RawBuffer", { enumerable: true, get: function () { return index_js_3.RawBuffer; } });
|
|
15
|
+
Object.defineProperty(exports, "Fr", { enumerable: true, get: function () { return index_js_3.Fr; } });
|
|
16
|
+
var index_js_4 = require("./random/index.js");
|
|
17
|
+
Object.defineProperty(exports, "randomBytes", { enumerable: true, get: function () { return index_js_4.randomBytes; } });
|
|
18
18
|
var index_js_5 = require("./proof/index.js");
|
|
19
19
|
Object.defineProperty(exports, "splitHonkProof", { enumerable: true, get: function () { return index_js_5.splitHonkProof; } });
|
|
20
20
|
Object.defineProperty(exports, "reconstructHonkProof", { enumerable: true, get: function () { return index_js_5.reconstructHonkProof; } });
|
|
21
21
|
Object.defineProperty(exports, "deflattenFields", { enumerable: true, get: function () { return index_js_5.deflattenFields; } });
|
|
22
|
-
|
|
22
|
+
var bbapi_exception_js_1 = require("./bbapi_exception.js");
|
|
23
|
+
Object.defineProperty(exports, "BBApiException", { enumerable: true, get: function () { return bbapi_exception_js_1.BBApiException; } });
|
|
24
|
+
// Export curve constants for use in foundation
|
|
25
|
+
var curve_constants_js_1 = require("./cbind/generated/curve_constants.js");
|
|
26
|
+
Object.defineProperty(exports, "BN254_FQ_MODULUS", { enumerable: true, get: function () { return curve_constants_js_1.BN254_FQ_MODULUS; } });
|
|
27
|
+
Object.defineProperty(exports, "BN254_FR_MODULUS", { enumerable: true, get: function () { return curve_constants_js_1.BN254_FR_MODULUS; } });
|
|
28
|
+
Object.defineProperty(exports, "BN254_G1_GENERATOR", { enumerable: true, get: function () { return curve_constants_js_1.BN254_G1_GENERATOR; } });
|
|
29
|
+
Object.defineProperty(exports, "BN254_G2_GENERATOR", { enumerable: true, get: function () { return curve_constants_js_1.BN254_G2_GENERATOR; } });
|
|
30
|
+
Object.defineProperty(exports, "GRUMPKIN_FR_MODULUS", { enumerable: true, get: function () { return curve_constants_js_1.GRUMPKIN_FR_MODULUS; } });
|
|
31
|
+
Object.defineProperty(exports, "GRUMPKIN_FQ_MODULUS", { enumerable: true, get: function () { return curve_constants_js_1.GRUMPKIN_FQ_MODULUS; } });
|
|
32
|
+
Object.defineProperty(exports, "GRUMPKIN_G1_GENERATOR", { enumerable: true, get: function () { return curve_constants_js_1.GRUMPKIN_G1_GENERATOR; } });
|
|
33
|
+
Object.defineProperty(exports, "SECP256K1_FR_MODULUS", { enumerable: true, get: function () { return curve_constants_js_1.SECP256K1_FR_MODULUS; } });
|
|
34
|
+
Object.defineProperty(exports, "SECP256K1_FQ_MODULUS", { enumerable: true, get: function () { return curve_constants_js_1.SECP256K1_FQ_MODULUS; } });
|
|
35
|
+
Object.defineProperty(exports, "SECP256K1_G1_GENERATOR", { enumerable: true, get: function () { return curve_constants_js_1.SECP256K1_G1_GENERATOR; } });
|
|
36
|
+
Object.defineProperty(exports, "SECP256R1_FR_MODULUS", { enumerable: true, get: function () { return curve_constants_js_1.SECP256R1_FR_MODULUS; } });
|
|
37
|
+
Object.defineProperty(exports, "SECP256R1_FQ_MODULUS", { enumerable: true, get: function () { return curve_constants_js_1.SECP256R1_FQ_MODULUS; } });
|
|
38
|
+
Object.defineProperty(exports, "SECP256R1_G1_GENERATOR", { enumerable: true, get: function () { return curve_constants_js_1.SECP256R1_G1_GENERATOR; } });
|
|
39
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsMkNBQWtEO0FBQXpDLCtGQUFBLEdBQUcsT0FBQTtBQUFFLHVHQUFBLFdBQVcsT0FBQTtBQUN6QixvREFPaUM7QUFML0Isd0dBQUEsWUFBWSxPQUFBO0FBQ1osNEdBQUEsZ0JBQWdCLE9BQUE7QUFDaEIsb0hBQUEsd0JBQXdCLE9BQUE7QUFDeEIsNEdBQUEsZ0JBQWdCLE9BQUE7QUFDaEIsOEdBQUEsa0JBQWtCLE9BQUE7QUFHcEIsNkNBQWlEO0FBQXhDLHFHQUFBLFNBQVMsT0FBQTtBQUFFLDhGQUFBLEVBQUUsT0FBQTtBQUN0Qiw4Q0FBZ0Q7QUFBdkMsdUdBQUEsV0FBVyxPQUFBO0FBQ3BCLDZDQUF5RztBQUFoRywwR0FBQSxjQUFjLE9BQUE7QUFBRSxnSEFBQSxvQkFBb0IsT0FBQTtBQUFFLDJHQUFBLGVBQWUsT0FBQTtBQUM5RCwyREFBc0Q7QUFBN0Msb0hBQUEsY0FBYyxPQUFBO0FBU3ZCLCtDQUErQztBQUMvQywyRUFjOEM7QUFiNUMsc0hBQUEsZ0JBQWdCLE9BQUE7QUFDaEIsc0hBQUEsZ0JBQWdCLE9BQUE7QUFDaEIsd0hBQUEsa0JBQWtCLE9BQUE7QUFDbEIsd0hBQUEsa0JBQWtCLE9BQUE7QUFDbEIseUhBQUEsbUJBQW1CLE9BQUE7QUFDbkIseUhBQUEsbUJBQW1CLE9BQUE7QUFDbkIsMkhBQUEscUJBQXFCLE9BQUE7QUFDckIsMEhBQUEsb0JBQW9CLE9BQUE7QUFDcEIsMEhBQUEsb0JBQW9CLE9BQUE7QUFDcEIsNEhBQUEsc0JBQXNCLE9BQUE7QUFDdEIsMEhBQUEsb0JBQW9CLE9BQUE7QUFDcEIsMEhBQUEsb0JBQW9CLE9BQUE7QUFDcEIsNEhBQUEsc0JBQXNCLE9BQUEifQ==
|
package/dest/node-cjs/main.d.ts
CHANGED
|
@@ -1,13 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import 'source-map-support/register.js';
|
|
3
|
-
import { UltraHonkBackendOptions } from './barretenberg/backend.js';
|
|
4
|
-
export declare function proveAndVerifyUltraHonk(bytecodePath: string, witnessPath: string, crsPath: string): Promise<boolean>;
|
|
5
|
-
export declare function proveAndVerifyMegaHonk(bytecodePath: string, witnessPath: string, crsPath: string): Promise<boolean>;
|
|
6
|
-
export declare function gateCountUltra(bytecodePath: string, recursive: boolean, honkRecursion: boolean): Promise<void>;
|
|
7
|
-
export declare function contractUltraHonk(bytecodePath: string, vkPath: string, crsPath: string, outputPath: string): Promise<void>;
|
|
8
|
-
export declare function proveUltraHonk(bytecodePath: string, witnessPath: string, crsPath: string, vkPath: string, outputPath: string, options?: UltraHonkBackendOptions): Promise<void>;
|
|
9
|
-
export declare function writeVkUltraHonk(bytecodePath: string, crsPath: string, outputPath: string, options?: UltraHonkBackendOptions): Promise<void>;
|
|
10
|
-
export declare function verifyUltraHonk(proofPath: string, vkPath: string, crsPath: string, options?: UltraHonkBackendOptions): Promise<boolean>;
|
|
11
|
-
export declare function proofAsFieldsUltraHonk(proofPath: string, outputPath: string, crsPath: string): Promise<void>;
|
|
12
|
-
export declare function vkAsFieldsUltraHonk(vkPath: string, vkeyOutputPath: string, crsPath: string): Promise<void>;
|
|
13
3
|
//# sourceMappingURL=main.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":";AACA,OAAO,gCAAgC,CAAC
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":";AACA,OAAO,gCAAgC,CAAC"}
|