@aztec/bb.js 3.0.0-devnet.2 → 3.0.0-devnet.2-patch.1
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/build/amd64-linux/bb +0 -0
- package/build/amd64-linux/nodejs_module.node +0 -0
- package/build/amd64-macos/bb +0 -0
- package/build/amd64-macos/nodejs_module.node +0 -0
- package/build/arm64-linux/bb +0 -0
- package/build/arm64-linux/nodejs_module.node +0 -0
- package/build/arm64-macos/bb +0 -0
- package/build/arm64-macos/nodejs_module.node +0 -0
- package/dest/browser/async_map/index.d.ts +1 -1
- package/dest/browser/async_map/index.js +1 -1
- package/dest/browser/barretenberg/backend.d.ts +30 -39
- package/dest/browser/barretenberg/backend.d.ts.map +1 -1
- package/dest/browser/barretenberg/backend.js +103 -98
- package/dest/browser/barretenberg/index.d.ts +4 -6
- package/dest/browser/barretenberg/index.d.ts.map +1 -1
- package/dest/browser/barretenberg/index.js +20 -29
- package/dest/browser/barretenberg/testing/bigint-buffer.d.ts +17 -0
- package/dest/browser/barretenberg/testing/bigint-buffer.d.ts.map +1 -0
- package/dest/browser/barretenberg/testing/bigint-buffer.js +37 -0
- package/dest/browser/barretenberg/testing/fields.d.ts +16 -0
- package/dest/browser/barretenberg/testing/fields.d.ts.map +1 -0
- package/dest/browser/barretenberg/testing/fields.js +47 -0
- package/dest/browser/barretenberg_wasm/barretenberg_wasm_base/index.d.ts +1 -1
- package/dest/browser/barretenberg_wasm/barretenberg_wasm_base/index.d.ts.map +1 -1
- package/dest/browser/barretenberg_wasm/barretenberg_wasm_base/index.js +5 -6
- package/dest/browser/barretenberg_wasm/barretenberg_wasm_main/factory/browser/index.d.ts +1 -1
- package/dest/browser/barretenberg_wasm/barretenberg_wasm_main/factory/browser/index.d.ts.map +1 -1
- package/dest/browser/barretenberg_wasm/barretenberg_wasm_main/factory/browser/index.js +1 -3
- package/dest/browser/barretenberg_wasm/barretenberg_wasm_main/factory/browser/main.worker.d.ts +1 -1
- package/dest/browser/barretenberg_wasm/barretenberg_wasm_main/factory/browser/main.worker.js +1 -7
- package/dest/browser/barretenberg_wasm/barretenberg_wasm_main/heap_allocator.d.ts +1 -1
- package/dest/browser/barretenberg_wasm/barretenberg_wasm_main/heap_allocator.d.ts.map +1 -1
- package/dest/browser/barretenberg_wasm/barretenberg_wasm_main/heap_allocator.js +5 -4
- package/dest/browser/barretenberg_wasm/barretenberg_wasm_main/index.d.ts +13 -7
- package/dest/browser/barretenberg_wasm/barretenberg_wasm_main/index.d.ts.map +1 -1
- package/dest/browser/barretenberg_wasm/barretenberg_wasm_main/index.js +45 -18
- package/dest/browser/barretenberg_wasm/barretenberg_wasm_thread/factory/browser/index.d.ts +1 -1
- package/dest/browser/barretenberg_wasm/barretenberg_wasm_thread/factory/browser/index.d.ts.map +1 -1
- package/dest/browser/barretenberg_wasm/barretenberg_wasm_thread/factory/browser/index.js +1 -3
- package/dest/browser/barretenberg_wasm/barretenberg_wasm_thread/factory/browser/thread.worker.d.ts +1 -1
- package/dest/browser/barretenberg_wasm/barretenberg_wasm_thread/factory/browser/thread.worker.js +1 -7
- package/dest/browser/barretenberg_wasm/barretenberg_wasm_thread/index.d.ts +9 -8
- package/dest/browser/barretenberg_wasm/barretenberg_wasm_thread/index.d.ts.map +1 -1
- package/dest/browser/barretenberg_wasm/barretenberg_wasm_thread/index.js +4 -3
- package/dest/browser/barretenberg_wasm/fetch_code/browser/barretenberg-threads.d.ts +1 -1
- package/dest/browser/barretenberg_wasm/fetch_code/browser/barretenberg-threads.js +1 -1
- package/dest/browser/barretenberg_wasm/fetch_code/browser/barretenberg.d.ts +1 -1
- package/dest/browser/barretenberg_wasm/fetch_code/browser/barretenberg.js +1 -1
- package/dest/browser/barretenberg_wasm/fetch_code/browser/index.d.ts +1 -1
- package/dest/browser/barretenberg_wasm/fetch_code/browser/index.js +1 -1
- package/dest/browser/barretenberg_wasm/fetch_code/index.d.ts +1 -1
- package/dest/browser/barretenberg_wasm/helpers/browser/index.d.ts +2 -2
- package/dest/browser/barretenberg_wasm/helpers/browser/index.d.ts.map +1 -1
- package/dest/browser/barretenberg_wasm/helpers/browser/index.js +9 -2
- package/dest/browser/barretenberg_wasm/helpers/index.d.ts +1 -1
- package/dest/browser/barretenberg_wasm/index.d.ts +1 -1
- package/dest/browser/barretenberg_wasm/index.d.ts.map +1 -1
- package/dest/browser/barretenberg_wasm/index.js +2 -3
- package/dest/browser/bb_backends/browser/index.d.ts +1 -1
- package/dest/browser/bb_backends/browser/index.js +1 -1
- package/dest/browser/bb_backends/browser/platform.d.ts +4 -0
- package/dest/browser/bb_backends/browser/platform.d.ts.map +1 -0
- package/dest/browser/bb_backends/browser/platform.js +10 -0
- package/dest/browser/bb_backends/index.d.ts +12 -7
- package/dest/browser/bb_backends/index.d.ts.map +1 -1
- package/dest/browser/bb_backends/index.js +8 -7
- package/dest/browser/bb_backends/interface.d.ts +1 -1
- package/dest/browser/bb_backends/wasm.d.ts +1 -1
- package/dest/browser/bb_backends/wasm.d.ts.map +1 -1
- package/dest/browser/bb_backends/wasm.js +5 -3
- 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/bin/index.d.ts +3 -0
- package/dest/browser/bin/index.d.ts.map +1 -0
- package/dest/browser/bin/index.js +11 -0
- package/dest/browser/cbind/generate.d.ts +1 -1
- package/dest/browser/cbind/generate.js +93 -1
- package/dest/browser/cbind/generated/api_types.d.ts +632 -400
- package/dest/browser/cbind/generated/api_types.d.ts.map +1 -1
- package/dest/browser/cbind/generated/api_types.js +773 -465
- package/dest/browser/cbind/generated/async.d.ts +16 -11
- package/dest/browser/cbind/generated/async.d.ts.map +1 -1
- package/dest/browser/cbind/generated/async.js +305 -96
- 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/sync.d.ts +16 -11
- package/dest/browser/cbind/generated/sync.d.ts.map +1 -1
- package/dest/browser/cbind/generated/sync.js +300 -96
- package/dest/browser/cbind/schema_compiler.d.ts +1 -1
- package/dest/browser/cbind/schema_compiler.d.ts.map +1 -1
- package/dest/browser/cbind/schema_compiler.js +29 -8
- package/dest/browser/crs/browser/cached_net_crs.d.ts +1 -1
- package/dest/browser/crs/browser/cached_net_crs.d.ts.map +1 -1
- package/dest/browser/crs/browser/cached_net_crs.js +6 -1
- package/dest/browser/crs/browser/index.d.ts +1 -1
- package/dest/browser/crs/index.d.ts +1 -1
- package/dest/browser/crs/net_crs.d.ts +1 -16
- package/dest/browser/crs/net_crs.d.ts.map +1 -1
- package/dest/browser/crs/net_crs.js +6 -1
- package/dest/browser/index.d.ts +6 -3
- package/dest/browser/index.d.ts.map +1 -1
- package/dest/browser/index.js +5 -2
- package/dest/browser/proof/index.d.ts +1 -1
- package/dest/browser/proof/index.js +1 -1
- package/dest/browser/random/browser/index.d.ts +1 -1
- package/dest/browser/random/browser/index.d.ts.map +1 -1
- package/dest/browser/random/browser/index.js +1 -1
- package/dest/browser/random/index.d.ts +1 -1
- package/dest/browser/retry/index.d.ts +1 -1
- package/dest/browser/retry/index.js +1 -1
- package/dest/node/async_map/index.d.ts +1 -1
- package/dest/node/async_map/index.js +1 -1
- package/dest/node/barretenberg/backend.d.ts +30 -39
- package/dest/node/barretenberg/backend.d.ts.map +1 -1
- package/dest/node/barretenberg/backend.js +103 -98
- package/dest/node/barretenberg/blake2s.test.d.ts +1 -1
- package/dest/node/barretenberg/blake2s.test.js +2 -2
- package/dest/node/barretenberg/index.d.ts +4 -6
- package/dest/node/barretenberg/index.d.ts.map +1 -1
- package/dest/node/barretenberg/index.js +20 -29
- package/dest/node/barretenberg/pedersen.test.d.ts +1 -1
- package/dest/node/barretenberg/pedersen.test.js +2 -2
- package/dest/node/barretenberg/poseidon.bench.test.d.ts +1 -1
- package/dest/node/barretenberg/poseidon.bench.test.js +81 -79
- package/dest/node/barretenberg/poseidon.test.d.ts +1 -1
- package/dest/node/barretenberg/poseidon.test.js +2 -2
- package/dest/node/barretenberg/testing/bigint-buffer.d.ts +17 -0
- package/dest/node/barretenberg/testing/bigint-buffer.d.ts.map +1 -0
- package/dest/node/barretenberg/testing/bigint-buffer.js +37 -0
- package/dest/node/barretenberg/testing/fields.d.ts +16 -0
- package/dest/node/barretenberg/testing/fields.d.ts.map +1 -0
- package/dest/node/barretenberg/testing/fields.js +47 -0
- package/dest/node/barretenberg_wasm/barretenberg-threads.wasm.gz +0 -0
- package/dest/node/barretenberg_wasm/barretenberg_wasm_base/index.d.ts +1 -1
- package/dest/node/barretenberg_wasm/barretenberg_wasm_base/index.d.ts.map +1 -1
- package/dest/node/barretenberg_wasm/barretenberg_wasm_base/index.js +5 -6
- package/dest/node/barretenberg_wasm/barretenberg_wasm_main/factory/browser/index.d.ts +1 -1
- package/dest/node/barretenberg_wasm/barretenberg_wasm_main/factory/browser/index.d.ts.map +1 -1
- package/dest/node/barretenberg_wasm/barretenberg_wasm_main/factory/browser/index.js +1 -3
- package/dest/node/barretenberg_wasm/barretenberg_wasm_main/factory/browser/main.worker.d.ts +1 -1
- package/dest/node/barretenberg_wasm/barretenberg_wasm_main/factory/browser/main.worker.js +1 -7
- package/dest/node/barretenberg_wasm/barretenberg_wasm_main/factory/node/index.d.ts +1 -1
- package/dest/node/barretenberg_wasm/barretenberg_wasm_main/factory/node/index.d.ts.map +1 -1
- package/dest/node/barretenberg_wasm/barretenberg_wasm_main/factory/node/index.js +1 -3
- package/dest/node/barretenberg_wasm/barretenberg_wasm_main/factory/node/main.worker.d.ts +1 -1
- package/dest/node/barretenberg_wasm/barretenberg_wasm_main/factory/node/main.worker.js +1 -8
- package/dest/node/barretenberg_wasm/barretenberg_wasm_main/heap_allocator.d.ts +1 -1
- package/dest/node/barretenberg_wasm/barretenberg_wasm_main/heap_allocator.d.ts.map +1 -1
- package/dest/node/barretenberg_wasm/barretenberg_wasm_main/heap_allocator.js +5 -4
- package/dest/node/barretenberg_wasm/barretenberg_wasm_main/index.d.ts +13 -7
- package/dest/node/barretenberg_wasm/barretenberg_wasm_main/index.d.ts.map +1 -1
- package/dest/node/barretenberg_wasm/barretenberg_wasm_main/index.js +45 -18
- package/dest/node/barretenberg_wasm/barretenberg_wasm_thread/factory/browser/index.d.ts +1 -1
- package/dest/node/barretenberg_wasm/barretenberg_wasm_thread/factory/browser/index.d.ts.map +1 -1
- package/dest/node/barretenberg_wasm/barretenberg_wasm_thread/factory/browser/index.js +1 -3
- package/dest/node/barretenberg_wasm/barretenberg_wasm_thread/factory/browser/thread.worker.d.ts +1 -1
- package/dest/node/barretenberg_wasm/barretenberg_wasm_thread/factory/browser/thread.worker.js +1 -7
- package/dest/node/barretenberg_wasm/barretenberg_wasm_thread/factory/node/index.d.ts +1 -1
- package/dest/node/barretenberg_wasm/barretenberg_wasm_thread/factory/node/index.d.ts.map +1 -1
- package/dest/node/barretenberg_wasm/barretenberg_wasm_thread/factory/node/index.js +1 -3
- package/dest/node/barretenberg_wasm/barretenberg_wasm_thread/factory/node/thread.worker.d.ts +1 -1
- package/dest/node/barretenberg_wasm/barretenberg_wasm_thread/factory/node/thread.worker.js +1 -7
- package/dest/node/barretenberg_wasm/barretenberg_wasm_thread/index.d.ts +9 -8
- package/dest/node/barretenberg_wasm/barretenberg_wasm_thread/index.d.ts.map +1 -1
- package/dest/node/barretenberg_wasm/barretenberg_wasm_thread/index.js +4 -3
- package/dest/node/barretenberg_wasm/fetch_code/browser/barretenberg-threads.d.ts +1 -1
- package/dest/node/barretenberg_wasm/fetch_code/browser/barretenberg.d.ts +1 -1
- package/dest/node/barretenberg_wasm/fetch_code/browser/index.d.ts +1 -1
- package/dest/node/barretenberg_wasm/fetch_code/browser/index.js +1 -1
- package/dest/node/barretenberg_wasm/fetch_code/index.d.ts +1 -1
- package/dest/node/barretenberg_wasm/fetch_code/node/index.d.ts +1 -1
- package/dest/node/barretenberg_wasm/fetch_code/node/index.js +1 -1
- package/dest/node/barretenberg_wasm/helpers/browser/index.d.ts +2 -2
- package/dest/node/barretenberg_wasm/helpers/browser/index.d.ts.map +1 -1
- package/dest/node/barretenberg_wasm/helpers/browser/index.js +9 -2
- package/dest/node/barretenberg_wasm/helpers/index.d.ts +1 -1
- package/dest/node/barretenberg_wasm/helpers/node/index.d.ts +5 -6
- package/dest/node/barretenberg_wasm/helpers/node/index.d.ts.map +1 -1
- package/dest/node/barretenberg_wasm/helpers/node/index.js +14 -6
- package/dest/node/barretenberg_wasm/helpers/node/node_endpoint.d.ts +2 -2
- package/dest/node/barretenberg_wasm/helpers/node/node_endpoint.d.ts.map +1 -1
- package/dest/node/barretenberg_wasm/helpers/node/node_endpoint.js +1 -1
- package/dest/node/barretenberg_wasm/index.d.ts +1 -1
- package/dest/node/barretenberg_wasm/index.d.ts.map +1 -1
- package/dest/node/barretenberg_wasm/index.js +2 -3
- package/dest/node/barretenberg_wasm/index.test.d.ts +1 -1
- package/dest/node/barretenberg_wasm/index.test.js +1 -1
- package/dest/node/bb_backends/browser/index.d.ts +1 -1
- package/dest/node/bb_backends/browser/index.js +1 -1
- package/dest/node/bb_backends/browser/platform.d.ts +4 -0
- package/dest/node/bb_backends/browser/platform.d.ts.map +1 -0
- package/dest/node/bb_backends/browser/platform.js +10 -0
- package/dest/node/bb_backends/index.d.ts +12 -7
- package/dest/node/bb_backends/index.d.ts.map +1 -1
- package/dest/node/bb_backends/index.js +8 -7
- package/dest/node/bb_backends/interface.d.ts +1 -1
- package/dest/node/bb_backends/node/index.d.ts +1 -1
- package/dest/node/bb_backends/node/index.d.ts.map +1 -1
- package/dest/node/bb_backends/node/index.js +17 -11
- package/dest/node/bb_backends/node/native_pipe.d.ts +1 -1
- package/dest/node/bb_backends/node/native_pipe.d.ts.map +1 -1
- package/dest/node/bb_backends/node/native_pipe.js +11 -10
- package/dest/node/bb_backends/node/native_shm.d.ts +3 -3
- package/dest/node/bb_backends/node/native_shm.d.ts.map +1 -1
- package/dest/node/bb_backends/node/native_shm.js +61 -39
- package/dest/node/bb_backends/node/native_shm_async.d.ts +51 -0
- package/dest/node/bb_backends/node/native_shm_async.d.ts.map +1 -0
- package/dest/node/bb_backends/node/native_shm_async.js +232 -0
- package/dest/node/bb_backends/node/native_socket.d.ts +2 -2
- package/dest/node/bb_backends/node/native_socket.d.ts.map +1 -1
- package/dest/node/bb_backends/node/native_socket.js +43 -31
- package/dest/node/bb_backends/node/platform.d.ts +1 -1
- package/dest/node/bb_backends/node/platform.d.ts.map +1 -1
- package/dest/node/bb_backends/node/platform.js +7 -2
- package/dest/node/bb_backends/wasm.d.ts +1 -1
- package/dest/node/bb_backends/wasm.d.ts.map +1 -1
- package/dest/node/bb_backends/wasm.js +5 -3
- package/dest/node/bbapi/exception_handling.test.d.ts +2 -0
- package/dest/node/bbapi/exception_handling.test.d.ts.map +1 -0
- package/dest/node/bbapi/exception_handling.test.js +48 -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/benchmark/index.d.ts +1 -1
- package/dest/node/benchmark/index.js +1 -1
- package/dest/node/benchmark/timer.d.ts +1 -1
- package/dest/node/benchmark/timer.d.ts.map +1 -1
- package/dest/node/benchmark/timer.js +2 -1
- package/dest/node/bin/index.d.ts +3 -0
- package/dest/node/bin/index.d.ts.map +1 -0
- package/dest/node/bin/index.js +11 -0
- package/dest/node/cbind/generate.d.ts +1 -1
- package/dest/node/cbind/generate.js +93 -1
- package/dest/node/cbind/generated/api_types.d.ts +632 -400
- package/dest/node/cbind/generated/api_types.d.ts.map +1 -1
- package/dest/node/cbind/generated/api_types.js +773 -465
- package/dest/node/cbind/generated/async.d.ts +16 -11
- package/dest/node/cbind/generated/async.d.ts.map +1 -1
- package/dest/node/cbind/generated/async.js +305 -96
- 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/sync.d.ts +16 -11
- package/dest/node/cbind/generated/sync.d.ts.map +1 -1
- package/dest/node/cbind/generated/sync.js +300 -96
- package/dest/node/cbind/schema_compiler.d.ts +1 -1
- package/dest/node/cbind/schema_compiler.d.ts.map +1 -1
- package/dest/node/cbind/schema_compiler.js +29 -8
- package/dest/node/crs/browser/cached_net_crs.d.ts +1 -1
- package/dest/node/crs/browser/cached_net_crs.d.ts.map +1 -1
- package/dest/node/crs/browser/cached_net_crs.js +6 -1
- package/dest/node/crs/browser/index.d.ts +1 -1
- package/dest/node/crs/index.d.ts +1 -1
- package/dest/node/crs/net_crs.d.ts +1 -16
- package/dest/node/crs/net_crs.d.ts.map +1 -1
- package/dest/node/crs/net_crs.js +6 -1
- package/dest/node/crs/node/index.d.ts +1 -1
- package/dest/node/crs/node/index.d.ts.map +1 -1
- package/dest/node/crs/node/index.js +11 -6
- package/dest/node/index.d.ts +6 -3
- package/dest/node/index.d.ts.map +1 -1
- package/dest/node/index.js +5 -2
- package/dest/node/proof/index.d.ts +1 -1
- package/dest/node/proof/index.js +1 -1
- package/dest/node/random/browser/index.d.ts +1 -1
- package/dest/node/random/browser/index.d.ts.map +1 -1
- package/dest/node/random/browser/index.js +1 -1
- package/dest/node/random/index.d.ts +1 -1
- package/dest/node/random/node/index.d.ts +1 -1
- package/dest/node/random/node/index.js +1 -1
- package/dest/node/retry/index.d.ts +1 -1
- package/dest/node/retry/index.js +1 -1
- package/dest/node-cjs/async_map/index.d.ts +1 -1
- package/dest/node-cjs/async_map/index.js +1 -1
- package/dest/node-cjs/barretenberg/backend.d.ts +30 -39
- package/dest/node-cjs/barretenberg/backend.d.ts.map +1 -1
- package/dest/node-cjs/barretenberg/backend.js +108 -103
- package/dest/node-cjs/barretenberg/blake2s.test.d.ts +1 -1
- package/dest/node-cjs/barretenberg/blake2s.test.js +6 -6
- package/dest/node-cjs/barretenberg/index.d.ts +4 -6
- package/dest/node-cjs/barretenberg/index.d.ts.map +1 -1
- package/dest/node-cjs/barretenberg/index.js +25 -34
- package/dest/node-cjs/barretenberg/pedersen.test.d.ts +1 -1
- package/dest/node-cjs/barretenberg/pedersen.test.js +9 -9
- package/dest/node-cjs/barretenberg/poseidon.bench.test.d.ts +1 -1
- package/dest/node-cjs/barretenberg/poseidon.bench.test.js +89 -87
- package/dest/node-cjs/barretenberg/poseidon.test.d.ts +1 -1
- package/dest/node-cjs/barretenberg/poseidon.test.js +4 -4
- package/dest/node-cjs/barretenberg/testing/bigint-buffer.d.ts +17 -0
- package/dest/node-cjs/barretenberg/testing/bigint-buffer.d.ts.map +1 -0
- package/dest/node-cjs/barretenberg/testing/bigint-buffer.js +43 -0
- package/dest/node-cjs/barretenberg/testing/fields.d.ts +16 -0
- package/dest/node-cjs/barretenberg/testing/fields.d.ts.map +1 -0
- package/dest/node-cjs/barretenberg/testing/fields.js +51 -0
- package/dest/node-cjs/barretenberg_wasm/barretenberg-threads.wasm.gz +0 -0
- package/dest/node-cjs/barretenberg_wasm/barretenberg_wasm_base/index.d.ts +1 -1
- package/dest/node-cjs/barretenberg_wasm/barretenberg_wasm_base/index.d.ts.map +1 -1
- package/dest/node-cjs/barretenberg_wasm/barretenberg_wasm_base/index.js +7 -8
- package/dest/node-cjs/barretenberg_wasm/barretenberg_wasm_main/factory/browser/index.d.ts +1 -1
- package/dest/node-cjs/barretenberg_wasm/barretenberg_wasm_main/factory/browser/index.d.ts.map +1 -1
- package/dest/node-cjs/barretenberg_wasm/barretenberg_wasm_main/factory/browser/index.js +3 -5
- package/dest/node-cjs/barretenberg_wasm/barretenberg_wasm_main/factory/browser/main.worker.d.ts +1 -1
- package/dest/node-cjs/barretenberg_wasm/barretenberg_wasm_main/factory/browser/main.worker.js +1 -7
- package/dest/node-cjs/barretenberg_wasm/barretenberg_wasm_main/factory/node/index.d.ts +1 -1
- package/dest/node-cjs/barretenberg_wasm/barretenberg_wasm_main/factory/node/index.d.ts.map +1 -1
- package/dest/node-cjs/barretenberg_wasm/barretenberg_wasm_main/factory/node/index.js +1 -3
- package/dest/node-cjs/barretenberg_wasm/barretenberg_wasm_main/factory/node/main.worker.d.ts +1 -1
- package/dest/node-cjs/barretenberg_wasm/barretenberg_wasm_main/factory/node/main.worker.js +1 -8
- package/dest/node-cjs/barretenberg_wasm/barretenberg_wasm_main/heap_allocator.d.ts +1 -1
- package/dest/node-cjs/barretenberg_wasm/barretenberg_wasm_main/heap_allocator.d.ts.map +1 -1
- package/dest/node-cjs/barretenberg_wasm/barretenberg_wasm_main/heap_allocator.js +5 -4
- package/dest/node-cjs/barretenberg_wasm/barretenberg_wasm_main/index.d.ts +13 -7
- package/dest/node-cjs/barretenberg_wasm/barretenberg_wasm_main/index.d.ts.map +1 -1
- package/dest/node-cjs/barretenberg_wasm/barretenberg_wasm_main/index.js +45 -18
- package/dest/node-cjs/barretenberg_wasm/barretenberg_wasm_thread/factory/browser/index.d.ts +1 -1
- package/dest/node-cjs/barretenberg_wasm/barretenberg_wasm_thread/factory/browser/index.d.ts.map +1 -1
- package/dest/node-cjs/barretenberg_wasm/barretenberg_wasm_thread/factory/browser/index.js +3 -5
- package/dest/node-cjs/barretenberg_wasm/barretenberg_wasm_thread/factory/browser/thread.worker.d.ts +1 -1
- package/dest/node-cjs/barretenberg_wasm/barretenberg_wasm_thread/factory/browser/thread.worker.js +1 -7
- package/dest/node-cjs/barretenberg_wasm/barretenberg_wasm_thread/factory/node/index.d.ts +1 -1
- package/dest/node-cjs/barretenberg_wasm/barretenberg_wasm_thread/factory/node/index.d.ts.map +1 -1
- package/dest/node-cjs/barretenberg_wasm/barretenberg_wasm_thread/factory/node/index.js +1 -3
- package/dest/node-cjs/barretenberg_wasm/barretenberg_wasm_thread/factory/node/thread.worker.d.ts +1 -1
- package/dest/node-cjs/barretenberg_wasm/barretenberg_wasm_thread/factory/node/thread.worker.js +1 -7
- package/dest/node-cjs/barretenberg_wasm/barretenberg_wasm_thread/index.d.ts +9 -8
- package/dest/node-cjs/barretenberg_wasm/barretenberg_wasm_thread/index.d.ts.map +1 -1
- package/dest/node-cjs/barretenberg_wasm/barretenberg_wasm_thread/index.js +4 -3
- package/dest/node-cjs/barretenberg_wasm/fetch_code/browser/barretenberg-threads.d.ts +1 -1
- package/dest/node-cjs/barretenberg_wasm/fetch_code/browser/barretenberg-threads.js +1 -1
- package/dest/node-cjs/barretenberg_wasm/fetch_code/browser/barretenberg.d.ts +1 -1
- package/dest/node-cjs/barretenberg_wasm/fetch_code/browser/barretenberg.js +1 -1
- package/dest/node-cjs/barretenberg_wasm/fetch_code/browser/index.d.ts +1 -1
- package/dest/node-cjs/barretenberg_wasm/fetch_code/browser/index.js +2 -2
- package/dest/node-cjs/barretenberg_wasm/fetch_code/index.d.ts +1 -1
- package/dest/node-cjs/barretenberg_wasm/fetch_code/node/index.d.ts +1 -1
- package/dest/node-cjs/barretenberg_wasm/fetch_code/node/index.js +2 -2
- package/dest/node-cjs/barretenberg_wasm/helpers/browser/index.d.ts +2 -2
- package/dest/node-cjs/barretenberg_wasm/helpers/browser/index.d.ts.map +1 -1
- package/dest/node-cjs/barretenberg_wasm/helpers/browser/index.js +9 -2
- package/dest/node-cjs/barretenberg_wasm/helpers/index.d.ts +1 -1
- package/dest/node-cjs/barretenberg_wasm/helpers/node/index.d.ts +5 -6
- package/dest/node-cjs/barretenberg_wasm/helpers/node/index.d.ts.map +1 -1
- package/dest/node-cjs/barretenberg_wasm/helpers/node/index.js +15 -7
- package/dest/node-cjs/barretenberg_wasm/helpers/node/node_endpoint.d.ts +2 -2
- package/dest/node-cjs/barretenberg_wasm/helpers/node/node_endpoint.d.ts.map +1 -1
- package/dest/node-cjs/barretenberg_wasm/helpers/node/node_endpoint.js +1 -1
- package/dest/node-cjs/barretenberg_wasm/index.d.ts +1 -1
- package/dest/node-cjs/barretenberg_wasm/index.d.ts.map +1 -1
- package/dest/node-cjs/barretenberg_wasm/index.js +2 -3
- package/dest/node-cjs/barretenberg_wasm/index.test.d.ts +1 -1
- package/dest/node-cjs/barretenberg_wasm/index.test.js +1 -1
- package/dest/node-cjs/bb_backends/browser/index.d.ts +1 -1
- package/dest/node-cjs/bb_backends/browser/index.js +1 -1
- package/dest/node-cjs/bb_backends/browser/platform.d.ts +4 -0
- package/dest/node-cjs/bb_backends/browser/platform.d.ts.map +1 -0
- package/dest/node-cjs/bb_backends/browser/platform.js +15 -0
- package/dest/node-cjs/bb_backends/index.d.ts +12 -7
- package/dest/node-cjs/bb_backends/index.d.ts.map +1 -1
- package/dest/node-cjs/bb_backends/index.js +6 -6
- package/dest/node-cjs/bb_backends/interface.d.ts +1 -1
- package/dest/node-cjs/bb_backends/node/index.d.ts +1 -1
- package/dest/node-cjs/bb_backends/node/index.d.ts.map +1 -1
- package/dest/node-cjs/bb_backends/node/index.js +17 -11
- package/dest/node-cjs/bb_backends/node/native_pipe.d.ts +1 -1
- package/dest/node-cjs/bb_backends/node/native_pipe.d.ts.map +1 -1
- package/dest/node-cjs/bb_backends/node/native_pipe.js +11 -10
- package/dest/node-cjs/bb_backends/node/native_shm.d.ts +3 -3
- package/dest/node-cjs/bb_backends/node/native_shm.d.ts.map +1 -1
- package/dest/node-cjs/bb_backends/node/native_shm.js +61 -39
- package/dest/node-cjs/bb_backends/node/native_shm_async.d.ts +51 -0
- package/dest/node-cjs/bb_backends/node/native_shm_async.d.ts.map +1 -0
- package/dest/node-cjs/bb_backends/node/native_shm_async.js +236 -0
- package/dest/node-cjs/bb_backends/node/native_socket.d.ts +2 -2
- package/dest/node-cjs/bb_backends/node/native_socket.d.ts.map +1 -1
- package/dest/node-cjs/bb_backends/node/native_socket.js +43 -31
- package/dest/node-cjs/bb_backends/node/platform.d.ts +1 -1
- package/dest/node-cjs/bb_backends/node/platform.d.ts.map +1 -1
- package/dest/node-cjs/bb_backends/node/platform.js +8 -3
- package/dest/node-cjs/bb_backends/wasm.d.ts +1 -1
- package/dest/node-cjs/bb_backends/wasm.d.ts.map +1 -1
- package/dest/node-cjs/bb_backends/wasm.js +5 -3
- package/dest/node-cjs/bbapi/exception_handling.test.d.ts +2 -0
- package/dest/node-cjs/bbapi/exception_handling.test.d.ts.map +1 -0
- package/dest/node-cjs/bbapi/exception_handling.test.js +50 -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/benchmark/index.d.ts +1 -1
- package/dest/node-cjs/benchmark/index.js +2 -2
- package/dest/node-cjs/benchmark/timer.d.ts +1 -1
- package/dest/node-cjs/benchmark/timer.d.ts.map +1 -1
- package/dest/node-cjs/benchmark/timer.js +2 -1
- package/dest/node-cjs/bin/index.d.ts +3 -0
- package/dest/node-cjs/bin/index.d.ts.map +1 -0
- package/dest/node-cjs/bin/index.js +13 -0
- package/dest/node-cjs/cbind/generate.d.ts +1 -1
- package/dest/node-cjs/cbind/generate.js +93 -1
- package/dest/node-cjs/cbind/generated/api_types.d.ts +632 -400
- package/dest/node-cjs/cbind/generated/api_types.d.ts.map +1 -1
- package/dest/node-cjs/cbind/generated/api_types.js +843 -507
- package/dest/node-cjs/cbind/generated/async.d.ts +16 -11
- package/dest/node-cjs/cbind/generated/async.d.ts.map +1 -1
- package/dest/node-cjs/cbind/generated/async.js +304 -95
- 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/sync.d.ts +16 -11
- package/dest/node-cjs/cbind/generated/sync.d.ts.map +1 -1
- package/dest/node-cjs/cbind/generated/sync.js +299 -95
- package/dest/node-cjs/cbind/schema_compiler.d.ts +1 -1
- package/dest/node-cjs/cbind/schema_compiler.d.ts.map +1 -1
- package/dest/node-cjs/cbind/schema_compiler.js +29 -8
- package/dest/node-cjs/crs/browser/cached_net_crs.d.ts +1 -1
- package/dest/node-cjs/crs/browser/cached_net_crs.d.ts.map +1 -1
- package/dest/node-cjs/crs/browser/cached_net_crs.js +6 -1
- package/dest/node-cjs/crs/browser/index.d.ts +1 -1
- package/dest/node-cjs/crs/browser/index.js +2 -2
- package/dest/node-cjs/crs/index.d.ts +1 -1
- package/dest/node-cjs/crs/index.js +2 -2
- package/dest/node-cjs/crs/net_crs.d.ts +1 -16
- package/dest/node-cjs/crs/net_crs.d.ts.map +1 -1
- package/dest/node-cjs/crs/net_crs.js +6 -1
- package/dest/node-cjs/crs/node/index.d.ts +1 -1
- package/dest/node-cjs/crs/node/index.d.ts.map +1 -1
- package/dest/node-cjs/crs/node/index.js +11 -6
- package/dest/node-cjs/index.d.ts +6 -3
- package/dest/node-cjs/index.d.ts.map +1 -1
- package/dest/node-cjs/index.js +28 -11
- package/dest/node-cjs/proof/index.d.ts +1 -1
- package/dest/node-cjs/proof/index.js +1 -1
- package/dest/node-cjs/random/browser/index.d.ts +1 -1
- package/dest/node-cjs/random/browser/index.d.ts.map +1 -1
- package/dest/node-cjs/random/browser/index.js +1 -1
- package/dest/node-cjs/random/index.d.ts +1 -1
- package/dest/node-cjs/random/node/index.d.ts +1 -1
- package/dest/node-cjs/random/node/index.js +1 -1
- package/dest/node-cjs/retry/index.d.ts +1 -1
- package/dest/node-cjs/retry/index.js +1 -1
- package/package.json +8 -6
- package/src/barretenberg/backend.ts +125 -126
- package/src/barretenberg/blake2s.test.ts +1 -1
- package/src/barretenberg/index.ts +24 -29
- package/src/barretenberg/pedersen.test.ts +1 -1
- package/src/barretenberg/poseidon.bench.test.ts +161 -157
- package/src/barretenberg/poseidon.test.ts +1 -1
- package/src/barretenberg/testing/fields.ts +63 -0
- package/src/barretenberg_wasm/barretenberg_wasm_base/index.ts +1 -2
- package/src/barretenberg_wasm/barretenberg_wasm_main/factory/browser/index.ts +0 -2
- package/src/barretenberg_wasm/barretenberg_wasm_main/factory/browser/main.worker.ts +0 -7
- package/src/barretenberg_wasm/barretenberg_wasm_main/factory/node/index.ts +0 -2
- package/src/barretenberg_wasm/barretenberg_wasm_main/factory/node/main.worker.ts +0 -9
- package/src/barretenberg_wasm/barretenberg_wasm_main/heap_allocator.ts +4 -4
- package/src/barretenberg_wasm/barretenberg_wasm_main/index.ts +37 -4
- package/src/barretenberg_wasm/barretenberg_wasm_thread/factory/browser/index.ts +0 -2
- package/src/barretenberg_wasm/barretenberg_wasm_thread/factory/browser/thread.worker.ts +0 -7
- package/src/barretenberg_wasm/barretenberg_wasm_thread/factory/node/index.ts +0 -2
- package/src/barretenberg_wasm/barretenberg_wasm_thread/factory/node/thread.worker.ts +0 -7
- package/src/barretenberg_wasm/barretenberg_wasm_thread/index.ts +3 -2
- package/src/barretenberg_wasm/helpers/browser/index.ts +8 -1
- package/src/barretenberg_wasm/helpers/node/index.ts +13 -6
- package/src/barretenberg_wasm/index.ts +1 -2
- package/src/bb_backends/browser/platform.ts +11 -0
- package/src/bb_backends/index.ts +12 -6
- package/src/bb_backends/node/index.ts +23 -10
- package/src/bb_backends/node/native_shm.ts +59 -40
- package/src/bb_backends/node/native_shm_async.ts +261 -0
- package/src/bb_backends/node/native_socket.ts +31 -18
- package/src/bb_backends/node/platform.ts +6 -1
- package/src/bb_backends/wasm.ts +1 -2
- package/src/bbapi/exception_handling.test.ts +54 -0
- package/src/bbapi_exception.ts +13 -0
- package/src/bin/index.ts +14 -0
- package/src/cbind/generate.ts +99 -0
- package/src/cbind/generated/api_types.ts +1267 -783
- package/src/cbind/generated/async.ts +308 -95
- package/src/cbind/generated/curve_constants.ts +53 -0
- package/src/cbind/generated/sync.ts +303 -95
- package/src/cbind/schema_compiler.ts +25 -3
- package/src/crs/node/index.ts +4 -5
- package/src/index.ts +32 -1
- package/dest/browser/bb_backends/sync_to_async_adapter.d.ts +0 -15
- package/dest/browser/bb_backends/sync_to_async_adapter.d.ts.map +0 -1
- package/dest/browser/bb_backends/sync_to_async_adapter.js +0 -20
- package/dest/browser/bigint-array/index.d.ts +0 -17
- package/dest/browser/bigint-array/index.d.ts.map +0 -1
- package/dest/browser/bigint-array/index.js +0 -37
- package/dest/browser/log/browser/index.d.ts +0 -6
- package/dest/browser/log/browser/index.d.ts.map +0 -1
- package/dest/browser/log/browser/index.js +0 -28
- package/dest/browser/log/index.d.ts +0 -2
- package/dest/browser/log/index.d.ts.map +0 -1
- package/dest/browser/log/index.js +0 -2
- package/dest/browser/log/types.d.ts +0 -6
- package/dest/browser/log/types.d.ts.map +0 -1
- package/dest/browser/log/types.js +0 -2
- package/dest/browser/serialize/buffer_reader.d.ts +0 -28
- package/dest/browser/serialize/buffer_reader.d.ts.map +0 -1
- package/dest/browser/serialize/buffer_reader.js +0 -66
- package/dest/browser/serialize/index.d.ts +0 -3
- package/dest/browser/serialize/index.d.ts.map +0 -1
- package/dest/browser/serialize/index.js +0 -3
- package/dest/browser/serialize/serialize.d.ts +0 -18
- package/dest/browser/serialize/serialize.d.ts.map +0 -1
- package/dest/browser/serialize/serialize.js +0 -72
- package/dest/browser/types/fields.d.ts +0 -43
- package/dest/browser/types/fields.d.ts.map +0 -1
- package/dest/browser/types/fields.js +0 -102
- package/dest/browser/types/index.d.ts +0 -3
- package/dest/browser/types/index.d.ts.map +0 -1
- package/dest/browser/types/index.js +0 -3
- package/dest/browser/types/point.d.ts +0 -16
- package/dest/browser/types/point.d.ts.map +0 -1
- package/dest/browser/types/point.js +0 -31
- package/dest/node/bb_backends/sync_to_async_adapter.d.ts +0 -15
- package/dest/node/bb_backends/sync_to_async_adapter.d.ts.map +0 -1
- package/dest/node/bb_backends/sync_to_async_adapter.js +0 -20
- package/dest/node/bigint-array/index.d.ts +0 -17
- package/dest/node/bigint-array/index.d.ts.map +0 -1
- package/dest/node/bigint-array/index.js +0 -37
- package/dest/node/log/browser/index.d.ts +0 -6
- package/dest/node/log/browser/index.d.ts.map +0 -1
- package/dest/node/log/browser/index.js +0 -28
- package/dest/node/log/index.d.ts +0 -2
- package/dest/node/log/index.d.ts.map +0 -1
- package/dest/node/log/index.js +0 -2
- package/dest/node/log/node/index.d.ts +0 -6
- package/dest/node/log/node/index.d.ts.map +0 -1
- package/dest/node/log/node/index.js +0 -40
- package/dest/node/log/types.d.ts +0 -6
- package/dest/node/log/types.d.ts.map +0 -1
- package/dest/node/log/types.js +0 -2
- package/dest/node/serialize/buffer_reader.d.ts +0 -28
- package/dest/node/serialize/buffer_reader.d.ts.map +0 -1
- package/dest/node/serialize/buffer_reader.js +0 -66
- package/dest/node/serialize/index.d.ts +0 -3
- package/dest/node/serialize/index.d.ts.map +0 -1
- package/dest/node/serialize/index.js +0 -3
- package/dest/node/serialize/serialize.d.ts +0 -18
- package/dest/node/serialize/serialize.d.ts.map +0 -1
- package/dest/node/serialize/serialize.js +0 -72
- package/dest/node/types/fields.d.ts +0 -43
- package/dest/node/types/fields.d.ts.map +0 -1
- package/dest/node/types/fields.js +0 -102
- package/dest/node/types/index.d.ts +0 -3
- package/dest/node/types/index.d.ts.map +0 -1
- package/dest/node/types/index.js +0 -3
- package/dest/node/types/point.d.ts +0 -16
- package/dest/node/types/point.d.ts.map +0 -1
- package/dest/node/types/point.js +0 -31
- package/dest/node-cjs/bb_backends/sync_to_async_adapter.d.ts +0 -15
- package/dest/node-cjs/bb_backends/sync_to_async_adapter.d.ts.map +0 -1
- package/dest/node-cjs/bb_backends/sync_to_async_adapter.js +0 -24
- package/dest/node-cjs/bigint-array/index.d.ts +0 -17
- package/dest/node-cjs/bigint-array/index.d.ts.map +0 -1
- package/dest/node-cjs/bigint-array/index.js +0 -43
- package/dest/node-cjs/log/browser/index.d.ts +0 -6
- package/dest/node-cjs/log/browser/index.d.ts.map +0 -1
- package/dest/node-cjs/log/browser/index.js +0 -30
- package/dest/node-cjs/log/index.d.ts +0 -2
- package/dest/node-cjs/log/index.d.ts.map +0 -1
- package/dest/node-cjs/log/index.js +0 -8
- package/dest/node-cjs/log/node/index.d.ts +0 -6
- package/dest/node-cjs/log/node/index.d.ts.map +0 -1
- package/dest/node-cjs/log/node/index.js +0 -42
- package/dest/node-cjs/log/types.d.ts +0 -6
- package/dest/node-cjs/log/types.d.ts.map +0 -1
- package/dest/node-cjs/log/types.js +0 -3
- package/dest/node-cjs/serialize/buffer_reader.d.ts +0 -28
- package/dest/node-cjs/serialize/buffer_reader.d.ts.map +0 -1
- package/dest/node-cjs/serialize/buffer_reader.js +0 -70
- package/dest/node-cjs/serialize/index.d.ts +0 -3
- package/dest/node-cjs/serialize/index.d.ts.map +0 -1
- package/dest/node-cjs/serialize/index.js +0 -6
- package/dest/node-cjs/serialize/serialize.d.ts +0 -18
- package/dest/node-cjs/serialize/serialize.d.ts.map +0 -1
- package/dest/node-cjs/serialize/serialize.js +0 -82
- package/dest/node-cjs/types/fields.d.ts +0 -43
- package/dest/node-cjs/types/fields.d.ts.map +0 -1
- package/dest/node-cjs/types/fields.js +0 -107
- package/dest/node-cjs/types/index.d.ts +0 -3
- package/dest/node-cjs/types/index.d.ts.map +0 -1
- package/dest/node-cjs/types/index.js +0 -6
- package/dest/node-cjs/types/point.d.ts +0 -16
- package/dest/node-cjs/types/point.d.ts.map +0 -1
- package/dest/node-cjs/types/point.js +0 -35
- package/src/bb_backends/sync_to_async_adapter.ts +0 -21
- package/src/log/browser/index.ts +0 -35
- package/src/log/index.ts +0 -1
- package/src/log/node/index.ts +0 -52
- package/src/log/types.ts +0 -6
- package/src/serialize/buffer_reader.ts +0 -85
- package/src/serialize/index.ts +0 -2
- package/src/serialize/serialize.ts +0 -75
- package/src/types/fields.ts +0 -126
- package/src/types/index.ts +0 -2
- package/src/types/point.ts +0 -38
- /package/src/{bigint-array/index.ts → barretenberg/testing/bigint-buffer.ts} +0 -0
|
@@ -2,9 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
// Type aliases
|
|
5
|
+
export type Field2 = [Uint8Array, Uint8Array];
|
|
5
6
|
export type Fq = Uint8Array;
|
|
6
7
|
export type Fr = Uint8Array;
|
|
8
|
+
export type Secp256k1Fq = Uint8Array;
|
|
7
9
|
export type Secp256k1Fr = Uint8Array;
|
|
10
|
+
export type Secp256r1Fq = Uint8Array;
|
|
8
11
|
export type Secp256r1Fr = Uint8Array;
|
|
9
12
|
export type Uint256T = Uint8Array;
|
|
10
13
|
|
|
@@ -53,16 +56,6 @@ interface MsgpackAesEncryptResponse {
|
|
|
53
56
|
ciphertext: Uint8Array;
|
|
54
57
|
}
|
|
55
58
|
|
|
56
|
-
export interface AffineElement {
|
|
57
|
-
x: Fr;
|
|
58
|
-
y: Fr;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
interface MsgpackAffineElement {
|
|
62
|
-
x: Uint8Array;
|
|
63
|
-
y: Uint8Array;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
59
|
export interface Blake2s {
|
|
67
60
|
data: Uint8Array;
|
|
68
61
|
}
|
|
@@ -95,324 +88,420 @@ interface MsgpackBlake2sToFieldResponse {
|
|
|
95
88
|
field: Uint8Array;
|
|
96
89
|
}
|
|
97
90
|
|
|
98
|
-
export interface
|
|
99
|
-
input:
|
|
91
|
+
export interface Bn254FqSqrt {
|
|
92
|
+
input: Fq;
|
|
100
93
|
}
|
|
101
94
|
|
|
102
|
-
interface
|
|
95
|
+
interface MsgpackBn254FqSqrt {
|
|
103
96
|
input: Uint8Array;
|
|
104
97
|
}
|
|
105
98
|
|
|
106
|
-
export interface
|
|
99
|
+
export interface Bn254FqSqrtResponse {
|
|
107
100
|
isSquareRoot: boolean;
|
|
108
|
-
value:
|
|
101
|
+
value: Fq;
|
|
109
102
|
}
|
|
110
103
|
|
|
111
|
-
interface
|
|
104
|
+
interface MsgpackBn254FqSqrtResponse {
|
|
112
105
|
is_square_root: boolean;
|
|
113
106
|
value: Uint8Array;
|
|
114
107
|
}
|
|
115
108
|
|
|
116
|
-
export interface
|
|
117
|
-
|
|
118
|
-
settings: ProofSystemSettings;
|
|
109
|
+
export interface Bn254FrSqrt {
|
|
110
|
+
input: Fr;
|
|
119
111
|
}
|
|
120
112
|
|
|
121
|
-
interface
|
|
122
|
-
|
|
123
|
-
settings: MsgpackProofSystemSettings;
|
|
113
|
+
interface MsgpackBn254FrSqrt {
|
|
114
|
+
input: Uint8Array;
|
|
124
115
|
}
|
|
125
116
|
|
|
126
|
-
export interface
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
hash: Uint8Array;
|
|
117
|
+
export interface Bn254FrSqrtResponse {
|
|
118
|
+
isSquareRoot: boolean;
|
|
119
|
+
value: Fr;
|
|
130
120
|
}
|
|
131
121
|
|
|
132
|
-
interface
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
hash: Uint8Array;
|
|
122
|
+
interface MsgpackBn254FrSqrtResponse {
|
|
123
|
+
is_square_root: boolean;
|
|
124
|
+
value: Uint8Array;
|
|
136
125
|
}
|
|
137
126
|
|
|
138
|
-
export interface
|
|
139
|
-
|
|
140
|
-
numGatesDyadic: number;
|
|
141
|
-
numAcirOpcodes: number;
|
|
142
|
-
gatesPerOpcode: number[];
|
|
127
|
+
export interface Bn254G1FromCompressed {
|
|
128
|
+
compressed: Uint8Array;
|
|
143
129
|
}
|
|
144
130
|
|
|
145
|
-
interface
|
|
146
|
-
|
|
147
|
-
num_gates_dyadic: number;
|
|
148
|
-
num_acir_opcodes: number;
|
|
149
|
-
gates_per_opcode: number[];
|
|
131
|
+
interface MsgpackBn254G1FromCompressed {
|
|
132
|
+
compressed: Uint8Array;
|
|
150
133
|
}
|
|
151
134
|
|
|
152
|
-
export interface
|
|
153
|
-
|
|
154
|
-
bytecode: Uint8Array;
|
|
155
|
-
verificationKey: Uint8Array;
|
|
135
|
+
export interface Bn254G1FromCompressedResponse {
|
|
136
|
+
point: Bn254G1Point;
|
|
156
137
|
}
|
|
157
138
|
|
|
158
|
-
interface
|
|
159
|
-
|
|
160
|
-
bytecode: Uint8Array;
|
|
161
|
-
verification_key: Uint8Array;
|
|
139
|
+
interface MsgpackBn254G1FromCompressedResponse {
|
|
140
|
+
point: MsgpackBn254G1Point;
|
|
162
141
|
}
|
|
163
142
|
|
|
164
|
-
export interface
|
|
165
|
-
|
|
166
|
-
bytecode: Uint8Array;
|
|
143
|
+
export interface Bn254G1IsOnCurve {
|
|
144
|
+
point: Bn254G1Point;
|
|
167
145
|
}
|
|
168
146
|
|
|
169
|
-
interface
|
|
170
|
-
|
|
171
|
-
bytecode: Uint8Array;
|
|
147
|
+
interface MsgpackBn254G1IsOnCurve {
|
|
148
|
+
point: MsgpackBn254G1Point;
|
|
172
149
|
}
|
|
173
150
|
|
|
174
|
-
export interface
|
|
175
|
-
|
|
176
|
-
witness: Uint8Array;
|
|
177
|
-
settings: ProofSystemSettings;
|
|
151
|
+
export interface Bn254G1IsOnCurveResponse {
|
|
152
|
+
isOnCurve: boolean;
|
|
178
153
|
}
|
|
179
154
|
|
|
180
|
-
interface
|
|
181
|
-
|
|
182
|
-
witness: Uint8Array;
|
|
183
|
-
settings: MsgpackProofSystemSettings;
|
|
155
|
+
interface MsgpackBn254G1IsOnCurveResponse {
|
|
156
|
+
is_on_curve: boolean;
|
|
184
157
|
}
|
|
185
158
|
|
|
186
|
-
export interface
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
vk: CircuitComputeVkResponse;
|
|
159
|
+
export interface Bn254G1Mul {
|
|
160
|
+
point: Bn254G1Point;
|
|
161
|
+
scalar: Fr;
|
|
190
162
|
}
|
|
191
163
|
|
|
192
|
-
interface
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
vk: MsgpackCircuitComputeVkResponse;
|
|
164
|
+
interface MsgpackBn254G1Mul {
|
|
165
|
+
point: MsgpackBn254G1Point;
|
|
166
|
+
scalar: Uint8Array;
|
|
196
167
|
}
|
|
197
168
|
|
|
198
|
-
export interface
|
|
199
|
-
|
|
200
|
-
includeGatesPerOpcode: boolean;
|
|
201
|
-
settings: ProofSystemSettings;
|
|
169
|
+
export interface Bn254G1MulResponse {
|
|
170
|
+
point: Bn254G1Point;
|
|
202
171
|
}
|
|
203
172
|
|
|
204
|
-
interface
|
|
205
|
-
|
|
206
|
-
include_gates_per_opcode: boolean;
|
|
207
|
-
settings: MsgpackProofSystemSettings;
|
|
173
|
+
interface MsgpackBn254G1MulResponse {
|
|
174
|
+
point: MsgpackBn254G1Point;
|
|
208
175
|
}
|
|
209
176
|
|
|
210
|
-
export interface
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
proof: Uint256T[];
|
|
214
|
-
settings: ProofSystemSettings;
|
|
177
|
+
export interface Bn254G1Point {
|
|
178
|
+
x: Fq;
|
|
179
|
+
y: Fq;
|
|
215
180
|
}
|
|
216
181
|
|
|
217
|
-
interface
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
proof: Uint8Array[];
|
|
221
|
-
settings: MsgpackProofSystemSettings;
|
|
182
|
+
interface MsgpackBn254G1Point {
|
|
183
|
+
x: Uint8Array;
|
|
184
|
+
y: Uint8Array;
|
|
222
185
|
}
|
|
223
186
|
|
|
224
|
-
export interface
|
|
225
|
-
|
|
187
|
+
export interface Bn254G2Mul {
|
|
188
|
+
point: Bn254G2Point;
|
|
189
|
+
scalar: Fr;
|
|
226
190
|
}
|
|
227
191
|
|
|
228
|
-
interface
|
|
229
|
-
|
|
192
|
+
interface MsgpackBn254G2Mul {
|
|
193
|
+
point: MsgpackBn254G2Point;
|
|
194
|
+
scalar: Uint8Array;
|
|
230
195
|
}
|
|
231
196
|
|
|
232
|
-
export interface
|
|
233
|
-
|
|
234
|
-
settings: ProofSystemSettings;
|
|
197
|
+
export interface Bn254G2MulResponse {
|
|
198
|
+
point: Bn254G2Point;
|
|
235
199
|
}
|
|
236
200
|
|
|
237
|
-
interface
|
|
238
|
-
|
|
239
|
-
settings: MsgpackProofSystemSettings;
|
|
201
|
+
interface MsgpackBn254G2MulResponse {
|
|
202
|
+
point: MsgpackBn254G2Point;
|
|
240
203
|
}
|
|
241
204
|
|
|
242
|
-
export interface
|
|
243
|
-
|
|
205
|
+
export interface Bn254G2Point {
|
|
206
|
+
x: Field2;
|
|
207
|
+
y: Field2;
|
|
244
208
|
}
|
|
245
209
|
|
|
246
|
-
interface
|
|
247
|
-
|
|
210
|
+
interface MsgpackBn254G2Point {
|
|
211
|
+
x: [Uint8Array, Uint8Array];
|
|
212
|
+
y: [Uint8Array, Uint8Array];
|
|
248
213
|
}
|
|
249
214
|
|
|
250
|
-
export interface
|
|
215
|
+
export interface ChonkAccumulate {
|
|
251
216
|
witness: Uint8Array;
|
|
252
217
|
}
|
|
253
218
|
|
|
254
|
-
interface
|
|
219
|
+
interface MsgpackChonkAccumulate {
|
|
255
220
|
witness: Uint8Array;
|
|
256
221
|
}
|
|
257
222
|
|
|
258
|
-
export interface
|
|
223
|
+
export interface ChonkAccumulateResponse {
|
|
259
224
|
}
|
|
260
225
|
|
|
261
|
-
interface
|
|
226
|
+
interface MsgpackChonkAccumulateResponse {
|
|
262
227
|
}
|
|
263
228
|
|
|
264
|
-
export interface
|
|
229
|
+
export interface ChonkCheckPrecomputedVk {
|
|
265
230
|
circuit: CircuitInput;
|
|
266
231
|
}
|
|
267
232
|
|
|
268
|
-
interface
|
|
233
|
+
interface MsgpackChonkCheckPrecomputedVk {
|
|
269
234
|
circuit: MsgpackCircuitInput;
|
|
270
235
|
}
|
|
271
236
|
|
|
272
|
-
export interface
|
|
237
|
+
export interface ChonkCheckPrecomputedVkResponse {
|
|
273
238
|
valid: boolean;
|
|
274
239
|
actualVk: Uint8Array;
|
|
275
240
|
}
|
|
276
241
|
|
|
277
|
-
interface
|
|
242
|
+
interface MsgpackChonkCheckPrecomputedVkResponse {
|
|
278
243
|
valid: boolean;
|
|
279
244
|
actual_vk: Uint8Array;
|
|
280
245
|
}
|
|
281
246
|
|
|
282
|
-
export interface
|
|
247
|
+
export interface ChonkComputeIvcVk {
|
|
283
248
|
circuit: CircuitInputNoVK;
|
|
284
249
|
}
|
|
285
250
|
|
|
286
|
-
interface
|
|
251
|
+
interface MsgpackChonkComputeIvcVk {
|
|
287
252
|
circuit: MsgpackCircuitInputNoVK;
|
|
288
253
|
}
|
|
289
254
|
|
|
290
|
-
export interface
|
|
255
|
+
export interface ChonkComputeIvcVkResponse {
|
|
291
256
|
bytes: Uint8Array;
|
|
292
257
|
}
|
|
293
258
|
|
|
294
|
-
interface
|
|
259
|
+
interface MsgpackChonkComputeIvcVkResponse {
|
|
295
260
|
bytes: Uint8Array;
|
|
296
261
|
}
|
|
297
262
|
|
|
298
|
-
export interface
|
|
263
|
+
export interface ChonkComputeStandaloneVk {
|
|
299
264
|
circuit: CircuitInputNoVK;
|
|
300
265
|
}
|
|
301
266
|
|
|
302
|
-
interface
|
|
267
|
+
interface MsgpackChonkComputeStandaloneVk {
|
|
303
268
|
circuit: MsgpackCircuitInputNoVK;
|
|
304
269
|
}
|
|
305
270
|
|
|
306
|
-
export interface
|
|
271
|
+
export interface ChonkComputeStandaloneVkResponse {
|
|
307
272
|
bytes: Uint8Array;
|
|
308
273
|
fields: Fr[];
|
|
309
274
|
}
|
|
310
275
|
|
|
311
|
-
interface
|
|
276
|
+
interface MsgpackChonkComputeStandaloneVkResponse {
|
|
312
277
|
bytes: Uint8Array;
|
|
313
278
|
fields: Uint8Array[];
|
|
314
279
|
}
|
|
315
280
|
|
|
316
|
-
export interface
|
|
281
|
+
export interface ChonkLoad {
|
|
317
282
|
circuit: CircuitInput;
|
|
318
283
|
}
|
|
319
284
|
|
|
320
|
-
interface
|
|
285
|
+
interface MsgpackChonkLoad {
|
|
321
286
|
circuit: MsgpackCircuitInput;
|
|
322
287
|
}
|
|
323
288
|
|
|
324
|
-
export interface
|
|
289
|
+
export interface ChonkLoadResponse {
|
|
325
290
|
}
|
|
326
291
|
|
|
327
|
-
interface
|
|
292
|
+
interface MsgpackChonkLoadResponse {
|
|
328
293
|
}
|
|
329
294
|
|
|
330
|
-
export interface
|
|
295
|
+
export interface ChonkProof {
|
|
331
296
|
megaProof: Fr[];
|
|
332
297
|
goblinProof: GoblinProof;
|
|
333
298
|
}
|
|
334
299
|
|
|
335
|
-
interface
|
|
300
|
+
interface MsgpackChonkProof {
|
|
336
301
|
mega_proof: Uint8Array[];
|
|
337
302
|
goblin_proof: MsgpackGoblinProof;
|
|
338
303
|
}
|
|
339
304
|
|
|
340
|
-
export interface
|
|
305
|
+
export interface ChonkProve {
|
|
341
306
|
}
|
|
342
307
|
|
|
343
|
-
interface
|
|
308
|
+
interface MsgpackChonkProve {
|
|
344
309
|
}
|
|
345
310
|
|
|
346
|
-
export interface
|
|
347
|
-
proof:
|
|
311
|
+
export interface ChonkProveResponse {
|
|
312
|
+
proof: ChonkProof;
|
|
348
313
|
}
|
|
349
314
|
|
|
350
|
-
interface
|
|
351
|
-
proof:
|
|
315
|
+
interface MsgpackChonkProveResponse {
|
|
316
|
+
proof: MsgpackChonkProof;
|
|
352
317
|
}
|
|
353
318
|
|
|
354
|
-
export interface
|
|
319
|
+
export interface ChonkStart {
|
|
355
320
|
numCircuits: number;
|
|
356
321
|
}
|
|
357
322
|
|
|
358
|
-
interface
|
|
323
|
+
interface MsgpackChonkStart {
|
|
359
324
|
num_circuits: number;
|
|
360
325
|
}
|
|
361
326
|
|
|
362
|
-
export interface
|
|
327
|
+
export interface ChonkStartResponse {
|
|
363
328
|
}
|
|
364
329
|
|
|
365
|
-
interface
|
|
330
|
+
interface MsgpackChonkStartResponse {
|
|
366
331
|
}
|
|
367
332
|
|
|
368
|
-
export interface
|
|
333
|
+
export interface ChonkStats {
|
|
369
334
|
circuit: CircuitInputNoVK;
|
|
370
335
|
includeGatesPerOpcode: boolean;
|
|
371
336
|
}
|
|
372
337
|
|
|
373
|
-
interface
|
|
338
|
+
interface MsgpackChonkStats {
|
|
374
339
|
circuit: MsgpackCircuitInputNoVK;
|
|
375
340
|
include_gates_per_opcode: boolean;
|
|
376
341
|
}
|
|
377
342
|
|
|
378
|
-
export interface
|
|
343
|
+
export interface ChonkStatsResponse {
|
|
379
344
|
acirOpcodes: number;
|
|
380
345
|
circuitSize: number;
|
|
381
346
|
gatesPerOpcode: number[];
|
|
382
347
|
}
|
|
383
348
|
|
|
384
|
-
interface
|
|
349
|
+
interface MsgpackChonkStatsResponse {
|
|
385
350
|
acir_opcodes: number;
|
|
386
351
|
circuit_size: number;
|
|
387
352
|
gates_per_opcode: number[];
|
|
388
353
|
}
|
|
389
354
|
|
|
390
|
-
export interface
|
|
391
|
-
proof:
|
|
355
|
+
export interface ChonkVerify {
|
|
356
|
+
proof: ChonkProof;
|
|
392
357
|
vk: Uint8Array;
|
|
393
358
|
}
|
|
394
359
|
|
|
395
|
-
interface
|
|
396
|
-
proof:
|
|
360
|
+
interface MsgpackChonkVerify {
|
|
361
|
+
proof: MsgpackChonkProof;
|
|
397
362
|
vk: Uint8Array;
|
|
398
363
|
}
|
|
399
364
|
|
|
400
|
-
export interface
|
|
365
|
+
export interface ChonkVerifyResponse {
|
|
401
366
|
valid: boolean;
|
|
402
367
|
}
|
|
403
368
|
|
|
404
|
-
interface
|
|
369
|
+
interface MsgpackChonkVerifyResponse {
|
|
405
370
|
valid: boolean;
|
|
406
371
|
}
|
|
407
372
|
|
|
408
|
-
export interface
|
|
409
|
-
|
|
410
|
-
|
|
373
|
+
export interface CircuitComputeVk {
|
|
374
|
+
circuit: CircuitInputNoVK;
|
|
375
|
+
settings: ProofSystemSettings;
|
|
411
376
|
}
|
|
412
377
|
|
|
413
|
-
interface
|
|
414
|
-
|
|
415
|
-
|
|
378
|
+
interface MsgpackCircuitComputeVk {
|
|
379
|
+
circuit: MsgpackCircuitInputNoVK;
|
|
380
|
+
settings: MsgpackProofSystemSettings;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
export interface CircuitComputeVkResponse {
|
|
384
|
+
bytes: Uint8Array;
|
|
385
|
+
fields: Uint256T[];
|
|
386
|
+
hash: Uint8Array;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
interface MsgpackCircuitComputeVkResponse {
|
|
390
|
+
bytes: Uint8Array;
|
|
391
|
+
fields: Uint8Array[];
|
|
392
|
+
hash: Uint8Array;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
export interface CircuitInfoResponse {
|
|
396
|
+
numGates: number;
|
|
397
|
+
numGatesDyadic: number;
|
|
398
|
+
numAcirOpcodes: number;
|
|
399
|
+
gatesPerOpcode: number[];
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
interface MsgpackCircuitInfoResponse {
|
|
403
|
+
num_gates: number;
|
|
404
|
+
num_gates_dyadic: number;
|
|
405
|
+
num_acir_opcodes: number;
|
|
406
|
+
gates_per_opcode: number[];
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
export interface CircuitInput {
|
|
410
|
+
name: string;
|
|
411
|
+
bytecode: Uint8Array;
|
|
412
|
+
verificationKey: Uint8Array;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
interface MsgpackCircuitInput {
|
|
416
|
+
name: string;
|
|
417
|
+
bytecode: Uint8Array;
|
|
418
|
+
verification_key: Uint8Array;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
export interface CircuitInputNoVK {
|
|
422
|
+
name: string;
|
|
423
|
+
bytecode: Uint8Array;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
interface MsgpackCircuitInputNoVK {
|
|
427
|
+
name: string;
|
|
428
|
+
bytecode: Uint8Array;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
export interface CircuitProve {
|
|
432
|
+
circuit: CircuitInput;
|
|
433
|
+
witness: Uint8Array;
|
|
434
|
+
settings: ProofSystemSettings;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
interface MsgpackCircuitProve {
|
|
438
|
+
circuit: MsgpackCircuitInput;
|
|
439
|
+
witness: Uint8Array;
|
|
440
|
+
settings: MsgpackProofSystemSettings;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
export interface CircuitProveResponse {
|
|
444
|
+
publicInputs: Uint256T[];
|
|
445
|
+
proof: Uint256T[];
|
|
446
|
+
vk: CircuitComputeVkResponse;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
interface MsgpackCircuitProveResponse {
|
|
450
|
+
public_inputs: Uint8Array[];
|
|
451
|
+
proof: Uint8Array[];
|
|
452
|
+
vk: MsgpackCircuitComputeVkResponse;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
export interface CircuitStats {
|
|
456
|
+
circuit: CircuitInput;
|
|
457
|
+
includeGatesPerOpcode: boolean;
|
|
458
|
+
settings: ProofSystemSettings;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
interface MsgpackCircuitStats {
|
|
462
|
+
circuit: MsgpackCircuitInput;
|
|
463
|
+
include_gates_per_opcode: boolean;
|
|
464
|
+
settings: MsgpackProofSystemSettings;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
export interface CircuitVerify {
|
|
468
|
+
verificationKey: Uint8Array;
|
|
469
|
+
publicInputs: Uint256T[];
|
|
470
|
+
proof: Uint256T[];
|
|
471
|
+
settings: ProofSystemSettings;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
interface MsgpackCircuitVerify {
|
|
475
|
+
verification_key: Uint8Array;
|
|
476
|
+
public_inputs: Uint8Array[];
|
|
477
|
+
proof: Uint8Array[];
|
|
478
|
+
settings: MsgpackProofSystemSettings;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
export interface CircuitVerifyResponse {
|
|
482
|
+
verified: boolean;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
interface MsgpackCircuitVerifyResponse {
|
|
486
|
+
verified: boolean;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
export interface CircuitWriteSolidityVerifier {
|
|
490
|
+
verificationKey: Uint8Array;
|
|
491
|
+
settings: ProofSystemSettings;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
interface MsgpackCircuitWriteSolidityVerifier {
|
|
495
|
+
verification_key: Uint8Array;
|
|
496
|
+
settings: MsgpackProofSystemSettings;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
export interface CircuitWriteSolidityVerifierResponse {
|
|
500
|
+
solidityCode: string;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
interface MsgpackCircuitWriteSolidityVerifierResponse {
|
|
504
|
+
solidity_code: string;
|
|
416
505
|
}
|
|
417
506
|
|
|
418
507
|
export interface EcdsaSecp256k1ComputePublicKey {
|
|
@@ -424,11 +513,11 @@ interface MsgpackEcdsaSecp256k1ComputePublicKey {
|
|
|
424
513
|
}
|
|
425
514
|
|
|
426
515
|
export interface EcdsaSecp256k1ComputePublicKeyResponse {
|
|
427
|
-
publicKey:
|
|
516
|
+
publicKey: Secp256k1Point;
|
|
428
517
|
}
|
|
429
518
|
|
|
430
519
|
interface MsgpackEcdsaSecp256k1ComputePublicKeyResponse {
|
|
431
|
-
public_key:
|
|
520
|
+
public_key: MsgpackSecp256k1Point;
|
|
432
521
|
}
|
|
433
522
|
|
|
434
523
|
export interface EcdsaSecp256k1ConstructSignature {
|
|
@@ -468,16 +557,16 @@ interface MsgpackEcdsaSecp256k1RecoverPublicKey {
|
|
|
468
557
|
}
|
|
469
558
|
|
|
470
559
|
export interface EcdsaSecp256k1RecoverPublicKeyResponse {
|
|
471
|
-
publicKey:
|
|
560
|
+
publicKey: Secp256k1Point;
|
|
472
561
|
}
|
|
473
562
|
|
|
474
563
|
interface MsgpackEcdsaSecp256k1RecoverPublicKeyResponse {
|
|
475
|
-
public_key:
|
|
564
|
+
public_key: MsgpackSecp256k1Point;
|
|
476
565
|
}
|
|
477
566
|
|
|
478
567
|
export interface EcdsaSecp256k1VerifySignature {
|
|
479
568
|
message: Uint8Array;
|
|
480
|
-
publicKey:
|
|
569
|
+
publicKey: Secp256k1Point;
|
|
481
570
|
r: Uint8Array;
|
|
482
571
|
s: Uint8Array;
|
|
483
572
|
v: number;
|
|
@@ -485,7 +574,7 @@ export interface EcdsaSecp256k1VerifySignature {
|
|
|
485
574
|
|
|
486
575
|
interface MsgpackEcdsaSecp256k1VerifySignature {
|
|
487
576
|
message: Uint8Array;
|
|
488
|
-
public_key:
|
|
577
|
+
public_key: MsgpackSecp256k1Point;
|
|
489
578
|
r: Uint8Array;
|
|
490
579
|
s: Uint8Array;
|
|
491
580
|
v: number;
|
|
@@ -508,11 +597,11 @@ interface MsgpackEcdsaSecp256r1ComputePublicKey {
|
|
|
508
597
|
}
|
|
509
598
|
|
|
510
599
|
export interface EcdsaSecp256r1ComputePublicKeyResponse {
|
|
511
|
-
publicKey:
|
|
600
|
+
publicKey: Secp256r1Point;
|
|
512
601
|
}
|
|
513
602
|
|
|
514
603
|
interface MsgpackEcdsaSecp256r1ComputePublicKeyResponse {
|
|
515
|
-
public_key:
|
|
604
|
+
public_key: MsgpackSecp256r1Point;
|
|
516
605
|
}
|
|
517
606
|
|
|
518
607
|
export interface EcdsaSecp256r1ConstructSignature {
|
|
@@ -552,16 +641,16 @@ interface MsgpackEcdsaSecp256r1RecoverPublicKey {
|
|
|
552
641
|
}
|
|
553
642
|
|
|
554
643
|
export interface EcdsaSecp256r1RecoverPublicKeyResponse {
|
|
555
|
-
publicKey:
|
|
644
|
+
publicKey: Secp256r1Point;
|
|
556
645
|
}
|
|
557
646
|
|
|
558
647
|
interface MsgpackEcdsaSecp256r1RecoverPublicKeyResponse {
|
|
559
|
-
public_key:
|
|
648
|
+
public_key: MsgpackSecp256r1Point;
|
|
560
649
|
}
|
|
561
650
|
|
|
562
651
|
export interface EcdsaSecp256r1VerifySignature {
|
|
563
652
|
message: Uint8Array;
|
|
564
|
-
publicKey:
|
|
653
|
+
publicKey: Secp256r1Point;
|
|
565
654
|
r: Uint8Array;
|
|
566
655
|
s: Uint8Array;
|
|
567
656
|
v: number;
|
|
@@ -569,7 +658,7 @@ export interface EcdsaSecp256r1VerifySignature {
|
|
|
569
658
|
|
|
570
659
|
interface MsgpackEcdsaSecp256r1VerifySignature {
|
|
571
660
|
message: Uint8Array;
|
|
572
|
-
public_key:
|
|
661
|
+
public_key: MsgpackSecp256r1Point;
|
|
573
662
|
r: Uint8Array;
|
|
574
663
|
s: Uint8Array;
|
|
575
664
|
v: number;
|
|
@@ -583,52 +672,62 @@ interface MsgpackEcdsaSecp256r1VerifySignatureResponse {
|
|
|
583
672
|
verified: boolean;
|
|
584
673
|
}
|
|
585
674
|
|
|
675
|
+
export interface ErrorResponse {
|
|
676
|
+
message: string;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
interface MsgpackErrorResponse {
|
|
680
|
+
message: string;
|
|
681
|
+
}
|
|
682
|
+
|
|
586
683
|
export interface GoblinProof {
|
|
587
684
|
mergeProof: Fr[];
|
|
588
|
-
eccvmProof:
|
|
685
|
+
eccvmProof: Fr[];
|
|
686
|
+
ipaProof: Fr[];
|
|
589
687
|
translatorProof: Fr[];
|
|
590
688
|
}
|
|
591
689
|
|
|
592
690
|
interface MsgpackGoblinProof {
|
|
593
691
|
merge_proof: Uint8Array[];
|
|
594
|
-
eccvm_proof:
|
|
692
|
+
eccvm_proof: Uint8Array[];
|
|
693
|
+
ipa_proof: Uint8Array[];
|
|
595
694
|
translator_proof: Uint8Array[];
|
|
596
695
|
}
|
|
597
696
|
|
|
598
697
|
export interface GrumpkinAdd {
|
|
599
|
-
pointA:
|
|
600
|
-
pointB:
|
|
698
|
+
pointA: GrumpkinPoint;
|
|
699
|
+
pointB: GrumpkinPoint;
|
|
601
700
|
}
|
|
602
701
|
|
|
603
702
|
interface MsgpackGrumpkinAdd {
|
|
604
|
-
point_a:
|
|
605
|
-
point_b:
|
|
703
|
+
point_a: MsgpackGrumpkinPoint;
|
|
704
|
+
point_b: MsgpackGrumpkinPoint;
|
|
606
705
|
}
|
|
607
706
|
|
|
608
707
|
export interface GrumpkinAddResponse {
|
|
609
|
-
point:
|
|
708
|
+
point: GrumpkinPoint;
|
|
610
709
|
}
|
|
611
710
|
|
|
612
711
|
interface MsgpackGrumpkinAddResponse {
|
|
613
|
-
point:
|
|
712
|
+
point: MsgpackGrumpkinPoint;
|
|
614
713
|
}
|
|
615
714
|
|
|
616
715
|
export interface GrumpkinBatchMul {
|
|
617
|
-
points:
|
|
716
|
+
points: GrumpkinPoint[];
|
|
618
717
|
scalar: Fq;
|
|
619
718
|
}
|
|
620
719
|
|
|
621
720
|
interface MsgpackGrumpkinBatchMul {
|
|
622
|
-
points:
|
|
721
|
+
points: MsgpackGrumpkinPoint[];
|
|
623
722
|
scalar: Uint8Array;
|
|
624
723
|
}
|
|
625
724
|
|
|
626
725
|
export interface GrumpkinBatchMulResponse {
|
|
627
|
-
points:
|
|
726
|
+
points: GrumpkinPoint[];
|
|
628
727
|
}
|
|
629
728
|
|
|
630
729
|
interface MsgpackGrumpkinBatchMulResponse {
|
|
631
|
-
points:
|
|
730
|
+
points: MsgpackGrumpkinPoint[];
|
|
632
731
|
}
|
|
633
732
|
|
|
634
733
|
export interface GrumpkinGetRandomFr {
|
|
@@ -648,25 +747,35 @@ interface MsgpackGrumpkinGetRandomFrResponse {
|
|
|
648
747
|
}
|
|
649
748
|
|
|
650
749
|
export interface GrumpkinMul {
|
|
651
|
-
point:
|
|
750
|
+
point: GrumpkinPoint;
|
|
652
751
|
scalar: Fq;
|
|
653
752
|
}
|
|
654
753
|
|
|
655
754
|
interface MsgpackGrumpkinMul {
|
|
656
|
-
point:
|
|
755
|
+
point: MsgpackGrumpkinPoint;
|
|
657
756
|
scalar: Uint8Array;
|
|
658
757
|
}
|
|
659
758
|
|
|
660
759
|
export interface GrumpkinMulResponse {
|
|
661
|
-
point:
|
|
760
|
+
point: GrumpkinPoint;
|
|
662
761
|
}
|
|
663
762
|
|
|
664
763
|
interface MsgpackGrumpkinMulResponse {
|
|
665
|
-
point:
|
|
764
|
+
point: MsgpackGrumpkinPoint;
|
|
666
765
|
}
|
|
667
766
|
|
|
668
|
-
export interface
|
|
669
|
-
|
|
767
|
+
export interface GrumpkinPoint {
|
|
768
|
+
x: Fr;
|
|
769
|
+
y: Fr;
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
interface MsgpackGrumpkinPoint {
|
|
773
|
+
x: Uint8Array;
|
|
774
|
+
y: Uint8Array;
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
export interface GrumpkinReduce512 {
|
|
778
|
+
input: Uint8Array;
|
|
670
779
|
}
|
|
671
780
|
|
|
672
781
|
interface MsgpackGrumpkinReduce512 {
|
|
@@ -708,11 +817,11 @@ interface MsgpackPedersenCommit {
|
|
|
708
817
|
}
|
|
709
818
|
|
|
710
819
|
export interface PedersenCommitResponse {
|
|
711
|
-
point:
|
|
820
|
+
point: GrumpkinPoint;
|
|
712
821
|
}
|
|
713
822
|
|
|
714
823
|
interface MsgpackPedersenCommitResponse {
|
|
715
|
-
point:
|
|
824
|
+
point: MsgpackGrumpkinPoint;
|
|
716
825
|
}
|
|
717
826
|
|
|
718
827
|
export interface PedersenHash {
|
|
@@ -822,11 +931,11 @@ interface MsgpackSchnorrComputePublicKey {
|
|
|
822
931
|
}
|
|
823
932
|
|
|
824
933
|
export interface SchnorrComputePublicKeyResponse {
|
|
825
|
-
publicKey:
|
|
934
|
+
publicKey: GrumpkinPoint;
|
|
826
935
|
}
|
|
827
936
|
|
|
828
937
|
interface MsgpackSchnorrComputePublicKeyResponse {
|
|
829
|
-
public_key:
|
|
938
|
+
public_key: MsgpackGrumpkinPoint;
|
|
830
939
|
}
|
|
831
940
|
|
|
832
941
|
export interface SchnorrConstructSignature {
|
|
@@ -851,14 +960,14 @@ interface MsgpackSchnorrConstructSignatureResponse {
|
|
|
851
960
|
|
|
852
961
|
export interface SchnorrVerifySignature {
|
|
853
962
|
message: Uint8Array;
|
|
854
|
-
publicKey:
|
|
963
|
+
publicKey: GrumpkinPoint;
|
|
855
964
|
s: Uint8Array;
|
|
856
965
|
e: Uint8Array;
|
|
857
966
|
}
|
|
858
967
|
|
|
859
968
|
interface MsgpackSchnorrVerifySignature {
|
|
860
969
|
message: Uint8Array;
|
|
861
|
-
public_key:
|
|
970
|
+
public_key: MsgpackGrumpkinPoint;
|
|
862
971
|
s: Uint8Array;
|
|
863
972
|
e: Uint8Array;
|
|
864
973
|
}
|
|
@@ -888,21 +997,31 @@ interface MsgpackSecp256k1GetRandomFrResponse {
|
|
|
888
997
|
}
|
|
889
998
|
|
|
890
999
|
export interface Secp256k1Mul {
|
|
891
|
-
point:
|
|
1000
|
+
point: Secp256k1Point;
|
|
892
1001
|
scalar: Secp256k1Fr;
|
|
893
1002
|
}
|
|
894
1003
|
|
|
895
1004
|
interface MsgpackSecp256k1Mul {
|
|
896
|
-
point:
|
|
1005
|
+
point: MsgpackSecp256k1Point;
|
|
897
1006
|
scalar: Uint8Array;
|
|
898
1007
|
}
|
|
899
1008
|
|
|
900
1009
|
export interface Secp256k1MulResponse {
|
|
901
|
-
point:
|
|
1010
|
+
point: Secp256k1Point;
|
|
902
1011
|
}
|
|
903
1012
|
|
|
904
1013
|
interface MsgpackSecp256k1MulResponse {
|
|
905
|
-
point:
|
|
1014
|
+
point: MsgpackSecp256k1Point;
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
export interface Secp256k1Point {
|
|
1018
|
+
x: Secp256k1Fq;
|
|
1019
|
+
y: Secp256k1Fq;
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
interface MsgpackSecp256k1Point {
|
|
1023
|
+
x: Uint8Array;
|
|
1024
|
+
y: Uint8Array;
|
|
906
1025
|
}
|
|
907
1026
|
|
|
908
1027
|
export interface Secp256k1Reduce512 {
|
|
@@ -921,6 +1040,16 @@ interface MsgpackSecp256k1Reduce512Response {
|
|
|
921
1040
|
value: Uint8Array;
|
|
922
1041
|
}
|
|
923
1042
|
|
|
1043
|
+
export interface Secp256r1Point {
|
|
1044
|
+
x: Secp256r1Fq;
|
|
1045
|
+
y: Secp256r1Fq;
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
interface MsgpackSecp256r1Point {
|
|
1049
|
+
x: Uint8Array;
|
|
1050
|
+
y: Uint8Array;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
924
1053
|
export interface Shutdown {
|
|
925
1054
|
}
|
|
926
1055
|
|
|
@@ -1032,16 +1161,6 @@ interface MsgpackAesEncryptResponse {
|
|
|
1032
1161
|
ciphertext: Uint8Array;
|
|
1033
1162
|
}
|
|
1034
1163
|
|
|
1035
|
-
export interface AffineElement {
|
|
1036
|
-
x: Fr;
|
|
1037
|
-
y: Fr;
|
|
1038
|
-
}
|
|
1039
|
-
|
|
1040
|
-
interface MsgpackAffineElement {
|
|
1041
|
-
x: Uint8Array;
|
|
1042
|
-
y: Uint8Array;
|
|
1043
|
-
}
|
|
1044
|
-
|
|
1045
1164
|
export interface Blake2s {
|
|
1046
1165
|
data: Uint8Array;
|
|
1047
1166
|
}
|
|
@@ -1074,407 +1193,503 @@ interface MsgpackBlake2sToFieldResponse {
|
|
|
1074
1193
|
field: Uint8Array;
|
|
1075
1194
|
}
|
|
1076
1195
|
|
|
1077
|
-
export interface
|
|
1078
|
-
input:
|
|
1196
|
+
export interface Bn254FqSqrt {
|
|
1197
|
+
input: Fq;
|
|
1079
1198
|
}
|
|
1080
1199
|
|
|
1081
|
-
interface
|
|
1200
|
+
interface MsgpackBn254FqSqrt {
|
|
1082
1201
|
input: Uint8Array;
|
|
1083
1202
|
}
|
|
1084
1203
|
|
|
1085
|
-
export interface
|
|
1204
|
+
export interface Bn254FqSqrtResponse {
|
|
1086
1205
|
isSquareRoot: boolean;
|
|
1087
|
-
value:
|
|
1206
|
+
value: Fq;
|
|
1088
1207
|
}
|
|
1089
1208
|
|
|
1090
|
-
interface
|
|
1209
|
+
interface MsgpackBn254FqSqrtResponse {
|
|
1091
1210
|
is_square_root: boolean;
|
|
1092
1211
|
value: Uint8Array;
|
|
1093
1212
|
}
|
|
1094
1213
|
|
|
1095
|
-
export interface
|
|
1096
|
-
|
|
1097
|
-
settings: ProofSystemSettings;
|
|
1214
|
+
export interface Bn254FrSqrt {
|
|
1215
|
+
input: Fr;
|
|
1098
1216
|
}
|
|
1099
1217
|
|
|
1100
|
-
interface
|
|
1101
|
-
|
|
1102
|
-
settings: MsgpackProofSystemSettings;
|
|
1218
|
+
interface MsgpackBn254FrSqrt {
|
|
1219
|
+
input: Uint8Array;
|
|
1103
1220
|
}
|
|
1104
1221
|
|
|
1105
|
-
export interface
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
hash: Uint8Array;
|
|
1222
|
+
export interface Bn254FrSqrtResponse {
|
|
1223
|
+
isSquareRoot: boolean;
|
|
1224
|
+
value: Fr;
|
|
1109
1225
|
}
|
|
1110
1226
|
|
|
1111
|
-
interface
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
hash: Uint8Array;
|
|
1227
|
+
interface MsgpackBn254FrSqrtResponse {
|
|
1228
|
+
is_square_root: boolean;
|
|
1229
|
+
value: Uint8Array;
|
|
1115
1230
|
}
|
|
1116
1231
|
|
|
1117
|
-
export interface
|
|
1118
|
-
|
|
1119
|
-
numGatesDyadic: number;
|
|
1120
|
-
numAcirOpcodes: number;
|
|
1121
|
-
gatesPerOpcode: number[];
|
|
1232
|
+
export interface Bn254G1FromCompressed {
|
|
1233
|
+
compressed: Uint8Array;
|
|
1122
1234
|
}
|
|
1123
1235
|
|
|
1124
|
-
interface
|
|
1125
|
-
|
|
1126
|
-
num_gates_dyadic: number;
|
|
1127
|
-
num_acir_opcodes: number;
|
|
1128
|
-
gates_per_opcode: number[];
|
|
1236
|
+
interface MsgpackBn254G1FromCompressed {
|
|
1237
|
+
compressed: Uint8Array;
|
|
1129
1238
|
}
|
|
1130
1239
|
|
|
1131
|
-
export interface
|
|
1132
|
-
|
|
1133
|
-
bytecode: Uint8Array;
|
|
1134
|
-
verificationKey: Uint8Array;
|
|
1240
|
+
export interface Bn254G1FromCompressedResponse {
|
|
1241
|
+
point: Bn254G1Point;
|
|
1135
1242
|
}
|
|
1136
1243
|
|
|
1137
|
-
interface
|
|
1138
|
-
|
|
1139
|
-
bytecode: Uint8Array;
|
|
1140
|
-
verification_key: Uint8Array;
|
|
1244
|
+
interface MsgpackBn254G1FromCompressedResponse {
|
|
1245
|
+
point: MsgpackBn254G1Point;
|
|
1141
1246
|
}
|
|
1142
1247
|
|
|
1143
|
-
export interface
|
|
1144
|
-
|
|
1145
|
-
bytecode: Uint8Array;
|
|
1248
|
+
export interface Bn254G1IsOnCurve {
|
|
1249
|
+
point: Bn254G1Point;
|
|
1146
1250
|
}
|
|
1147
1251
|
|
|
1148
|
-
interface
|
|
1149
|
-
|
|
1150
|
-
bytecode: Uint8Array;
|
|
1252
|
+
interface MsgpackBn254G1IsOnCurve {
|
|
1253
|
+
point: MsgpackBn254G1Point;
|
|
1151
1254
|
}
|
|
1152
1255
|
|
|
1153
|
-
export interface
|
|
1154
|
-
|
|
1155
|
-
witness: Uint8Array;
|
|
1156
|
-
settings: ProofSystemSettings;
|
|
1256
|
+
export interface Bn254G1IsOnCurveResponse {
|
|
1257
|
+
isOnCurve: boolean;
|
|
1157
1258
|
}
|
|
1158
1259
|
|
|
1159
|
-
interface
|
|
1160
|
-
|
|
1161
|
-
witness: Uint8Array;
|
|
1162
|
-
settings: MsgpackProofSystemSettings;
|
|
1260
|
+
interface MsgpackBn254G1IsOnCurveResponse {
|
|
1261
|
+
is_on_curve: boolean;
|
|
1163
1262
|
}
|
|
1164
1263
|
|
|
1165
|
-
export interface
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
vk: CircuitComputeVkResponse;
|
|
1264
|
+
export interface Bn254G1Mul {
|
|
1265
|
+
point: Bn254G1Point;
|
|
1266
|
+
scalar: Fr;
|
|
1169
1267
|
}
|
|
1170
1268
|
|
|
1171
|
-
interface
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
vk: MsgpackCircuitComputeVkResponse;
|
|
1269
|
+
interface MsgpackBn254G1Mul {
|
|
1270
|
+
point: MsgpackBn254G1Point;
|
|
1271
|
+
scalar: Uint8Array;
|
|
1175
1272
|
}
|
|
1176
1273
|
|
|
1177
|
-
export interface
|
|
1178
|
-
|
|
1179
|
-
includeGatesPerOpcode: boolean;
|
|
1180
|
-
settings: ProofSystemSettings;
|
|
1274
|
+
export interface Bn254G1MulResponse {
|
|
1275
|
+
point: Bn254G1Point;
|
|
1181
1276
|
}
|
|
1182
1277
|
|
|
1183
|
-
interface
|
|
1184
|
-
|
|
1185
|
-
include_gates_per_opcode: boolean;
|
|
1186
|
-
settings: MsgpackProofSystemSettings;
|
|
1278
|
+
interface MsgpackBn254G1MulResponse {
|
|
1279
|
+
point: MsgpackBn254G1Point;
|
|
1187
1280
|
}
|
|
1188
1281
|
|
|
1189
|
-
export interface
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
proof: Uint256T[];
|
|
1193
|
-
settings: ProofSystemSettings;
|
|
1282
|
+
export interface Bn254G1Point {
|
|
1283
|
+
x: Fq;
|
|
1284
|
+
y: Fq;
|
|
1194
1285
|
}
|
|
1195
1286
|
|
|
1196
|
-
interface
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
proof: Uint8Array[];
|
|
1200
|
-
settings: MsgpackProofSystemSettings;
|
|
1287
|
+
interface MsgpackBn254G1Point {
|
|
1288
|
+
x: Uint8Array;
|
|
1289
|
+
y: Uint8Array;
|
|
1201
1290
|
}
|
|
1202
1291
|
|
|
1203
|
-
export interface
|
|
1204
|
-
|
|
1292
|
+
export interface Bn254G2Mul {
|
|
1293
|
+
point: Bn254G2Point;
|
|
1294
|
+
scalar: Fr;
|
|
1205
1295
|
}
|
|
1206
1296
|
|
|
1207
|
-
interface
|
|
1208
|
-
|
|
1297
|
+
interface MsgpackBn254G2Mul {
|
|
1298
|
+
point: MsgpackBn254G2Point;
|
|
1299
|
+
scalar: Uint8Array;
|
|
1209
1300
|
}
|
|
1210
1301
|
|
|
1211
|
-
export interface
|
|
1212
|
-
|
|
1213
|
-
settings: ProofSystemSettings;
|
|
1302
|
+
export interface Bn254G2MulResponse {
|
|
1303
|
+
point: Bn254G2Point;
|
|
1214
1304
|
}
|
|
1215
1305
|
|
|
1216
|
-
interface
|
|
1217
|
-
|
|
1218
|
-
settings: MsgpackProofSystemSettings;
|
|
1306
|
+
interface MsgpackBn254G2MulResponse {
|
|
1307
|
+
point: MsgpackBn254G2Point;
|
|
1219
1308
|
}
|
|
1220
1309
|
|
|
1221
|
-
export interface
|
|
1222
|
-
|
|
1310
|
+
export interface Bn254G2Point {
|
|
1311
|
+
x: Field2;
|
|
1312
|
+
y: Field2;
|
|
1223
1313
|
}
|
|
1224
1314
|
|
|
1225
|
-
interface
|
|
1226
|
-
|
|
1315
|
+
interface MsgpackBn254G2Point {
|
|
1316
|
+
x: [Uint8Array, Uint8Array];
|
|
1317
|
+
y: [Uint8Array, Uint8Array];
|
|
1227
1318
|
}
|
|
1228
1319
|
|
|
1229
|
-
export interface
|
|
1320
|
+
export interface ChonkAccumulate {
|
|
1230
1321
|
witness: Uint8Array;
|
|
1231
1322
|
}
|
|
1232
1323
|
|
|
1233
|
-
interface
|
|
1324
|
+
interface MsgpackChonkAccumulate {
|
|
1234
1325
|
witness: Uint8Array;
|
|
1235
1326
|
}
|
|
1236
1327
|
|
|
1237
|
-
export interface
|
|
1328
|
+
export interface ChonkAccumulateResponse {
|
|
1238
1329
|
}
|
|
1239
1330
|
|
|
1240
|
-
interface
|
|
1331
|
+
interface MsgpackChonkAccumulateResponse {
|
|
1241
1332
|
}
|
|
1242
1333
|
|
|
1243
|
-
export interface
|
|
1334
|
+
export interface ChonkCheckPrecomputedVk {
|
|
1244
1335
|
circuit: CircuitInput;
|
|
1245
1336
|
}
|
|
1246
1337
|
|
|
1247
|
-
interface
|
|
1338
|
+
interface MsgpackChonkCheckPrecomputedVk {
|
|
1248
1339
|
circuit: MsgpackCircuitInput;
|
|
1249
1340
|
}
|
|
1250
1341
|
|
|
1251
|
-
export interface
|
|
1342
|
+
export interface ChonkCheckPrecomputedVkResponse {
|
|
1252
1343
|
valid: boolean;
|
|
1253
1344
|
actualVk: Uint8Array;
|
|
1254
1345
|
}
|
|
1255
1346
|
|
|
1256
|
-
interface
|
|
1347
|
+
interface MsgpackChonkCheckPrecomputedVkResponse {
|
|
1257
1348
|
valid: boolean;
|
|
1258
1349
|
actual_vk: Uint8Array;
|
|
1259
1350
|
}
|
|
1260
1351
|
|
|
1261
|
-
export interface
|
|
1352
|
+
export interface ChonkComputeIvcVk {
|
|
1262
1353
|
circuit: CircuitInputNoVK;
|
|
1263
1354
|
}
|
|
1264
1355
|
|
|
1265
|
-
interface
|
|
1356
|
+
interface MsgpackChonkComputeIvcVk {
|
|
1266
1357
|
circuit: MsgpackCircuitInputNoVK;
|
|
1267
1358
|
}
|
|
1268
1359
|
|
|
1269
|
-
export interface
|
|
1360
|
+
export interface ChonkComputeIvcVkResponse {
|
|
1270
1361
|
bytes: Uint8Array;
|
|
1271
1362
|
}
|
|
1272
1363
|
|
|
1273
|
-
interface
|
|
1364
|
+
interface MsgpackChonkComputeIvcVkResponse {
|
|
1274
1365
|
bytes: Uint8Array;
|
|
1275
1366
|
}
|
|
1276
1367
|
|
|
1277
|
-
export interface
|
|
1368
|
+
export interface ChonkComputeStandaloneVk {
|
|
1278
1369
|
circuit: CircuitInputNoVK;
|
|
1279
1370
|
}
|
|
1280
1371
|
|
|
1281
|
-
interface
|
|
1372
|
+
interface MsgpackChonkComputeStandaloneVk {
|
|
1282
1373
|
circuit: MsgpackCircuitInputNoVK;
|
|
1283
1374
|
}
|
|
1284
1375
|
|
|
1285
|
-
export interface
|
|
1376
|
+
export interface ChonkComputeStandaloneVkResponse {
|
|
1286
1377
|
bytes: Uint8Array;
|
|
1287
1378
|
fields: Fr[];
|
|
1288
1379
|
}
|
|
1289
1380
|
|
|
1290
|
-
interface
|
|
1381
|
+
interface MsgpackChonkComputeStandaloneVkResponse {
|
|
1291
1382
|
bytes: Uint8Array;
|
|
1292
1383
|
fields: Uint8Array[];
|
|
1293
1384
|
}
|
|
1294
1385
|
|
|
1295
|
-
export interface
|
|
1386
|
+
export interface ChonkLoad {
|
|
1296
1387
|
circuit: CircuitInput;
|
|
1297
1388
|
}
|
|
1298
1389
|
|
|
1299
|
-
interface
|
|
1390
|
+
interface MsgpackChonkLoad {
|
|
1300
1391
|
circuit: MsgpackCircuitInput;
|
|
1301
1392
|
}
|
|
1302
1393
|
|
|
1303
|
-
export interface
|
|
1394
|
+
export interface ChonkLoadResponse {
|
|
1304
1395
|
}
|
|
1305
1396
|
|
|
1306
|
-
interface
|
|
1397
|
+
interface MsgpackChonkLoadResponse {
|
|
1307
1398
|
}
|
|
1308
1399
|
|
|
1309
|
-
export interface
|
|
1400
|
+
export interface ChonkProof {
|
|
1310
1401
|
megaProof: Fr[];
|
|
1311
1402
|
goblinProof: GoblinProof;
|
|
1312
1403
|
}
|
|
1313
1404
|
|
|
1314
|
-
interface
|
|
1405
|
+
interface MsgpackChonkProof {
|
|
1315
1406
|
mega_proof: Uint8Array[];
|
|
1316
1407
|
goblin_proof: MsgpackGoblinProof;
|
|
1317
1408
|
}
|
|
1318
1409
|
|
|
1319
|
-
export interface
|
|
1410
|
+
export interface ChonkProve {
|
|
1320
1411
|
}
|
|
1321
1412
|
|
|
1322
|
-
interface
|
|
1413
|
+
interface MsgpackChonkProve {
|
|
1323
1414
|
}
|
|
1324
1415
|
|
|
1325
|
-
export interface
|
|
1326
|
-
proof:
|
|
1416
|
+
export interface ChonkProveResponse {
|
|
1417
|
+
proof: ChonkProof;
|
|
1327
1418
|
}
|
|
1328
1419
|
|
|
1329
|
-
interface
|
|
1330
|
-
proof:
|
|
1420
|
+
interface MsgpackChonkProveResponse {
|
|
1421
|
+
proof: MsgpackChonkProof;
|
|
1331
1422
|
}
|
|
1332
1423
|
|
|
1333
|
-
export interface
|
|
1424
|
+
export interface ChonkStart {
|
|
1334
1425
|
numCircuits: number;
|
|
1335
1426
|
}
|
|
1336
1427
|
|
|
1337
|
-
interface
|
|
1428
|
+
interface MsgpackChonkStart {
|
|
1338
1429
|
num_circuits: number;
|
|
1339
1430
|
}
|
|
1340
1431
|
|
|
1341
|
-
export interface
|
|
1432
|
+
export interface ChonkStartResponse {
|
|
1342
1433
|
}
|
|
1343
1434
|
|
|
1344
|
-
interface
|
|
1435
|
+
interface MsgpackChonkStartResponse {
|
|
1345
1436
|
}
|
|
1346
1437
|
|
|
1347
|
-
export interface
|
|
1438
|
+
export interface ChonkStats {
|
|
1348
1439
|
circuit: CircuitInputNoVK;
|
|
1349
1440
|
includeGatesPerOpcode: boolean;
|
|
1350
1441
|
}
|
|
1351
1442
|
|
|
1352
|
-
interface
|
|
1443
|
+
interface MsgpackChonkStats {
|
|
1353
1444
|
circuit: MsgpackCircuitInputNoVK;
|
|
1354
1445
|
include_gates_per_opcode: boolean;
|
|
1355
1446
|
}
|
|
1356
1447
|
|
|
1357
|
-
export interface
|
|
1448
|
+
export interface ChonkStatsResponse {
|
|
1358
1449
|
acirOpcodes: number;
|
|
1359
1450
|
circuitSize: number;
|
|
1360
1451
|
gatesPerOpcode: number[];
|
|
1361
1452
|
}
|
|
1362
1453
|
|
|
1363
|
-
interface
|
|
1454
|
+
interface MsgpackChonkStatsResponse {
|
|
1364
1455
|
acir_opcodes: number;
|
|
1365
1456
|
circuit_size: number;
|
|
1366
1457
|
gates_per_opcode: number[];
|
|
1367
1458
|
}
|
|
1368
1459
|
|
|
1369
|
-
export interface
|
|
1370
|
-
proof:
|
|
1460
|
+
export interface ChonkVerify {
|
|
1461
|
+
proof: ChonkProof;
|
|
1371
1462
|
vk: Uint8Array;
|
|
1372
1463
|
}
|
|
1373
1464
|
|
|
1374
|
-
interface
|
|
1375
|
-
proof:
|
|
1465
|
+
interface MsgpackChonkVerify {
|
|
1466
|
+
proof: MsgpackChonkProof;
|
|
1376
1467
|
vk: Uint8Array;
|
|
1377
1468
|
}
|
|
1378
1469
|
|
|
1379
|
-
export interface
|
|
1470
|
+
export interface ChonkVerifyResponse {
|
|
1380
1471
|
valid: boolean;
|
|
1381
1472
|
}
|
|
1382
1473
|
|
|
1383
|
-
interface
|
|
1474
|
+
interface MsgpackChonkVerifyResponse {
|
|
1384
1475
|
valid: boolean;
|
|
1385
1476
|
}
|
|
1386
1477
|
|
|
1387
|
-
export interface
|
|
1388
|
-
|
|
1389
|
-
|
|
1478
|
+
export interface CircuitComputeVk {
|
|
1479
|
+
circuit: CircuitInputNoVK;
|
|
1480
|
+
settings: ProofSystemSettings;
|
|
1390
1481
|
}
|
|
1391
1482
|
|
|
1392
|
-
interface
|
|
1393
|
-
|
|
1394
|
-
|
|
1483
|
+
interface MsgpackCircuitComputeVk {
|
|
1484
|
+
circuit: MsgpackCircuitInputNoVK;
|
|
1485
|
+
settings: MsgpackProofSystemSettings;
|
|
1395
1486
|
}
|
|
1396
1487
|
|
|
1397
|
-
export interface
|
|
1398
|
-
|
|
1488
|
+
export interface CircuitComputeVkResponse {
|
|
1489
|
+
bytes: Uint8Array;
|
|
1490
|
+
fields: Uint256T[];
|
|
1491
|
+
hash: Uint8Array;
|
|
1399
1492
|
}
|
|
1400
1493
|
|
|
1401
|
-
interface
|
|
1402
|
-
|
|
1494
|
+
interface MsgpackCircuitComputeVkResponse {
|
|
1495
|
+
bytes: Uint8Array;
|
|
1496
|
+
fields: Uint8Array[];
|
|
1497
|
+
hash: Uint8Array;
|
|
1403
1498
|
}
|
|
1404
1499
|
|
|
1405
|
-
export interface
|
|
1406
|
-
|
|
1500
|
+
export interface CircuitInfoResponse {
|
|
1501
|
+
numGates: number;
|
|
1502
|
+
numGatesDyadic: number;
|
|
1503
|
+
numAcirOpcodes: number;
|
|
1504
|
+
gatesPerOpcode: number[];
|
|
1407
1505
|
}
|
|
1408
1506
|
|
|
1409
|
-
interface
|
|
1410
|
-
|
|
1507
|
+
interface MsgpackCircuitInfoResponse {
|
|
1508
|
+
num_gates: number;
|
|
1509
|
+
num_gates_dyadic: number;
|
|
1510
|
+
num_acir_opcodes: number;
|
|
1511
|
+
gates_per_opcode: number[];
|
|
1411
1512
|
}
|
|
1412
1513
|
|
|
1413
|
-
export interface
|
|
1414
|
-
|
|
1415
|
-
|
|
1514
|
+
export interface CircuitInput {
|
|
1515
|
+
name: string;
|
|
1516
|
+
bytecode: Uint8Array;
|
|
1517
|
+
verificationKey: Uint8Array;
|
|
1416
1518
|
}
|
|
1417
1519
|
|
|
1418
|
-
interface
|
|
1419
|
-
|
|
1420
|
-
|
|
1520
|
+
interface MsgpackCircuitInput {
|
|
1521
|
+
name: string;
|
|
1522
|
+
bytecode: Uint8Array;
|
|
1523
|
+
verification_key: Uint8Array;
|
|
1421
1524
|
}
|
|
1422
1525
|
|
|
1423
|
-
export interface
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
v: number;
|
|
1526
|
+
export interface CircuitInputNoVK {
|
|
1527
|
+
name: string;
|
|
1528
|
+
bytecode: Uint8Array;
|
|
1427
1529
|
}
|
|
1428
1530
|
|
|
1429
|
-
interface
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
v: number;
|
|
1531
|
+
interface MsgpackCircuitInputNoVK {
|
|
1532
|
+
name: string;
|
|
1533
|
+
bytecode: Uint8Array;
|
|
1433
1534
|
}
|
|
1434
1535
|
|
|
1435
|
-
export interface
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
v: number;
|
|
1536
|
+
export interface CircuitProve {
|
|
1537
|
+
circuit: CircuitInput;
|
|
1538
|
+
witness: Uint8Array;
|
|
1539
|
+
settings: ProofSystemSettings;
|
|
1440
1540
|
}
|
|
1441
1541
|
|
|
1442
|
-
interface
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
v: number;
|
|
1542
|
+
interface MsgpackCircuitProve {
|
|
1543
|
+
circuit: MsgpackCircuitInput;
|
|
1544
|
+
witness: Uint8Array;
|
|
1545
|
+
settings: MsgpackProofSystemSettings;
|
|
1447
1546
|
}
|
|
1448
1547
|
|
|
1449
|
-
export interface
|
|
1450
|
-
|
|
1548
|
+
export interface CircuitProveResponse {
|
|
1549
|
+
publicInputs: Uint256T[];
|
|
1550
|
+
proof: Uint256T[];
|
|
1551
|
+
vk: CircuitComputeVkResponse;
|
|
1451
1552
|
}
|
|
1452
1553
|
|
|
1453
|
-
interface
|
|
1454
|
-
|
|
1554
|
+
interface MsgpackCircuitProveResponse {
|
|
1555
|
+
public_inputs: Uint8Array[];
|
|
1556
|
+
proof: Uint8Array[];
|
|
1557
|
+
vk: MsgpackCircuitComputeVkResponse;
|
|
1455
1558
|
}
|
|
1456
1559
|
|
|
1457
|
-
export interface
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
s: Uint8Array;
|
|
1462
|
-
v: number;
|
|
1560
|
+
export interface CircuitStats {
|
|
1561
|
+
circuit: CircuitInput;
|
|
1562
|
+
includeGatesPerOpcode: boolean;
|
|
1563
|
+
settings: ProofSystemSettings;
|
|
1463
1564
|
}
|
|
1464
1565
|
|
|
1465
|
-
interface
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
s: Uint8Array;
|
|
1470
|
-
v: number;
|
|
1566
|
+
interface MsgpackCircuitStats {
|
|
1567
|
+
circuit: MsgpackCircuitInput;
|
|
1568
|
+
include_gates_per_opcode: boolean;
|
|
1569
|
+
settings: MsgpackProofSystemSettings;
|
|
1471
1570
|
}
|
|
1472
1571
|
|
|
1473
|
-
export interface
|
|
1474
|
-
|
|
1572
|
+
export interface CircuitVerify {
|
|
1573
|
+
verificationKey: Uint8Array;
|
|
1574
|
+
publicInputs: Uint256T[];
|
|
1575
|
+
proof: Uint256T[];
|
|
1576
|
+
settings: ProofSystemSettings;
|
|
1475
1577
|
}
|
|
1476
1578
|
|
|
1477
|
-
interface
|
|
1579
|
+
interface MsgpackCircuitVerify {
|
|
1580
|
+
verification_key: Uint8Array;
|
|
1581
|
+
public_inputs: Uint8Array[];
|
|
1582
|
+
proof: Uint8Array[];
|
|
1583
|
+
settings: MsgpackProofSystemSettings;
|
|
1584
|
+
}
|
|
1585
|
+
|
|
1586
|
+
export interface CircuitVerifyResponse {
|
|
1587
|
+
verified: boolean;
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1590
|
+
interface MsgpackCircuitVerifyResponse {
|
|
1591
|
+
verified: boolean;
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1594
|
+
export interface CircuitWriteSolidityVerifier {
|
|
1595
|
+
verificationKey: Uint8Array;
|
|
1596
|
+
settings: ProofSystemSettings;
|
|
1597
|
+
}
|
|
1598
|
+
|
|
1599
|
+
interface MsgpackCircuitWriteSolidityVerifier {
|
|
1600
|
+
verification_key: Uint8Array;
|
|
1601
|
+
settings: MsgpackProofSystemSettings;
|
|
1602
|
+
}
|
|
1603
|
+
|
|
1604
|
+
export interface CircuitWriteSolidityVerifierResponse {
|
|
1605
|
+
solidityCode: string;
|
|
1606
|
+
}
|
|
1607
|
+
|
|
1608
|
+
interface MsgpackCircuitWriteSolidityVerifierResponse {
|
|
1609
|
+
solidity_code: string;
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
export interface EcdsaSecp256k1ComputePublicKey {
|
|
1613
|
+
privateKey: Secp256k1Fr;
|
|
1614
|
+
}
|
|
1615
|
+
|
|
1616
|
+
interface MsgpackEcdsaSecp256k1ComputePublicKey {
|
|
1617
|
+
private_key: Uint8Array;
|
|
1618
|
+
}
|
|
1619
|
+
|
|
1620
|
+
export interface EcdsaSecp256k1ComputePublicKeyResponse {
|
|
1621
|
+
publicKey: Secp256k1Point;
|
|
1622
|
+
}
|
|
1623
|
+
|
|
1624
|
+
interface MsgpackEcdsaSecp256k1ComputePublicKeyResponse {
|
|
1625
|
+
public_key: MsgpackSecp256k1Point;
|
|
1626
|
+
}
|
|
1627
|
+
|
|
1628
|
+
export interface EcdsaSecp256k1ConstructSignature {
|
|
1629
|
+
message: Uint8Array;
|
|
1630
|
+
privateKey: Secp256k1Fr;
|
|
1631
|
+
}
|
|
1632
|
+
|
|
1633
|
+
interface MsgpackEcdsaSecp256k1ConstructSignature {
|
|
1634
|
+
message: Uint8Array;
|
|
1635
|
+
private_key: Uint8Array;
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1638
|
+
export interface EcdsaSecp256k1ConstructSignatureResponse {
|
|
1639
|
+
r: Uint8Array;
|
|
1640
|
+
s: Uint8Array;
|
|
1641
|
+
v: number;
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1644
|
+
interface MsgpackEcdsaSecp256k1ConstructSignatureResponse {
|
|
1645
|
+
r: Uint8Array;
|
|
1646
|
+
s: Uint8Array;
|
|
1647
|
+
v: number;
|
|
1648
|
+
}
|
|
1649
|
+
|
|
1650
|
+
export interface EcdsaSecp256k1RecoverPublicKey {
|
|
1651
|
+
message: Uint8Array;
|
|
1652
|
+
r: Uint8Array;
|
|
1653
|
+
s: Uint8Array;
|
|
1654
|
+
v: number;
|
|
1655
|
+
}
|
|
1656
|
+
|
|
1657
|
+
interface MsgpackEcdsaSecp256k1RecoverPublicKey {
|
|
1658
|
+
message: Uint8Array;
|
|
1659
|
+
r: Uint8Array;
|
|
1660
|
+
s: Uint8Array;
|
|
1661
|
+
v: number;
|
|
1662
|
+
}
|
|
1663
|
+
|
|
1664
|
+
export interface EcdsaSecp256k1RecoverPublicKeyResponse {
|
|
1665
|
+
publicKey: Secp256k1Point;
|
|
1666
|
+
}
|
|
1667
|
+
|
|
1668
|
+
interface MsgpackEcdsaSecp256k1RecoverPublicKeyResponse {
|
|
1669
|
+
public_key: MsgpackSecp256k1Point;
|
|
1670
|
+
}
|
|
1671
|
+
|
|
1672
|
+
export interface EcdsaSecp256k1VerifySignature {
|
|
1673
|
+
message: Uint8Array;
|
|
1674
|
+
publicKey: Secp256k1Point;
|
|
1675
|
+
r: Uint8Array;
|
|
1676
|
+
s: Uint8Array;
|
|
1677
|
+
v: number;
|
|
1678
|
+
}
|
|
1679
|
+
|
|
1680
|
+
interface MsgpackEcdsaSecp256k1VerifySignature {
|
|
1681
|
+
message: Uint8Array;
|
|
1682
|
+
public_key: MsgpackSecp256k1Point;
|
|
1683
|
+
r: Uint8Array;
|
|
1684
|
+
s: Uint8Array;
|
|
1685
|
+
v: number;
|
|
1686
|
+
}
|
|
1687
|
+
|
|
1688
|
+
export interface EcdsaSecp256k1VerifySignatureResponse {
|
|
1689
|
+
verified: boolean;
|
|
1690
|
+
}
|
|
1691
|
+
|
|
1692
|
+
interface MsgpackEcdsaSecp256k1VerifySignatureResponse {
|
|
1478
1693
|
verified: boolean;
|
|
1479
1694
|
}
|
|
1480
1695
|
|
|
@@ -1487,11 +1702,11 @@ interface MsgpackEcdsaSecp256r1ComputePublicKey {
|
|
|
1487
1702
|
}
|
|
1488
1703
|
|
|
1489
1704
|
export interface EcdsaSecp256r1ComputePublicKeyResponse {
|
|
1490
|
-
publicKey:
|
|
1705
|
+
publicKey: Secp256r1Point;
|
|
1491
1706
|
}
|
|
1492
1707
|
|
|
1493
1708
|
interface MsgpackEcdsaSecp256r1ComputePublicKeyResponse {
|
|
1494
|
-
public_key:
|
|
1709
|
+
public_key: MsgpackSecp256r1Point;
|
|
1495
1710
|
}
|
|
1496
1711
|
|
|
1497
1712
|
export interface EcdsaSecp256r1ConstructSignature {
|
|
@@ -1531,16 +1746,16 @@ interface MsgpackEcdsaSecp256r1RecoverPublicKey {
|
|
|
1531
1746
|
}
|
|
1532
1747
|
|
|
1533
1748
|
export interface EcdsaSecp256r1RecoverPublicKeyResponse {
|
|
1534
|
-
publicKey:
|
|
1749
|
+
publicKey: Secp256r1Point;
|
|
1535
1750
|
}
|
|
1536
1751
|
|
|
1537
1752
|
interface MsgpackEcdsaSecp256r1RecoverPublicKeyResponse {
|
|
1538
|
-
public_key:
|
|
1753
|
+
public_key: MsgpackSecp256r1Point;
|
|
1539
1754
|
}
|
|
1540
1755
|
|
|
1541
1756
|
export interface EcdsaSecp256r1VerifySignature {
|
|
1542
1757
|
message: Uint8Array;
|
|
1543
|
-
publicKey:
|
|
1758
|
+
publicKey: Secp256r1Point;
|
|
1544
1759
|
r: Uint8Array;
|
|
1545
1760
|
s: Uint8Array;
|
|
1546
1761
|
v: number;
|
|
@@ -1548,7 +1763,7 @@ export interface EcdsaSecp256r1VerifySignature {
|
|
|
1548
1763
|
|
|
1549
1764
|
interface MsgpackEcdsaSecp256r1VerifySignature {
|
|
1550
1765
|
message: Uint8Array;
|
|
1551
|
-
public_key:
|
|
1766
|
+
public_key: MsgpackSecp256r1Point;
|
|
1552
1767
|
r: Uint8Array;
|
|
1553
1768
|
s: Uint8Array;
|
|
1554
1769
|
v: number;
|
|
@@ -1562,52 +1777,62 @@ interface MsgpackEcdsaSecp256r1VerifySignatureResponse {
|
|
|
1562
1777
|
verified: boolean;
|
|
1563
1778
|
}
|
|
1564
1779
|
|
|
1780
|
+
export interface ErrorResponse {
|
|
1781
|
+
message: string;
|
|
1782
|
+
}
|
|
1783
|
+
|
|
1784
|
+
interface MsgpackErrorResponse {
|
|
1785
|
+
message: string;
|
|
1786
|
+
}
|
|
1787
|
+
|
|
1565
1788
|
export interface GoblinProof {
|
|
1566
1789
|
mergeProof: Fr[];
|
|
1567
|
-
eccvmProof:
|
|
1790
|
+
eccvmProof: Fr[];
|
|
1791
|
+
ipaProof: Fr[];
|
|
1568
1792
|
translatorProof: Fr[];
|
|
1569
1793
|
}
|
|
1570
1794
|
|
|
1571
1795
|
interface MsgpackGoblinProof {
|
|
1572
1796
|
merge_proof: Uint8Array[];
|
|
1573
|
-
eccvm_proof:
|
|
1797
|
+
eccvm_proof: Uint8Array[];
|
|
1798
|
+
ipa_proof: Uint8Array[];
|
|
1574
1799
|
translator_proof: Uint8Array[];
|
|
1575
1800
|
}
|
|
1576
1801
|
|
|
1577
1802
|
export interface GrumpkinAdd {
|
|
1578
|
-
pointA:
|
|
1579
|
-
pointB:
|
|
1803
|
+
pointA: GrumpkinPoint;
|
|
1804
|
+
pointB: GrumpkinPoint;
|
|
1580
1805
|
}
|
|
1581
1806
|
|
|
1582
1807
|
interface MsgpackGrumpkinAdd {
|
|
1583
|
-
point_a:
|
|
1584
|
-
point_b:
|
|
1808
|
+
point_a: MsgpackGrumpkinPoint;
|
|
1809
|
+
point_b: MsgpackGrumpkinPoint;
|
|
1585
1810
|
}
|
|
1586
1811
|
|
|
1587
1812
|
export interface GrumpkinAddResponse {
|
|
1588
|
-
point:
|
|
1813
|
+
point: GrumpkinPoint;
|
|
1589
1814
|
}
|
|
1590
1815
|
|
|
1591
1816
|
interface MsgpackGrumpkinAddResponse {
|
|
1592
|
-
point:
|
|
1817
|
+
point: MsgpackGrumpkinPoint;
|
|
1593
1818
|
}
|
|
1594
1819
|
|
|
1595
1820
|
export interface GrumpkinBatchMul {
|
|
1596
|
-
points:
|
|
1821
|
+
points: GrumpkinPoint[];
|
|
1597
1822
|
scalar: Fq;
|
|
1598
1823
|
}
|
|
1599
1824
|
|
|
1600
1825
|
interface MsgpackGrumpkinBatchMul {
|
|
1601
|
-
points:
|
|
1826
|
+
points: MsgpackGrumpkinPoint[];
|
|
1602
1827
|
scalar: Uint8Array;
|
|
1603
1828
|
}
|
|
1604
1829
|
|
|
1605
1830
|
export interface GrumpkinBatchMulResponse {
|
|
1606
|
-
points:
|
|
1831
|
+
points: GrumpkinPoint[];
|
|
1607
1832
|
}
|
|
1608
1833
|
|
|
1609
1834
|
interface MsgpackGrumpkinBatchMulResponse {
|
|
1610
|
-
points:
|
|
1835
|
+
points: MsgpackGrumpkinPoint[];
|
|
1611
1836
|
}
|
|
1612
1837
|
|
|
1613
1838
|
export interface GrumpkinGetRandomFr {
|
|
@@ -1627,21 +1852,31 @@ interface MsgpackGrumpkinGetRandomFrResponse {
|
|
|
1627
1852
|
}
|
|
1628
1853
|
|
|
1629
1854
|
export interface GrumpkinMul {
|
|
1630
|
-
point:
|
|
1855
|
+
point: GrumpkinPoint;
|
|
1631
1856
|
scalar: Fq;
|
|
1632
1857
|
}
|
|
1633
1858
|
|
|
1634
1859
|
interface MsgpackGrumpkinMul {
|
|
1635
|
-
point:
|
|
1860
|
+
point: MsgpackGrumpkinPoint;
|
|
1636
1861
|
scalar: Uint8Array;
|
|
1637
1862
|
}
|
|
1638
1863
|
|
|
1639
1864
|
export interface GrumpkinMulResponse {
|
|
1640
|
-
point:
|
|
1865
|
+
point: GrumpkinPoint;
|
|
1641
1866
|
}
|
|
1642
1867
|
|
|
1643
1868
|
interface MsgpackGrumpkinMulResponse {
|
|
1644
|
-
point:
|
|
1869
|
+
point: MsgpackGrumpkinPoint;
|
|
1870
|
+
}
|
|
1871
|
+
|
|
1872
|
+
export interface GrumpkinPoint {
|
|
1873
|
+
x: Fr;
|
|
1874
|
+
y: Fr;
|
|
1875
|
+
}
|
|
1876
|
+
|
|
1877
|
+
interface MsgpackGrumpkinPoint {
|
|
1878
|
+
x: Uint8Array;
|
|
1879
|
+
y: Uint8Array;
|
|
1645
1880
|
}
|
|
1646
1881
|
|
|
1647
1882
|
export interface GrumpkinReduce512 {
|
|
@@ -1687,11 +1922,11 @@ interface MsgpackPedersenCommit {
|
|
|
1687
1922
|
}
|
|
1688
1923
|
|
|
1689
1924
|
export interface PedersenCommitResponse {
|
|
1690
|
-
point:
|
|
1925
|
+
point: GrumpkinPoint;
|
|
1691
1926
|
}
|
|
1692
1927
|
|
|
1693
1928
|
interface MsgpackPedersenCommitResponse {
|
|
1694
|
-
point:
|
|
1929
|
+
point: MsgpackGrumpkinPoint;
|
|
1695
1930
|
}
|
|
1696
1931
|
|
|
1697
1932
|
export interface PedersenHash {
|
|
@@ -1801,11 +2036,11 @@ interface MsgpackSchnorrComputePublicKey {
|
|
|
1801
2036
|
}
|
|
1802
2037
|
|
|
1803
2038
|
export interface SchnorrComputePublicKeyResponse {
|
|
1804
|
-
publicKey:
|
|
2039
|
+
publicKey: GrumpkinPoint;
|
|
1805
2040
|
}
|
|
1806
2041
|
|
|
1807
2042
|
interface MsgpackSchnorrComputePublicKeyResponse {
|
|
1808
|
-
public_key:
|
|
2043
|
+
public_key: MsgpackGrumpkinPoint;
|
|
1809
2044
|
}
|
|
1810
2045
|
|
|
1811
2046
|
export interface SchnorrConstructSignature {
|
|
@@ -1830,14 +2065,14 @@ interface MsgpackSchnorrConstructSignatureResponse {
|
|
|
1830
2065
|
|
|
1831
2066
|
export interface SchnorrVerifySignature {
|
|
1832
2067
|
message: Uint8Array;
|
|
1833
|
-
publicKey:
|
|
2068
|
+
publicKey: GrumpkinPoint;
|
|
1834
2069
|
s: Uint8Array;
|
|
1835
2070
|
e: Uint8Array;
|
|
1836
2071
|
}
|
|
1837
2072
|
|
|
1838
2073
|
interface MsgpackSchnorrVerifySignature {
|
|
1839
2074
|
message: Uint8Array;
|
|
1840
|
-
public_key:
|
|
2075
|
+
public_key: MsgpackGrumpkinPoint;
|
|
1841
2076
|
s: Uint8Array;
|
|
1842
2077
|
e: Uint8Array;
|
|
1843
2078
|
}
|
|
@@ -1867,21 +2102,31 @@ interface MsgpackSecp256k1GetRandomFrResponse {
|
|
|
1867
2102
|
}
|
|
1868
2103
|
|
|
1869
2104
|
export interface Secp256k1Mul {
|
|
1870
|
-
point:
|
|
2105
|
+
point: Secp256k1Point;
|
|
1871
2106
|
scalar: Secp256k1Fr;
|
|
1872
2107
|
}
|
|
1873
2108
|
|
|
1874
2109
|
interface MsgpackSecp256k1Mul {
|
|
1875
|
-
point:
|
|
2110
|
+
point: MsgpackSecp256k1Point;
|
|
1876
2111
|
scalar: Uint8Array;
|
|
1877
2112
|
}
|
|
1878
2113
|
|
|
1879
2114
|
export interface Secp256k1MulResponse {
|
|
1880
|
-
point:
|
|
2115
|
+
point: Secp256k1Point;
|
|
1881
2116
|
}
|
|
1882
2117
|
|
|
1883
2118
|
interface MsgpackSecp256k1MulResponse {
|
|
1884
|
-
point:
|
|
2119
|
+
point: MsgpackSecp256k1Point;
|
|
2120
|
+
}
|
|
2121
|
+
|
|
2122
|
+
export interface Secp256k1Point {
|
|
2123
|
+
x: Secp256k1Fq;
|
|
2124
|
+
y: Secp256k1Fq;
|
|
2125
|
+
}
|
|
2126
|
+
|
|
2127
|
+
interface MsgpackSecp256k1Point {
|
|
2128
|
+
x: Uint8Array;
|
|
2129
|
+
y: Uint8Array;
|
|
1885
2130
|
}
|
|
1886
2131
|
|
|
1887
2132
|
export interface Secp256k1Reduce512 {
|
|
@@ -1900,6 +2145,16 @@ interface MsgpackSecp256k1Reduce512Response {
|
|
|
1900
2145
|
value: Uint8Array;
|
|
1901
2146
|
}
|
|
1902
2147
|
|
|
2148
|
+
export interface Secp256r1Point {
|
|
2149
|
+
x: Secp256r1Fq;
|
|
2150
|
+
y: Secp256r1Fq;
|
|
2151
|
+
}
|
|
2152
|
+
|
|
2153
|
+
interface MsgpackSecp256r1Point {
|
|
2154
|
+
x: Uint8Array;
|
|
2155
|
+
y: Uint8Array;
|
|
2156
|
+
}
|
|
2157
|
+
|
|
1903
2158
|
export interface Shutdown {
|
|
1904
2159
|
}
|
|
1905
2160
|
|
|
@@ -2047,24 +2302,6 @@ export function fromAesEncryptResponse(o: AesEncryptResponse): MsgpackAesEncrypt
|
|
|
2047
2302
|
};
|
|
2048
2303
|
}
|
|
2049
2304
|
|
|
2050
|
-
export function toAffineElement(o: MsgpackAffineElement): AffineElement {
|
|
2051
|
-
if (o.x === undefined) { throw new Error("Expected x in AffineElement deserialization"); }
|
|
2052
|
-
if (o.y === undefined) { throw new Error("Expected y in AffineElement deserialization"); };
|
|
2053
|
-
return {
|
|
2054
|
-
x: o.x,
|
|
2055
|
-
y: o.y,
|
|
2056
|
-
};
|
|
2057
|
-
}
|
|
2058
|
-
|
|
2059
|
-
export function fromAffineElement(o: AffineElement): MsgpackAffineElement {
|
|
2060
|
-
if (o.x === undefined) { throw new Error("Expected x in AffineElement serialization"); }
|
|
2061
|
-
if (o.y === undefined) { throw new Error("Expected y in AffineElement serialization"); };
|
|
2062
|
-
return {
|
|
2063
|
-
x: o.x,
|
|
2064
|
-
y: o.y,
|
|
2065
|
-
};
|
|
2066
|
-
}
|
|
2067
|
-
|
|
2068
2305
|
export function toBlake2s(o: MsgpackBlake2s): Blake2s {
|
|
2069
2306
|
if (o.data === undefined) { throw new Error("Expected data in Blake2s deserialization"); };
|
|
2070
2307
|
return {
|
|
@@ -2121,6 +2358,38 @@ export function fromBlake2sToFieldResponse(o: Blake2sToFieldResponse): MsgpackBl
|
|
|
2121
2358
|
};
|
|
2122
2359
|
}
|
|
2123
2360
|
|
|
2361
|
+
export function toBn254FqSqrt(o: MsgpackBn254FqSqrt): Bn254FqSqrt {
|
|
2362
|
+
if (o.input === undefined) { throw new Error("Expected input in Bn254FqSqrt deserialization"); };
|
|
2363
|
+
return {
|
|
2364
|
+
input: o.input,
|
|
2365
|
+
};
|
|
2366
|
+
}
|
|
2367
|
+
|
|
2368
|
+
export function fromBn254FqSqrt(o: Bn254FqSqrt): MsgpackBn254FqSqrt {
|
|
2369
|
+
if (o.input === undefined) { throw new Error("Expected input in Bn254FqSqrt serialization"); };
|
|
2370
|
+
return {
|
|
2371
|
+
input: o.input,
|
|
2372
|
+
};
|
|
2373
|
+
}
|
|
2374
|
+
|
|
2375
|
+
export function toBn254FqSqrtResponse(o: MsgpackBn254FqSqrtResponse): Bn254FqSqrtResponse {
|
|
2376
|
+
if (o.is_square_root === undefined) { throw new Error("Expected is_square_root in Bn254FqSqrtResponse deserialization"); }
|
|
2377
|
+
if (o.value === undefined) { throw new Error("Expected value in Bn254FqSqrtResponse deserialization"); };
|
|
2378
|
+
return {
|
|
2379
|
+
isSquareRoot: o.is_square_root,
|
|
2380
|
+
value: o.value,
|
|
2381
|
+
};
|
|
2382
|
+
}
|
|
2383
|
+
|
|
2384
|
+
export function fromBn254FqSqrtResponse(o: Bn254FqSqrtResponse): MsgpackBn254FqSqrtResponse {
|
|
2385
|
+
if (o.isSquareRoot === undefined) { throw new Error("Expected isSquareRoot in Bn254FqSqrtResponse serialization"); }
|
|
2386
|
+
if (o.value === undefined) { throw new Error("Expected value in Bn254FqSqrtResponse serialization"); };
|
|
2387
|
+
return {
|
|
2388
|
+
is_square_root: o.isSquareRoot,
|
|
2389
|
+
value: o.value,
|
|
2390
|
+
};
|
|
2391
|
+
}
|
|
2392
|
+
|
|
2124
2393
|
export function toBn254FrSqrt(o: MsgpackBn254FrSqrt): Bn254FrSqrt {
|
|
2125
2394
|
if (o.input === undefined) { throw new Error("Expected input in Bn254FrSqrt deserialization"); };
|
|
2126
2395
|
return {
|
|
@@ -2131,25 +2400,451 @@ export function toBn254FrSqrt(o: MsgpackBn254FrSqrt): Bn254FrSqrt {
|
|
|
2131
2400
|
export function fromBn254FrSqrt(o: Bn254FrSqrt): MsgpackBn254FrSqrt {
|
|
2132
2401
|
if (o.input === undefined) { throw new Error("Expected input in Bn254FrSqrt serialization"); };
|
|
2133
2402
|
return {
|
|
2134
|
-
input: o.input,
|
|
2403
|
+
input: o.input,
|
|
2404
|
+
};
|
|
2405
|
+
}
|
|
2406
|
+
|
|
2407
|
+
export function toBn254FrSqrtResponse(o: MsgpackBn254FrSqrtResponse): Bn254FrSqrtResponse {
|
|
2408
|
+
if (o.is_square_root === undefined) { throw new Error("Expected is_square_root in Bn254FrSqrtResponse deserialization"); }
|
|
2409
|
+
if (o.value === undefined) { throw new Error("Expected value in Bn254FrSqrtResponse deserialization"); };
|
|
2410
|
+
return {
|
|
2411
|
+
isSquareRoot: o.is_square_root,
|
|
2412
|
+
value: o.value,
|
|
2413
|
+
};
|
|
2414
|
+
}
|
|
2415
|
+
|
|
2416
|
+
export function fromBn254FrSqrtResponse(o: Bn254FrSqrtResponse): MsgpackBn254FrSqrtResponse {
|
|
2417
|
+
if (o.isSquareRoot === undefined) { throw new Error("Expected isSquareRoot in Bn254FrSqrtResponse serialization"); }
|
|
2418
|
+
if (o.value === undefined) { throw new Error("Expected value in Bn254FrSqrtResponse serialization"); };
|
|
2419
|
+
return {
|
|
2420
|
+
is_square_root: o.isSquareRoot,
|
|
2421
|
+
value: o.value,
|
|
2422
|
+
};
|
|
2423
|
+
}
|
|
2424
|
+
|
|
2425
|
+
export function toBn254G1FromCompressed(o: MsgpackBn254G1FromCompressed): Bn254G1FromCompressed {
|
|
2426
|
+
if (o.compressed === undefined) { throw new Error("Expected compressed in Bn254G1FromCompressed deserialization"); };
|
|
2427
|
+
return {
|
|
2428
|
+
compressed: o.compressed,
|
|
2429
|
+
};
|
|
2430
|
+
}
|
|
2431
|
+
|
|
2432
|
+
export function fromBn254G1FromCompressed(o: Bn254G1FromCompressed): MsgpackBn254G1FromCompressed {
|
|
2433
|
+
if (o.compressed === undefined) { throw new Error("Expected compressed in Bn254G1FromCompressed serialization"); };
|
|
2434
|
+
return {
|
|
2435
|
+
compressed: o.compressed,
|
|
2436
|
+
};
|
|
2437
|
+
}
|
|
2438
|
+
|
|
2439
|
+
export function toBn254G1FromCompressedResponse(o: MsgpackBn254G1FromCompressedResponse): Bn254G1FromCompressedResponse {
|
|
2440
|
+
if (o.point === undefined) { throw new Error("Expected point in Bn254G1FromCompressedResponse deserialization"); };
|
|
2441
|
+
return {
|
|
2442
|
+
point: toBn254G1Point(o.point),
|
|
2443
|
+
};
|
|
2444
|
+
}
|
|
2445
|
+
|
|
2446
|
+
export function fromBn254G1FromCompressedResponse(o: Bn254G1FromCompressedResponse): MsgpackBn254G1FromCompressedResponse {
|
|
2447
|
+
if (o.point === undefined) { throw new Error("Expected point in Bn254G1FromCompressedResponse serialization"); };
|
|
2448
|
+
return {
|
|
2449
|
+
point: fromBn254G1Point(o.point),
|
|
2450
|
+
};
|
|
2451
|
+
}
|
|
2452
|
+
|
|
2453
|
+
export function toBn254G1IsOnCurve(o: MsgpackBn254G1IsOnCurve): Bn254G1IsOnCurve {
|
|
2454
|
+
if (o.point === undefined) { throw new Error("Expected point in Bn254G1IsOnCurve deserialization"); };
|
|
2455
|
+
return {
|
|
2456
|
+
point: toBn254G1Point(o.point),
|
|
2457
|
+
};
|
|
2458
|
+
}
|
|
2459
|
+
|
|
2460
|
+
export function fromBn254G1IsOnCurve(o: Bn254G1IsOnCurve): MsgpackBn254G1IsOnCurve {
|
|
2461
|
+
if (o.point === undefined) { throw new Error("Expected point in Bn254G1IsOnCurve serialization"); };
|
|
2462
|
+
return {
|
|
2463
|
+
point: fromBn254G1Point(o.point),
|
|
2464
|
+
};
|
|
2465
|
+
}
|
|
2466
|
+
|
|
2467
|
+
export function toBn254G1IsOnCurveResponse(o: MsgpackBn254G1IsOnCurveResponse): Bn254G1IsOnCurveResponse {
|
|
2468
|
+
if (o.is_on_curve === undefined) { throw new Error("Expected is_on_curve in Bn254G1IsOnCurveResponse deserialization"); };
|
|
2469
|
+
return {
|
|
2470
|
+
isOnCurve: o.is_on_curve,
|
|
2471
|
+
};
|
|
2472
|
+
}
|
|
2473
|
+
|
|
2474
|
+
export function fromBn254G1IsOnCurveResponse(o: Bn254G1IsOnCurveResponse): MsgpackBn254G1IsOnCurveResponse {
|
|
2475
|
+
if (o.isOnCurve === undefined) { throw new Error("Expected isOnCurve in Bn254G1IsOnCurveResponse serialization"); };
|
|
2476
|
+
return {
|
|
2477
|
+
is_on_curve: o.isOnCurve,
|
|
2478
|
+
};
|
|
2479
|
+
}
|
|
2480
|
+
|
|
2481
|
+
export function toBn254G1Mul(o: MsgpackBn254G1Mul): Bn254G1Mul {
|
|
2482
|
+
if (o.point === undefined) { throw new Error("Expected point in Bn254G1Mul deserialization"); }
|
|
2483
|
+
if (o.scalar === undefined) { throw new Error("Expected scalar in Bn254G1Mul deserialization"); };
|
|
2484
|
+
return {
|
|
2485
|
+
point: toBn254G1Point(o.point),
|
|
2486
|
+
scalar: o.scalar,
|
|
2487
|
+
};
|
|
2488
|
+
}
|
|
2489
|
+
|
|
2490
|
+
export function fromBn254G1Mul(o: Bn254G1Mul): MsgpackBn254G1Mul {
|
|
2491
|
+
if (o.point === undefined) { throw new Error("Expected point in Bn254G1Mul serialization"); }
|
|
2492
|
+
if (o.scalar === undefined) { throw new Error("Expected scalar in Bn254G1Mul serialization"); };
|
|
2493
|
+
return {
|
|
2494
|
+
point: fromBn254G1Point(o.point),
|
|
2495
|
+
scalar: o.scalar,
|
|
2496
|
+
};
|
|
2497
|
+
}
|
|
2498
|
+
|
|
2499
|
+
export function toBn254G1MulResponse(o: MsgpackBn254G1MulResponse): Bn254G1MulResponse {
|
|
2500
|
+
if (o.point === undefined) { throw new Error("Expected point in Bn254G1MulResponse deserialization"); };
|
|
2501
|
+
return {
|
|
2502
|
+
point: toBn254G1Point(o.point),
|
|
2503
|
+
};
|
|
2504
|
+
}
|
|
2505
|
+
|
|
2506
|
+
export function fromBn254G1MulResponse(o: Bn254G1MulResponse): MsgpackBn254G1MulResponse {
|
|
2507
|
+
if (o.point === undefined) { throw new Error("Expected point in Bn254G1MulResponse serialization"); };
|
|
2508
|
+
return {
|
|
2509
|
+
point: fromBn254G1Point(o.point),
|
|
2510
|
+
};
|
|
2511
|
+
}
|
|
2512
|
+
|
|
2513
|
+
export function toBn254G1Point(o: MsgpackBn254G1Point): Bn254G1Point {
|
|
2514
|
+
if (o.x === undefined) { throw new Error("Expected x in Bn254G1Point deserialization"); }
|
|
2515
|
+
if (o.y === undefined) { throw new Error("Expected y in Bn254G1Point deserialization"); };
|
|
2516
|
+
return {
|
|
2517
|
+
x: o.x,
|
|
2518
|
+
y: o.y,
|
|
2519
|
+
};
|
|
2520
|
+
}
|
|
2521
|
+
|
|
2522
|
+
export function fromBn254G1Point(o: Bn254G1Point): MsgpackBn254G1Point {
|
|
2523
|
+
if (o.x === undefined) { throw new Error("Expected x in Bn254G1Point serialization"); }
|
|
2524
|
+
if (o.y === undefined) { throw new Error("Expected y in Bn254G1Point serialization"); };
|
|
2525
|
+
return {
|
|
2526
|
+
x: o.x,
|
|
2527
|
+
y: o.y,
|
|
2528
|
+
};
|
|
2529
|
+
}
|
|
2530
|
+
|
|
2531
|
+
export function toBn254G2Mul(o: MsgpackBn254G2Mul): Bn254G2Mul {
|
|
2532
|
+
if (o.point === undefined) { throw new Error("Expected point in Bn254G2Mul deserialization"); }
|
|
2533
|
+
if (o.scalar === undefined) { throw new Error("Expected scalar in Bn254G2Mul deserialization"); };
|
|
2534
|
+
return {
|
|
2535
|
+
point: toBn254G2Point(o.point),
|
|
2536
|
+
scalar: o.scalar,
|
|
2537
|
+
};
|
|
2538
|
+
}
|
|
2539
|
+
|
|
2540
|
+
export function fromBn254G2Mul(o: Bn254G2Mul): MsgpackBn254G2Mul {
|
|
2541
|
+
if (o.point === undefined) { throw new Error("Expected point in Bn254G2Mul serialization"); }
|
|
2542
|
+
if (o.scalar === undefined) { throw new Error("Expected scalar in Bn254G2Mul serialization"); };
|
|
2543
|
+
return {
|
|
2544
|
+
point: fromBn254G2Point(o.point),
|
|
2545
|
+
scalar: o.scalar,
|
|
2546
|
+
};
|
|
2547
|
+
}
|
|
2548
|
+
|
|
2549
|
+
export function toBn254G2MulResponse(o: MsgpackBn254G2MulResponse): Bn254G2MulResponse {
|
|
2550
|
+
if (o.point === undefined) { throw new Error("Expected point in Bn254G2MulResponse deserialization"); };
|
|
2551
|
+
return {
|
|
2552
|
+
point: toBn254G2Point(o.point),
|
|
2553
|
+
};
|
|
2554
|
+
}
|
|
2555
|
+
|
|
2556
|
+
export function fromBn254G2MulResponse(o: Bn254G2MulResponse): MsgpackBn254G2MulResponse {
|
|
2557
|
+
if (o.point === undefined) { throw new Error("Expected point in Bn254G2MulResponse serialization"); };
|
|
2558
|
+
return {
|
|
2559
|
+
point: fromBn254G2Point(o.point),
|
|
2560
|
+
};
|
|
2561
|
+
}
|
|
2562
|
+
|
|
2563
|
+
export function toBn254G2Point(o: MsgpackBn254G2Point): Bn254G2Point {
|
|
2564
|
+
if (o.x === undefined) { throw new Error("Expected x in Bn254G2Point deserialization"); }
|
|
2565
|
+
if (o.y === undefined) { throw new Error("Expected y in Bn254G2Point deserialization"); };
|
|
2566
|
+
return {
|
|
2567
|
+
x: o.x,
|
|
2568
|
+
y: o.y,
|
|
2569
|
+
};
|
|
2570
|
+
}
|
|
2571
|
+
|
|
2572
|
+
export function fromBn254G2Point(o: Bn254G2Point): MsgpackBn254G2Point {
|
|
2573
|
+
if (o.x === undefined) { throw new Error("Expected x in Bn254G2Point serialization"); }
|
|
2574
|
+
if (o.y === undefined) { throw new Error("Expected y in Bn254G2Point serialization"); };
|
|
2575
|
+
return {
|
|
2576
|
+
x: o.x,
|
|
2577
|
+
y: o.y,
|
|
2578
|
+
};
|
|
2579
|
+
}
|
|
2580
|
+
|
|
2581
|
+
export function toChonkAccumulate(o: MsgpackChonkAccumulate): ChonkAccumulate {
|
|
2582
|
+
if (o.witness === undefined) { throw new Error("Expected witness in ChonkAccumulate deserialization"); };
|
|
2583
|
+
return {
|
|
2584
|
+
witness: o.witness,
|
|
2585
|
+
};
|
|
2586
|
+
}
|
|
2587
|
+
|
|
2588
|
+
export function fromChonkAccumulate(o: ChonkAccumulate): MsgpackChonkAccumulate {
|
|
2589
|
+
if (o.witness === undefined) { throw new Error("Expected witness in ChonkAccumulate serialization"); };
|
|
2590
|
+
return {
|
|
2591
|
+
witness: o.witness,
|
|
2592
|
+
};
|
|
2593
|
+
}
|
|
2594
|
+
|
|
2595
|
+
export function toChonkAccumulateResponse(o: MsgpackChonkAccumulateResponse): ChonkAccumulateResponse {
|
|
2596
|
+
return {};
|
|
2597
|
+
}
|
|
2598
|
+
|
|
2599
|
+
export function fromChonkAccumulateResponse(o: ChonkAccumulateResponse): MsgpackChonkAccumulateResponse {
|
|
2600
|
+
return {};
|
|
2601
|
+
}
|
|
2602
|
+
|
|
2603
|
+
export function toChonkCheckPrecomputedVk(o: MsgpackChonkCheckPrecomputedVk): ChonkCheckPrecomputedVk {
|
|
2604
|
+
if (o.circuit === undefined) { throw new Error("Expected circuit in ChonkCheckPrecomputedVk deserialization"); };
|
|
2605
|
+
return {
|
|
2606
|
+
circuit: toCircuitInput(o.circuit),
|
|
2607
|
+
};
|
|
2608
|
+
}
|
|
2609
|
+
|
|
2610
|
+
export function fromChonkCheckPrecomputedVk(o: ChonkCheckPrecomputedVk): MsgpackChonkCheckPrecomputedVk {
|
|
2611
|
+
if (o.circuit === undefined) { throw new Error("Expected circuit in ChonkCheckPrecomputedVk serialization"); };
|
|
2612
|
+
return {
|
|
2613
|
+
circuit: fromCircuitInput(o.circuit),
|
|
2614
|
+
};
|
|
2615
|
+
}
|
|
2616
|
+
|
|
2617
|
+
export function toChonkCheckPrecomputedVkResponse(o: MsgpackChonkCheckPrecomputedVkResponse): ChonkCheckPrecomputedVkResponse {
|
|
2618
|
+
if (o.valid === undefined) { throw new Error("Expected valid in ChonkCheckPrecomputedVkResponse deserialization"); }
|
|
2619
|
+
if (o.actual_vk === undefined) { throw new Error("Expected actual_vk in ChonkCheckPrecomputedVkResponse deserialization"); };
|
|
2620
|
+
return {
|
|
2621
|
+
valid: o.valid,
|
|
2622
|
+
actualVk: o.actual_vk,
|
|
2623
|
+
};
|
|
2624
|
+
}
|
|
2625
|
+
|
|
2626
|
+
export function fromChonkCheckPrecomputedVkResponse(o: ChonkCheckPrecomputedVkResponse): MsgpackChonkCheckPrecomputedVkResponse {
|
|
2627
|
+
if (o.valid === undefined) { throw new Error("Expected valid in ChonkCheckPrecomputedVkResponse serialization"); }
|
|
2628
|
+
if (o.actualVk === undefined) { throw new Error("Expected actualVk in ChonkCheckPrecomputedVkResponse serialization"); };
|
|
2629
|
+
return {
|
|
2630
|
+
valid: o.valid,
|
|
2631
|
+
actual_vk: o.actualVk,
|
|
2632
|
+
};
|
|
2633
|
+
}
|
|
2634
|
+
|
|
2635
|
+
export function toChonkComputeIvcVk(o: MsgpackChonkComputeIvcVk): ChonkComputeIvcVk {
|
|
2636
|
+
if (o.circuit === undefined) { throw new Error("Expected circuit in ChonkComputeIvcVk deserialization"); };
|
|
2637
|
+
return {
|
|
2638
|
+
circuit: toCircuitInputNoVK(o.circuit),
|
|
2639
|
+
};
|
|
2640
|
+
}
|
|
2641
|
+
|
|
2642
|
+
export function fromChonkComputeIvcVk(o: ChonkComputeIvcVk): MsgpackChonkComputeIvcVk {
|
|
2643
|
+
if (o.circuit === undefined) { throw new Error("Expected circuit in ChonkComputeIvcVk serialization"); };
|
|
2644
|
+
return {
|
|
2645
|
+
circuit: fromCircuitInputNoVK(o.circuit),
|
|
2646
|
+
};
|
|
2647
|
+
}
|
|
2648
|
+
|
|
2649
|
+
export function toChonkComputeIvcVkResponse(o: MsgpackChonkComputeIvcVkResponse): ChonkComputeIvcVkResponse {
|
|
2650
|
+
if (o.bytes === undefined) { throw new Error("Expected bytes in ChonkComputeIvcVkResponse deserialization"); };
|
|
2651
|
+
return {
|
|
2652
|
+
bytes: o.bytes,
|
|
2653
|
+
};
|
|
2654
|
+
}
|
|
2655
|
+
|
|
2656
|
+
export function fromChonkComputeIvcVkResponse(o: ChonkComputeIvcVkResponse): MsgpackChonkComputeIvcVkResponse {
|
|
2657
|
+
if (o.bytes === undefined) { throw new Error("Expected bytes in ChonkComputeIvcVkResponse serialization"); };
|
|
2658
|
+
return {
|
|
2659
|
+
bytes: o.bytes,
|
|
2660
|
+
};
|
|
2661
|
+
}
|
|
2662
|
+
|
|
2663
|
+
export function toChonkComputeStandaloneVk(o: MsgpackChonkComputeStandaloneVk): ChonkComputeStandaloneVk {
|
|
2664
|
+
if (o.circuit === undefined) { throw new Error("Expected circuit in ChonkComputeStandaloneVk deserialization"); };
|
|
2665
|
+
return {
|
|
2666
|
+
circuit: toCircuitInputNoVK(o.circuit),
|
|
2667
|
+
};
|
|
2668
|
+
}
|
|
2669
|
+
|
|
2670
|
+
export function fromChonkComputeStandaloneVk(o: ChonkComputeStandaloneVk): MsgpackChonkComputeStandaloneVk {
|
|
2671
|
+
if (o.circuit === undefined) { throw new Error("Expected circuit in ChonkComputeStandaloneVk serialization"); };
|
|
2672
|
+
return {
|
|
2673
|
+
circuit: fromCircuitInputNoVK(o.circuit),
|
|
2674
|
+
};
|
|
2675
|
+
}
|
|
2676
|
+
|
|
2677
|
+
export function toChonkComputeStandaloneVkResponse(o: MsgpackChonkComputeStandaloneVkResponse): ChonkComputeStandaloneVkResponse {
|
|
2678
|
+
if (o.bytes === undefined) { throw new Error("Expected bytes in ChonkComputeStandaloneVkResponse deserialization"); }
|
|
2679
|
+
if (o.fields === undefined) { throw new Error("Expected fields in ChonkComputeStandaloneVkResponse deserialization"); };
|
|
2680
|
+
return {
|
|
2681
|
+
bytes: o.bytes,
|
|
2682
|
+
fields: o.fields.map((v: any) => v),
|
|
2683
|
+
};
|
|
2684
|
+
}
|
|
2685
|
+
|
|
2686
|
+
export function fromChonkComputeStandaloneVkResponse(o: ChonkComputeStandaloneVkResponse): MsgpackChonkComputeStandaloneVkResponse {
|
|
2687
|
+
if (o.bytes === undefined) { throw new Error("Expected bytes in ChonkComputeStandaloneVkResponse serialization"); }
|
|
2688
|
+
if (o.fields === undefined) { throw new Error("Expected fields in ChonkComputeStandaloneVkResponse serialization"); };
|
|
2689
|
+
return {
|
|
2690
|
+
bytes: o.bytes,
|
|
2691
|
+
fields: o.fields.map((v: any) => v),
|
|
2692
|
+
};
|
|
2693
|
+
}
|
|
2694
|
+
|
|
2695
|
+
export function toChonkLoad(o: MsgpackChonkLoad): ChonkLoad {
|
|
2696
|
+
if (o.circuit === undefined) { throw new Error("Expected circuit in ChonkLoad deserialization"); };
|
|
2697
|
+
return {
|
|
2698
|
+
circuit: toCircuitInput(o.circuit),
|
|
2699
|
+
};
|
|
2700
|
+
}
|
|
2701
|
+
|
|
2702
|
+
export function fromChonkLoad(o: ChonkLoad): MsgpackChonkLoad {
|
|
2703
|
+
if (o.circuit === undefined) { throw new Error("Expected circuit in ChonkLoad serialization"); };
|
|
2704
|
+
return {
|
|
2705
|
+
circuit: fromCircuitInput(o.circuit),
|
|
2706
|
+
};
|
|
2707
|
+
}
|
|
2708
|
+
|
|
2709
|
+
export function toChonkLoadResponse(o: MsgpackChonkLoadResponse): ChonkLoadResponse {
|
|
2710
|
+
return {};
|
|
2711
|
+
}
|
|
2712
|
+
|
|
2713
|
+
export function fromChonkLoadResponse(o: ChonkLoadResponse): MsgpackChonkLoadResponse {
|
|
2714
|
+
return {};
|
|
2715
|
+
}
|
|
2716
|
+
|
|
2717
|
+
export function toChonkProof(o: MsgpackChonkProof): ChonkProof {
|
|
2718
|
+
if (o.mega_proof === undefined) { throw new Error("Expected mega_proof in ChonkProof deserialization"); }
|
|
2719
|
+
if (o.goblin_proof === undefined) { throw new Error("Expected goblin_proof in ChonkProof deserialization"); };
|
|
2720
|
+
return {
|
|
2721
|
+
megaProof: o.mega_proof.map((v: any) => v),
|
|
2722
|
+
goblinProof: toGoblinProof(o.goblin_proof),
|
|
2723
|
+
};
|
|
2724
|
+
}
|
|
2725
|
+
|
|
2726
|
+
export function fromChonkProof(o: ChonkProof): MsgpackChonkProof {
|
|
2727
|
+
if (o.megaProof === undefined) { throw new Error("Expected megaProof in ChonkProof serialization"); }
|
|
2728
|
+
if (o.goblinProof === undefined) { throw new Error("Expected goblinProof in ChonkProof serialization"); };
|
|
2729
|
+
return {
|
|
2730
|
+
mega_proof: o.megaProof.map((v: any) => v),
|
|
2731
|
+
goblin_proof: fromGoblinProof(o.goblinProof),
|
|
2732
|
+
};
|
|
2733
|
+
}
|
|
2734
|
+
|
|
2735
|
+
export function toChonkProve(o: MsgpackChonkProve): ChonkProve {
|
|
2736
|
+
return {};
|
|
2737
|
+
}
|
|
2738
|
+
|
|
2739
|
+
export function fromChonkProve(o: ChonkProve): MsgpackChonkProve {
|
|
2740
|
+
return {};
|
|
2741
|
+
}
|
|
2742
|
+
|
|
2743
|
+
export function toChonkProveResponse(o: MsgpackChonkProveResponse): ChonkProveResponse {
|
|
2744
|
+
if (o.proof === undefined) { throw new Error("Expected proof in ChonkProveResponse deserialization"); };
|
|
2745
|
+
return {
|
|
2746
|
+
proof: toChonkProof(o.proof),
|
|
2747
|
+
};
|
|
2748
|
+
}
|
|
2749
|
+
|
|
2750
|
+
export function fromChonkProveResponse(o: ChonkProveResponse): MsgpackChonkProveResponse {
|
|
2751
|
+
if (o.proof === undefined) { throw new Error("Expected proof in ChonkProveResponse serialization"); };
|
|
2752
|
+
return {
|
|
2753
|
+
proof: fromChonkProof(o.proof),
|
|
2754
|
+
};
|
|
2755
|
+
}
|
|
2756
|
+
|
|
2757
|
+
export function toChonkStart(o: MsgpackChonkStart): ChonkStart {
|
|
2758
|
+
if (o.num_circuits === undefined) { throw new Error("Expected num_circuits in ChonkStart deserialization"); };
|
|
2759
|
+
return {
|
|
2760
|
+
numCircuits: o.num_circuits,
|
|
2761
|
+
};
|
|
2762
|
+
}
|
|
2763
|
+
|
|
2764
|
+
export function fromChonkStart(o: ChonkStart): MsgpackChonkStart {
|
|
2765
|
+
if (o.numCircuits === undefined) { throw new Error("Expected numCircuits in ChonkStart serialization"); };
|
|
2766
|
+
return {
|
|
2767
|
+
num_circuits: o.numCircuits,
|
|
2768
|
+
};
|
|
2769
|
+
}
|
|
2770
|
+
|
|
2771
|
+
export function toChonkStartResponse(o: MsgpackChonkStartResponse): ChonkStartResponse {
|
|
2772
|
+
return {};
|
|
2773
|
+
}
|
|
2774
|
+
|
|
2775
|
+
export function fromChonkStartResponse(o: ChonkStartResponse): MsgpackChonkStartResponse {
|
|
2776
|
+
return {};
|
|
2777
|
+
}
|
|
2778
|
+
|
|
2779
|
+
export function toChonkStats(o: MsgpackChonkStats): ChonkStats {
|
|
2780
|
+
if (o.circuit === undefined) { throw new Error("Expected circuit in ChonkStats deserialization"); }
|
|
2781
|
+
if (o.include_gates_per_opcode === undefined) { throw new Error("Expected include_gates_per_opcode in ChonkStats deserialization"); };
|
|
2782
|
+
return {
|
|
2783
|
+
circuit: toCircuitInputNoVK(o.circuit),
|
|
2784
|
+
includeGatesPerOpcode: o.include_gates_per_opcode,
|
|
2785
|
+
};
|
|
2786
|
+
}
|
|
2787
|
+
|
|
2788
|
+
export function fromChonkStats(o: ChonkStats): MsgpackChonkStats {
|
|
2789
|
+
if (o.circuit === undefined) { throw new Error("Expected circuit in ChonkStats serialization"); }
|
|
2790
|
+
if (o.includeGatesPerOpcode === undefined) { throw new Error("Expected includeGatesPerOpcode in ChonkStats serialization"); };
|
|
2791
|
+
return {
|
|
2792
|
+
circuit: fromCircuitInputNoVK(o.circuit),
|
|
2793
|
+
include_gates_per_opcode: o.includeGatesPerOpcode,
|
|
2794
|
+
};
|
|
2795
|
+
}
|
|
2796
|
+
|
|
2797
|
+
export function toChonkStatsResponse(o: MsgpackChonkStatsResponse): ChonkStatsResponse {
|
|
2798
|
+
if (o.acir_opcodes === undefined) { throw new Error("Expected acir_opcodes in ChonkStatsResponse deserialization"); }
|
|
2799
|
+
if (o.circuit_size === undefined) { throw new Error("Expected circuit_size in ChonkStatsResponse deserialization"); }
|
|
2800
|
+
if (o.gates_per_opcode === undefined) { throw new Error("Expected gates_per_opcode in ChonkStatsResponse deserialization"); };
|
|
2801
|
+
return {
|
|
2802
|
+
acirOpcodes: o.acir_opcodes,
|
|
2803
|
+
circuitSize: o.circuit_size,
|
|
2804
|
+
gatesPerOpcode: o.gates_per_opcode.map((v: any) => v),
|
|
2805
|
+
};
|
|
2806
|
+
}
|
|
2807
|
+
|
|
2808
|
+
export function fromChonkStatsResponse(o: ChonkStatsResponse): MsgpackChonkStatsResponse {
|
|
2809
|
+
if (o.acirOpcodes === undefined) { throw new Error("Expected acirOpcodes in ChonkStatsResponse serialization"); }
|
|
2810
|
+
if (o.circuitSize === undefined) { throw new Error("Expected circuitSize in ChonkStatsResponse serialization"); }
|
|
2811
|
+
if (o.gatesPerOpcode === undefined) { throw new Error("Expected gatesPerOpcode in ChonkStatsResponse serialization"); };
|
|
2812
|
+
return {
|
|
2813
|
+
acir_opcodes: o.acirOpcodes,
|
|
2814
|
+
circuit_size: o.circuitSize,
|
|
2815
|
+
gates_per_opcode: o.gatesPerOpcode.map((v: any) => v),
|
|
2816
|
+
};
|
|
2817
|
+
}
|
|
2818
|
+
|
|
2819
|
+
export function toChonkVerify(o: MsgpackChonkVerify): ChonkVerify {
|
|
2820
|
+
if (o.proof === undefined) { throw new Error("Expected proof in ChonkVerify deserialization"); }
|
|
2821
|
+
if (o.vk === undefined) { throw new Error("Expected vk in ChonkVerify deserialization"); };
|
|
2822
|
+
return {
|
|
2823
|
+
proof: toChonkProof(o.proof),
|
|
2824
|
+
vk: o.vk,
|
|
2825
|
+
};
|
|
2826
|
+
}
|
|
2827
|
+
|
|
2828
|
+
export function fromChonkVerify(o: ChonkVerify): MsgpackChonkVerify {
|
|
2829
|
+
if (o.proof === undefined) { throw new Error("Expected proof in ChonkVerify serialization"); }
|
|
2830
|
+
if (o.vk === undefined) { throw new Error("Expected vk in ChonkVerify serialization"); };
|
|
2831
|
+
return {
|
|
2832
|
+
proof: fromChonkProof(o.proof),
|
|
2833
|
+
vk: o.vk,
|
|
2135
2834
|
};
|
|
2136
2835
|
}
|
|
2137
2836
|
|
|
2138
|
-
export function
|
|
2139
|
-
if (o.
|
|
2140
|
-
if (o.value === undefined) { throw new Error("Expected value in Bn254FrSqrtResponse deserialization"); };
|
|
2837
|
+
export function toChonkVerifyResponse(o: MsgpackChonkVerifyResponse): ChonkVerifyResponse {
|
|
2838
|
+
if (o.valid === undefined) { throw new Error("Expected valid in ChonkVerifyResponse deserialization"); };
|
|
2141
2839
|
return {
|
|
2142
|
-
|
|
2143
|
-
value: o.value,
|
|
2840
|
+
valid: o.valid,
|
|
2144
2841
|
};
|
|
2145
2842
|
}
|
|
2146
2843
|
|
|
2147
|
-
export function
|
|
2148
|
-
if (o.
|
|
2149
|
-
if (o.value === undefined) { throw new Error("Expected value in Bn254FrSqrtResponse serialization"); };
|
|
2844
|
+
export function fromChonkVerifyResponse(o: ChonkVerifyResponse): MsgpackChonkVerifyResponse {
|
|
2845
|
+
if (o.valid === undefined) { throw new Error("Expected valid in ChonkVerifyResponse serialization"); };
|
|
2150
2846
|
return {
|
|
2151
|
-
|
|
2152
|
-
value: o.value,
|
|
2847
|
+
valid: o.valid,
|
|
2153
2848
|
};
|
|
2154
2849
|
}
|
|
2155
2850
|
|
|
@@ -2397,294 +3092,6 @@ export function fromCircuitWriteSolidityVerifierResponse(o: CircuitWriteSolidity
|
|
|
2397
3092
|
};
|
|
2398
3093
|
}
|
|
2399
3094
|
|
|
2400
|
-
export function toClientIvcAccumulate(o: MsgpackClientIvcAccumulate): ClientIvcAccumulate {
|
|
2401
|
-
if (o.witness === undefined) { throw new Error("Expected witness in ClientIvcAccumulate deserialization"); };
|
|
2402
|
-
return {
|
|
2403
|
-
witness: o.witness,
|
|
2404
|
-
};
|
|
2405
|
-
}
|
|
2406
|
-
|
|
2407
|
-
export function fromClientIvcAccumulate(o: ClientIvcAccumulate): MsgpackClientIvcAccumulate {
|
|
2408
|
-
if (o.witness === undefined) { throw new Error("Expected witness in ClientIvcAccumulate serialization"); };
|
|
2409
|
-
return {
|
|
2410
|
-
witness: o.witness,
|
|
2411
|
-
};
|
|
2412
|
-
}
|
|
2413
|
-
|
|
2414
|
-
export function toClientIvcAccumulateResponse(o: MsgpackClientIvcAccumulateResponse): ClientIvcAccumulateResponse {
|
|
2415
|
-
return {};
|
|
2416
|
-
}
|
|
2417
|
-
|
|
2418
|
-
export function fromClientIvcAccumulateResponse(o: ClientIvcAccumulateResponse): MsgpackClientIvcAccumulateResponse {
|
|
2419
|
-
return {};
|
|
2420
|
-
}
|
|
2421
|
-
|
|
2422
|
-
export function toClientIvcCheckPrecomputedVk(o: MsgpackClientIvcCheckPrecomputedVk): ClientIvcCheckPrecomputedVk {
|
|
2423
|
-
if (o.circuit === undefined) { throw new Error("Expected circuit in ClientIvcCheckPrecomputedVk deserialization"); };
|
|
2424
|
-
return {
|
|
2425
|
-
circuit: toCircuitInput(o.circuit),
|
|
2426
|
-
};
|
|
2427
|
-
}
|
|
2428
|
-
|
|
2429
|
-
export function fromClientIvcCheckPrecomputedVk(o: ClientIvcCheckPrecomputedVk): MsgpackClientIvcCheckPrecomputedVk {
|
|
2430
|
-
if (o.circuit === undefined) { throw new Error("Expected circuit in ClientIvcCheckPrecomputedVk serialization"); };
|
|
2431
|
-
return {
|
|
2432
|
-
circuit: fromCircuitInput(o.circuit),
|
|
2433
|
-
};
|
|
2434
|
-
}
|
|
2435
|
-
|
|
2436
|
-
export function toClientIvcCheckPrecomputedVkResponse(o: MsgpackClientIvcCheckPrecomputedVkResponse): ClientIvcCheckPrecomputedVkResponse {
|
|
2437
|
-
if (o.valid === undefined) { throw new Error("Expected valid in ClientIvcCheckPrecomputedVkResponse deserialization"); }
|
|
2438
|
-
if (o.actual_vk === undefined) { throw new Error("Expected actual_vk in ClientIvcCheckPrecomputedVkResponse deserialization"); };
|
|
2439
|
-
return {
|
|
2440
|
-
valid: o.valid,
|
|
2441
|
-
actualVk: o.actual_vk,
|
|
2442
|
-
};
|
|
2443
|
-
}
|
|
2444
|
-
|
|
2445
|
-
export function fromClientIvcCheckPrecomputedVkResponse(o: ClientIvcCheckPrecomputedVkResponse): MsgpackClientIvcCheckPrecomputedVkResponse {
|
|
2446
|
-
if (o.valid === undefined) { throw new Error("Expected valid in ClientIvcCheckPrecomputedVkResponse serialization"); }
|
|
2447
|
-
if (o.actualVk === undefined) { throw new Error("Expected actualVk in ClientIvcCheckPrecomputedVkResponse serialization"); };
|
|
2448
|
-
return {
|
|
2449
|
-
valid: o.valid,
|
|
2450
|
-
actual_vk: o.actualVk,
|
|
2451
|
-
};
|
|
2452
|
-
}
|
|
2453
|
-
|
|
2454
|
-
export function toClientIvcComputeIvcVk(o: MsgpackClientIvcComputeIvcVk): ClientIvcComputeIvcVk {
|
|
2455
|
-
if (o.circuit === undefined) { throw new Error("Expected circuit in ClientIvcComputeIvcVk deserialization"); };
|
|
2456
|
-
return {
|
|
2457
|
-
circuit: toCircuitInputNoVK(o.circuit),
|
|
2458
|
-
};
|
|
2459
|
-
}
|
|
2460
|
-
|
|
2461
|
-
export function fromClientIvcComputeIvcVk(o: ClientIvcComputeIvcVk): MsgpackClientIvcComputeIvcVk {
|
|
2462
|
-
if (o.circuit === undefined) { throw new Error("Expected circuit in ClientIvcComputeIvcVk serialization"); };
|
|
2463
|
-
return {
|
|
2464
|
-
circuit: fromCircuitInputNoVK(o.circuit),
|
|
2465
|
-
};
|
|
2466
|
-
}
|
|
2467
|
-
|
|
2468
|
-
export function toClientIvcComputeIvcVkResponse(o: MsgpackClientIvcComputeIvcVkResponse): ClientIvcComputeIvcVkResponse {
|
|
2469
|
-
if (o.bytes === undefined) { throw new Error("Expected bytes in ClientIvcComputeIvcVkResponse deserialization"); };
|
|
2470
|
-
return {
|
|
2471
|
-
bytes: o.bytes,
|
|
2472
|
-
};
|
|
2473
|
-
}
|
|
2474
|
-
|
|
2475
|
-
export function fromClientIvcComputeIvcVkResponse(o: ClientIvcComputeIvcVkResponse): MsgpackClientIvcComputeIvcVkResponse {
|
|
2476
|
-
if (o.bytes === undefined) { throw new Error("Expected bytes in ClientIvcComputeIvcVkResponse serialization"); };
|
|
2477
|
-
return {
|
|
2478
|
-
bytes: o.bytes,
|
|
2479
|
-
};
|
|
2480
|
-
}
|
|
2481
|
-
|
|
2482
|
-
export function toClientIvcComputeStandaloneVk(o: MsgpackClientIvcComputeStandaloneVk): ClientIvcComputeStandaloneVk {
|
|
2483
|
-
if (o.circuit === undefined) { throw new Error("Expected circuit in ClientIvcComputeStandaloneVk deserialization"); };
|
|
2484
|
-
return {
|
|
2485
|
-
circuit: toCircuitInputNoVK(o.circuit),
|
|
2486
|
-
};
|
|
2487
|
-
}
|
|
2488
|
-
|
|
2489
|
-
export function fromClientIvcComputeStandaloneVk(o: ClientIvcComputeStandaloneVk): MsgpackClientIvcComputeStandaloneVk {
|
|
2490
|
-
if (o.circuit === undefined) { throw new Error("Expected circuit in ClientIvcComputeStandaloneVk serialization"); };
|
|
2491
|
-
return {
|
|
2492
|
-
circuit: fromCircuitInputNoVK(o.circuit),
|
|
2493
|
-
};
|
|
2494
|
-
}
|
|
2495
|
-
|
|
2496
|
-
export function toClientIvcComputeStandaloneVkResponse(o: MsgpackClientIvcComputeStandaloneVkResponse): ClientIvcComputeStandaloneVkResponse {
|
|
2497
|
-
if (o.bytes === undefined) { throw new Error("Expected bytes in ClientIvcComputeStandaloneVkResponse deserialization"); }
|
|
2498
|
-
if (o.fields === undefined) { throw new Error("Expected fields in ClientIvcComputeStandaloneVkResponse deserialization"); };
|
|
2499
|
-
return {
|
|
2500
|
-
bytes: o.bytes,
|
|
2501
|
-
fields: o.fields.map((v: any) => v),
|
|
2502
|
-
};
|
|
2503
|
-
}
|
|
2504
|
-
|
|
2505
|
-
export function fromClientIvcComputeStandaloneVkResponse(o: ClientIvcComputeStandaloneVkResponse): MsgpackClientIvcComputeStandaloneVkResponse {
|
|
2506
|
-
if (o.bytes === undefined) { throw new Error("Expected bytes in ClientIvcComputeStandaloneVkResponse serialization"); }
|
|
2507
|
-
if (o.fields === undefined) { throw new Error("Expected fields in ClientIvcComputeStandaloneVkResponse serialization"); };
|
|
2508
|
-
return {
|
|
2509
|
-
bytes: o.bytes,
|
|
2510
|
-
fields: o.fields.map((v: any) => v),
|
|
2511
|
-
};
|
|
2512
|
-
}
|
|
2513
|
-
|
|
2514
|
-
export function toClientIvcLoad(o: MsgpackClientIvcLoad): ClientIvcLoad {
|
|
2515
|
-
if (o.circuit === undefined) { throw new Error("Expected circuit in ClientIvcLoad deserialization"); };
|
|
2516
|
-
return {
|
|
2517
|
-
circuit: toCircuitInput(o.circuit),
|
|
2518
|
-
};
|
|
2519
|
-
}
|
|
2520
|
-
|
|
2521
|
-
export function fromClientIvcLoad(o: ClientIvcLoad): MsgpackClientIvcLoad {
|
|
2522
|
-
if (o.circuit === undefined) { throw new Error("Expected circuit in ClientIvcLoad serialization"); };
|
|
2523
|
-
return {
|
|
2524
|
-
circuit: fromCircuitInput(o.circuit),
|
|
2525
|
-
};
|
|
2526
|
-
}
|
|
2527
|
-
|
|
2528
|
-
export function toClientIvcLoadResponse(o: MsgpackClientIvcLoadResponse): ClientIvcLoadResponse {
|
|
2529
|
-
return {};
|
|
2530
|
-
}
|
|
2531
|
-
|
|
2532
|
-
export function fromClientIvcLoadResponse(o: ClientIvcLoadResponse): MsgpackClientIvcLoadResponse {
|
|
2533
|
-
return {};
|
|
2534
|
-
}
|
|
2535
|
-
|
|
2536
|
-
export function toClientIVCProof(o: MsgpackClientIVCProof): ClientIVCProof {
|
|
2537
|
-
if (o.mega_proof === undefined) { throw new Error("Expected mega_proof in ClientIVCProof deserialization"); }
|
|
2538
|
-
if (o.goblin_proof === undefined) { throw new Error("Expected goblin_proof in ClientIVCProof deserialization"); };
|
|
2539
|
-
return {
|
|
2540
|
-
megaProof: o.mega_proof.map((v: any) => v),
|
|
2541
|
-
goblinProof: toGoblinProof(o.goblin_proof),
|
|
2542
|
-
};
|
|
2543
|
-
}
|
|
2544
|
-
|
|
2545
|
-
export function fromClientIVCProof(o: ClientIVCProof): MsgpackClientIVCProof {
|
|
2546
|
-
if (o.megaProof === undefined) { throw new Error("Expected megaProof in ClientIVCProof serialization"); }
|
|
2547
|
-
if (o.goblinProof === undefined) { throw new Error("Expected goblinProof in ClientIVCProof serialization"); };
|
|
2548
|
-
return {
|
|
2549
|
-
mega_proof: o.megaProof.map((v: any) => v),
|
|
2550
|
-
goblin_proof: fromGoblinProof(o.goblinProof),
|
|
2551
|
-
};
|
|
2552
|
-
}
|
|
2553
|
-
|
|
2554
|
-
export function toClientIvcProve(o: MsgpackClientIvcProve): ClientIvcProve {
|
|
2555
|
-
return {};
|
|
2556
|
-
}
|
|
2557
|
-
|
|
2558
|
-
export function fromClientIvcProve(o: ClientIvcProve): MsgpackClientIvcProve {
|
|
2559
|
-
return {};
|
|
2560
|
-
}
|
|
2561
|
-
|
|
2562
|
-
export function toClientIvcProveResponse(o: MsgpackClientIvcProveResponse): ClientIvcProveResponse {
|
|
2563
|
-
if (o.proof === undefined) { throw new Error("Expected proof in ClientIvcProveResponse deserialization"); };
|
|
2564
|
-
return {
|
|
2565
|
-
proof: toClientIVCProof(o.proof),
|
|
2566
|
-
};
|
|
2567
|
-
}
|
|
2568
|
-
|
|
2569
|
-
export function fromClientIvcProveResponse(o: ClientIvcProveResponse): MsgpackClientIvcProveResponse {
|
|
2570
|
-
if (o.proof === undefined) { throw new Error("Expected proof in ClientIvcProveResponse serialization"); };
|
|
2571
|
-
return {
|
|
2572
|
-
proof: fromClientIVCProof(o.proof),
|
|
2573
|
-
};
|
|
2574
|
-
}
|
|
2575
|
-
|
|
2576
|
-
export function toClientIvcStart(o: MsgpackClientIvcStart): ClientIvcStart {
|
|
2577
|
-
if (o.num_circuits === undefined) { throw new Error("Expected num_circuits in ClientIvcStart deserialization"); };
|
|
2578
|
-
return {
|
|
2579
|
-
numCircuits: o.num_circuits,
|
|
2580
|
-
};
|
|
2581
|
-
}
|
|
2582
|
-
|
|
2583
|
-
export function fromClientIvcStart(o: ClientIvcStart): MsgpackClientIvcStart {
|
|
2584
|
-
if (o.numCircuits === undefined) { throw new Error("Expected numCircuits in ClientIvcStart serialization"); };
|
|
2585
|
-
return {
|
|
2586
|
-
num_circuits: o.numCircuits,
|
|
2587
|
-
};
|
|
2588
|
-
}
|
|
2589
|
-
|
|
2590
|
-
export function toClientIvcStartResponse(o: MsgpackClientIvcStartResponse): ClientIvcStartResponse {
|
|
2591
|
-
return {};
|
|
2592
|
-
}
|
|
2593
|
-
|
|
2594
|
-
export function fromClientIvcStartResponse(o: ClientIvcStartResponse): MsgpackClientIvcStartResponse {
|
|
2595
|
-
return {};
|
|
2596
|
-
}
|
|
2597
|
-
|
|
2598
|
-
export function toClientIvcStats(o: MsgpackClientIvcStats): ClientIvcStats {
|
|
2599
|
-
if (o.circuit === undefined) { throw new Error("Expected circuit in ClientIvcStats deserialization"); }
|
|
2600
|
-
if (o.include_gates_per_opcode === undefined) { throw new Error("Expected include_gates_per_opcode in ClientIvcStats deserialization"); };
|
|
2601
|
-
return {
|
|
2602
|
-
circuit: toCircuitInputNoVK(o.circuit),
|
|
2603
|
-
includeGatesPerOpcode: o.include_gates_per_opcode,
|
|
2604
|
-
};
|
|
2605
|
-
}
|
|
2606
|
-
|
|
2607
|
-
export function fromClientIvcStats(o: ClientIvcStats): MsgpackClientIvcStats {
|
|
2608
|
-
if (o.circuit === undefined) { throw new Error("Expected circuit in ClientIvcStats serialization"); }
|
|
2609
|
-
if (o.includeGatesPerOpcode === undefined) { throw new Error("Expected includeGatesPerOpcode in ClientIvcStats serialization"); };
|
|
2610
|
-
return {
|
|
2611
|
-
circuit: fromCircuitInputNoVK(o.circuit),
|
|
2612
|
-
include_gates_per_opcode: o.includeGatesPerOpcode,
|
|
2613
|
-
};
|
|
2614
|
-
}
|
|
2615
|
-
|
|
2616
|
-
export function toClientIvcStatsResponse(o: MsgpackClientIvcStatsResponse): ClientIvcStatsResponse {
|
|
2617
|
-
if (o.acir_opcodes === undefined) { throw new Error("Expected acir_opcodes in ClientIvcStatsResponse deserialization"); }
|
|
2618
|
-
if (o.circuit_size === undefined) { throw new Error("Expected circuit_size in ClientIvcStatsResponse deserialization"); }
|
|
2619
|
-
if (o.gates_per_opcode === undefined) { throw new Error("Expected gates_per_opcode in ClientIvcStatsResponse deserialization"); };
|
|
2620
|
-
return {
|
|
2621
|
-
acirOpcodes: o.acir_opcodes,
|
|
2622
|
-
circuitSize: o.circuit_size,
|
|
2623
|
-
gatesPerOpcode: o.gates_per_opcode.map((v: any) => v),
|
|
2624
|
-
};
|
|
2625
|
-
}
|
|
2626
|
-
|
|
2627
|
-
export function fromClientIvcStatsResponse(o: ClientIvcStatsResponse): MsgpackClientIvcStatsResponse {
|
|
2628
|
-
if (o.acirOpcodes === undefined) { throw new Error("Expected acirOpcodes in ClientIvcStatsResponse serialization"); }
|
|
2629
|
-
if (o.circuitSize === undefined) { throw new Error("Expected circuitSize in ClientIvcStatsResponse serialization"); }
|
|
2630
|
-
if (o.gatesPerOpcode === undefined) { throw new Error("Expected gatesPerOpcode in ClientIvcStatsResponse serialization"); };
|
|
2631
|
-
return {
|
|
2632
|
-
acir_opcodes: o.acirOpcodes,
|
|
2633
|
-
circuit_size: o.circuitSize,
|
|
2634
|
-
gates_per_opcode: o.gatesPerOpcode.map((v: any) => v),
|
|
2635
|
-
};
|
|
2636
|
-
}
|
|
2637
|
-
|
|
2638
|
-
export function toClientIvcVerify(o: MsgpackClientIvcVerify): ClientIvcVerify {
|
|
2639
|
-
if (o.proof === undefined) { throw new Error("Expected proof in ClientIvcVerify deserialization"); }
|
|
2640
|
-
if (o.vk === undefined) { throw new Error("Expected vk in ClientIvcVerify deserialization"); };
|
|
2641
|
-
return {
|
|
2642
|
-
proof: toClientIVCProof(o.proof),
|
|
2643
|
-
vk: o.vk,
|
|
2644
|
-
};
|
|
2645
|
-
}
|
|
2646
|
-
|
|
2647
|
-
export function fromClientIvcVerify(o: ClientIvcVerify): MsgpackClientIvcVerify {
|
|
2648
|
-
if (o.proof === undefined) { throw new Error("Expected proof in ClientIvcVerify serialization"); }
|
|
2649
|
-
if (o.vk === undefined) { throw new Error("Expected vk in ClientIvcVerify serialization"); };
|
|
2650
|
-
return {
|
|
2651
|
-
proof: fromClientIVCProof(o.proof),
|
|
2652
|
-
vk: o.vk,
|
|
2653
|
-
};
|
|
2654
|
-
}
|
|
2655
|
-
|
|
2656
|
-
export function toClientIvcVerifyResponse(o: MsgpackClientIvcVerifyResponse): ClientIvcVerifyResponse {
|
|
2657
|
-
if (o.valid === undefined) { throw new Error("Expected valid in ClientIvcVerifyResponse deserialization"); };
|
|
2658
|
-
return {
|
|
2659
|
-
valid: o.valid,
|
|
2660
|
-
};
|
|
2661
|
-
}
|
|
2662
|
-
|
|
2663
|
-
export function fromClientIvcVerifyResponse(o: ClientIvcVerifyResponse): MsgpackClientIvcVerifyResponse {
|
|
2664
|
-
if (o.valid === undefined) { throw new Error("Expected valid in ClientIvcVerifyResponse serialization"); };
|
|
2665
|
-
return {
|
|
2666
|
-
valid: o.valid,
|
|
2667
|
-
};
|
|
2668
|
-
}
|
|
2669
|
-
|
|
2670
|
-
export function toECCVMProof(o: MsgpackECCVMProof): ECCVMProof {
|
|
2671
|
-
if (o.pre_ipa_proof === undefined) { throw new Error("Expected pre_ipa_proof in ECCVMProof deserialization"); }
|
|
2672
|
-
if (o.ipa_proof === undefined) { throw new Error("Expected ipa_proof in ECCVMProof deserialization"); };
|
|
2673
|
-
return {
|
|
2674
|
-
preIpaProof: o.pre_ipa_proof.map((v: any) => v),
|
|
2675
|
-
ipaProof: o.ipa_proof.map((v: any) => v),
|
|
2676
|
-
};
|
|
2677
|
-
}
|
|
2678
|
-
|
|
2679
|
-
export function fromECCVMProof(o: ECCVMProof): MsgpackECCVMProof {
|
|
2680
|
-
if (o.preIpaProof === undefined) { throw new Error("Expected preIpaProof in ECCVMProof serialization"); }
|
|
2681
|
-
if (o.ipaProof === undefined) { throw new Error("Expected ipaProof in ECCVMProof serialization"); };
|
|
2682
|
-
return {
|
|
2683
|
-
pre_ipa_proof: o.preIpaProof.map((v: any) => v),
|
|
2684
|
-
ipa_proof: o.ipaProof.map((v: any) => v),
|
|
2685
|
-
};
|
|
2686
|
-
}
|
|
2687
|
-
|
|
2688
3095
|
export function toEcdsaSecp256k1ComputePublicKey(o: MsgpackEcdsaSecp256k1ComputePublicKey): EcdsaSecp256k1ComputePublicKey {
|
|
2689
3096
|
if (o.private_key === undefined) { throw new Error("Expected private_key in EcdsaSecp256k1ComputePublicKey deserialization"); };
|
|
2690
3097
|
return {
|
|
@@ -2702,14 +3109,14 @@ export function fromEcdsaSecp256k1ComputePublicKey(o: EcdsaSecp256k1ComputePubli
|
|
|
2702
3109
|
export function toEcdsaSecp256k1ComputePublicKeyResponse(o: MsgpackEcdsaSecp256k1ComputePublicKeyResponse): EcdsaSecp256k1ComputePublicKeyResponse {
|
|
2703
3110
|
if (o.public_key === undefined) { throw new Error("Expected public_key in EcdsaSecp256k1ComputePublicKeyResponse deserialization"); };
|
|
2704
3111
|
return {
|
|
2705
|
-
publicKey:
|
|
3112
|
+
publicKey: toSecp256k1Point(o.public_key),
|
|
2706
3113
|
};
|
|
2707
3114
|
}
|
|
2708
3115
|
|
|
2709
3116
|
export function fromEcdsaSecp256k1ComputePublicKeyResponse(o: EcdsaSecp256k1ComputePublicKeyResponse): MsgpackEcdsaSecp256k1ComputePublicKeyResponse {
|
|
2710
3117
|
if (o.publicKey === undefined) { throw new Error("Expected publicKey in EcdsaSecp256k1ComputePublicKeyResponse serialization"); };
|
|
2711
3118
|
return {
|
|
2712
|
-
public_key:
|
|
3119
|
+
public_key: fromSecp256k1Point(o.publicKey),
|
|
2713
3120
|
};
|
|
2714
3121
|
}
|
|
2715
3122
|
|
|
@@ -2782,14 +3189,14 @@ export function fromEcdsaSecp256k1RecoverPublicKey(o: EcdsaSecp256k1RecoverPubli
|
|
|
2782
3189
|
export function toEcdsaSecp256k1RecoverPublicKeyResponse(o: MsgpackEcdsaSecp256k1RecoverPublicKeyResponse): EcdsaSecp256k1RecoverPublicKeyResponse {
|
|
2783
3190
|
if (o.public_key === undefined) { throw new Error("Expected public_key in EcdsaSecp256k1RecoverPublicKeyResponse deserialization"); };
|
|
2784
3191
|
return {
|
|
2785
|
-
publicKey:
|
|
3192
|
+
publicKey: toSecp256k1Point(o.public_key),
|
|
2786
3193
|
};
|
|
2787
3194
|
}
|
|
2788
3195
|
|
|
2789
3196
|
export function fromEcdsaSecp256k1RecoverPublicKeyResponse(o: EcdsaSecp256k1RecoverPublicKeyResponse): MsgpackEcdsaSecp256k1RecoverPublicKeyResponse {
|
|
2790
3197
|
if (o.publicKey === undefined) { throw new Error("Expected publicKey in EcdsaSecp256k1RecoverPublicKeyResponse serialization"); };
|
|
2791
3198
|
return {
|
|
2792
|
-
public_key:
|
|
3199
|
+
public_key: fromSecp256k1Point(o.publicKey),
|
|
2793
3200
|
};
|
|
2794
3201
|
}
|
|
2795
3202
|
|
|
@@ -2801,7 +3208,7 @@ export function toEcdsaSecp256k1VerifySignature(o: MsgpackEcdsaSecp256k1VerifySi
|
|
|
2801
3208
|
if (o.v === undefined) { throw new Error("Expected v in EcdsaSecp256k1VerifySignature deserialization"); };
|
|
2802
3209
|
return {
|
|
2803
3210
|
message: o.message,
|
|
2804
|
-
publicKey:
|
|
3211
|
+
publicKey: toSecp256k1Point(o.public_key),
|
|
2805
3212
|
r: o.r,
|
|
2806
3213
|
s: o.s,
|
|
2807
3214
|
v: o.v,
|
|
@@ -2816,7 +3223,7 @@ export function fromEcdsaSecp256k1VerifySignature(o: EcdsaSecp256k1VerifySignatu
|
|
|
2816
3223
|
if (o.v === undefined) { throw new Error("Expected v in EcdsaSecp256k1VerifySignature serialization"); };
|
|
2817
3224
|
return {
|
|
2818
3225
|
message: o.message,
|
|
2819
|
-
public_key:
|
|
3226
|
+
public_key: fromSecp256k1Point(o.publicKey),
|
|
2820
3227
|
r: o.r,
|
|
2821
3228
|
s: o.s,
|
|
2822
3229
|
v: o.v,
|
|
@@ -2854,14 +3261,14 @@ export function fromEcdsaSecp256r1ComputePublicKey(o: EcdsaSecp256r1ComputePubli
|
|
|
2854
3261
|
export function toEcdsaSecp256r1ComputePublicKeyResponse(o: MsgpackEcdsaSecp256r1ComputePublicKeyResponse): EcdsaSecp256r1ComputePublicKeyResponse {
|
|
2855
3262
|
if (o.public_key === undefined) { throw new Error("Expected public_key in EcdsaSecp256r1ComputePublicKeyResponse deserialization"); };
|
|
2856
3263
|
return {
|
|
2857
|
-
publicKey:
|
|
3264
|
+
publicKey: toSecp256r1Point(o.public_key),
|
|
2858
3265
|
};
|
|
2859
3266
|
}
|
|
2860
3267
|
|
|
2861
3268
|
export function fromEcdsaSecp256r1ComputePublicKeyResponse(o: EcdsaSecp256r1ComputePublicKeyResponse): MsgpackEcdsaSecp256r1ComputePublicKeyResponse {
|
|
2862
3269
|
if (o.publicKey === undefined) { throw new Error("Expected publicKey in EcdsaSecp256r1ComputePublicKeyResponse serialization"); };
|
|
2863
3270
|
return {
|
|
2864
|
-
public_key:
|
|
3271
|
+
public_key: fromSecp256r1Point(o.publicKey),
|
|
2865
3272
|
};
|
|
2866
3273
|
}
|
|
2867
3274
|
|
|
@@ -2934,14 +3341,14 @@ export function fromEcdsaSecp256r1RecoverPublicKey(o: EcdsaSecp256r1RecoverPubli
|
|
|
2934
3341
|
export function toEcdsaSecp256r1RecoverPublicKeyResponse(o: MsgpackEcdsaSecp256r1RecoverPublicKeyResponse): EcdsaSecp256r1RecoverPublicKeyResponse {
|
|
2935
3342
|
if (o.public_key === undefined) { throw new Error("Expected public_key in EcdsaSecp256r1RecoverPublicKeyResponse deserialization"); };
|
|
2936
3343
|
return {
|
|
2937
|
-
publicKey:
|
|
3344
|
+
publicKey: toSecp256r1Point(o.public_key),
|
|
2938
3345
|
};
|
|
2939
3346
|
}
|
|
2940
3347
|
|
|
2941
3348
|
export function fromEcdsaSecp256r1RecoverPublicKeyResponse(o: EcdsaSecp256r1RecoverPublicKeyResponse): MsgpackEcdsaSecp256r1RecoverPublicKeyResponse {
|
|
2942
3349
|
if (o.publicKey === undefined) { throw new Error("Expected publicKey in EcdsaSecp256r1RecoverPublicKeyResponse serialization"); };
|
|
2943
3350
|
return {
|
|
2944
|
-
public_key:
|
|
3351
|
+
public_key: fromSecp256r1Point(o.publicKey),
|
|
2945
3352
|
};
|
|
2946
3353
|
}
|
|
2947
3354
|
|
|
@@ -2953,7 +3360,7 @@ export function toEcdsaSecp256r1VerifySignature(o: MsgpackEcdsaSecp256r1VerifySi
|
|
|
2953
3360
|
if (o.v === undefined) { throw new Error("Expected v in EcdsaSecp256r1VerifySignature deserialization"); };
|
|
2954
3361
|
return {
|
|
2955
3362
|
message: o.message,
|
|
2956
|
-
publicKey:
|
|
3363
|
+
publicKey: toSecp256r1Point(o.public_key),
|
|
2957
3364
|
r: o.r,
|
|
2958
3365
|
s: o.s,
|
|
2959
3366
|
v: o.v,
|
|
@@ -2968,7 +3375,7 @@ export function fromEcdsaSecp256r1VerifySignature(o: EcdsaSecp256r1VerifySignatu
|
|
|
2968
3375
|
if (o.v === undefined) { throw new Error("Expected v in EcdsaSecp256r1VerifySignature serialization"); };
|
|
2969
3376
|
return {
|
|
2970
3377
|
message: o.message,
|
|
2971
|
-
public_key:
|
|
3378
|
+
public_key: fromSecp256r1Point(o.publicKey),
|
|
2972
3379
|
r: o.r,
|
|
2973
3380
|
s: o.s,
|
|
2974
3381
|
v: o.v,
|
|
@@ -2989,13 +3396,29 @@ export function fromEcdsaSecp256r1VerifySignatureResponse(o: EcdsaSecp256r1Verif
|
|
|
2989
3396
|
};
|
|
2990
3397
|
}
|
|
2991
3398
|
|
|
3399
|
+
export function toErrorResponse(o: MsgpackErrorResponse): ErrorResponse {
|
|
3400
|
+
if (o.message === undefined) { throw new Error("Expected message in ErrorResponse deserialization"); };
|
|
3401
|
+
return {
|
|
3402
|
+
message: o.message,
|
|
3403
|
+
};
|
|
3404
|
+
}
|
|
3405
|
+
|
|
3406
|
+
export function fromErrorResponse(o: ErrorResponse): MsgpackErrorResponse {
|
|
3407
|
+
if (o.message === undefined) { throw new Error("Expected message in ErrorResponse serialization"); };
|
|
3408
|
+
return {
|
|
3409
|
+
message: o.message,
|
|
3410
|
+
};
|
|
3411
|
+
}
|
|
3412
|
+
|
|
2992
3413
|
export function toGoblinProof(o: MsgpackGoblinProof): GoblinProof {
|
|
2993
3414
|
if (o.merge_proof === undefined) { throw new Error("Expected merge_proof in GoblinProof deserialization"); }
|
|
2994
3415
|
if (o.eccvm_proof === undefined) { throw new Error("Expected eccvm_proof in GoblinProof deserialization"); }
|
|
3416
|
+
if (o.ipa_proof === undefined) { throw new Error("Expected ipa_proof in GoblinProof deserialization"); }
|
|
2995
3417
|
if (o.translator_proof === undefined) { throw new Error("Expected translator_proof in GoblinProof deserialization"); };
|
|
2996
3418
|
return {
|
|
2997
3419
|
mergeProof: o.merge_proof.map((v: any) => v),
|
|
2998
|
-
eccvmProof:
|
|
3420
|
+
eccvmProof: o.eccvm_proof.map((v: any) => v),
|
|
3421
|
+
ipaProof: o.ipa_proof.map((v: any) => v),
|
|
2999
3422
|
translatorProof: o.translator_proof.map((v: any) => v),
|
|
3000
3423
|
};
|
|
3001
3424
|
}
|
|
@@ -3003,10 +3426,12 @@ export function toGoblinProof(o: MsgpackGoblinProof): GoblinProof {
|
|
|
3003
3426
|
export function fromGoblinProof(o: GoblinProof): MsgpackGoblinProof {
|
|
3004
3427
|
if (o.mergeProof === undefined) { throw new Error("Expected mergeProof in GoblinProof serialization"); }
|
|
3005
3428
|
if (o.eccvmProof === undefined) { throw new Error("Expected eccvmProof in GoblinProof serialization"); }
|
|
3429
|
+
if (o.ipaProof === undefined) { throw new Error("Expected ipaProof in GoblinProof serialization"); }
|
|
3006
3430
|
if (o.translatorProof === undefined) { throw new Error("Expected translatorProof in GoblinProof serialization"); };
|
|
3007
3431
|
return {
|
|
3008
3432
|
merge_proof: o.mergeProof.map((v: any) => v),
|
|
3009
|
-
eccvm_proof:
|
|
3433
|
+
eccvm_proof: o.eccvmProof.map((v: any) => v),
|
|
3434
|
+
ipa_proof: o.ipaProof.map((v: any) => v),
|
|
3010
3435
|
translator_proof: o.translatorProof.map((v: any) => v),
|
|
3011
3436
|
};
|
|
3012
3437
|
}
|
|
@@ -3015,8 +3440,8 @@ export function toGrumpkinAdd(o: MsgpackGrumpkinAdd): GrumpkinAdd {
|
|
|
3015
3440
|
if (o.point_a === undefined) { throw new Error("Expected point_a in GrumpkinAdd deserialization"); }
|
|
3016
3441
|
if (o.point_b === undefined) { throw new Error("Expected point_b in GrumpkinAdd deserialization"); };
|
|
3017
3442
|
return {
|
|
3018
|
-
pointA:
|
|
3019
|
-
pointB:
|
|
3443
|
+
pointA: toGrumpkinPoint(o.point_a),
|
|
3444
|
+
pointB: toGrumpkinPoint(o.point_b),
|
|
3020
3445
|
};
|
|
3021
3446
|
}
|
|
3022
3447
|
|
|
@@ -3024,22 +3449,22 @@ export function fromGrumpkinAdd(o: GrumpkinAdd): MsgpackGrumpkinAdd {
|
|
|
3024
3449
|
if (o.pointA === undefined) { throw new Error("Expected pointA in GrumpkinAdd serialization"); }
|
|
3025
3450
|
if (o.pointB === undefined) { throw new Error("Expected pointB in GrumpkinAdd serialization"); };
|
|
3026
3451
|
return {
|
|
3027
|
-
point_a:
|
|
3028
|
-
point_b:
|
|
3452
|
+
point_a: fromGrumpkinPoint(o.pointA),
|
|
3453
|
+
point_b: fromGrumpkinPoint(o.pointB),
|
|
3029
3454
|
};
|
|
3030
3455
|
}
|
|
3031
3456
|
|
|
3032
3457
|
export function toGrumpkinAddResponse(o: MsgpackGrumpkinAddResponse): GrumpkinAddResponse {
|
|
3033
3458
|
if (o.point === undefined) { throw new Error("Expected point in GrumpkinAddResponse deserialization"); };
|
|
3034
3459
|
return {
|
|
3035
|
-
point:
|
|
3460
|
+
point: toGrumpkinPoint(o.point),
|
|
3036
3461
|
};
|
|
3037
3462
|
}
|
|
3038
3463
|
|
|
3039
3464
|
export function fromGrumpkinAddResponse(o: GrumpkinAddResponse): MsgpackGrumpkinAddResponse {
|
|
3040
3465
|
if (o.point === undefined) { throw new Error("Expected point in GrumpkinAddResponse serialization"); };
|
|
3041
3466
|
return {
|
|
3042
|
-
point:
|
|
3467
|
+
point: fromGrumpkinPoint(o.point),
|
|
3043
3468
|
};
|
|
3044
3469
|
}
|
|
3045
3470
|
|
|
@@ -3107,7 +3532,7 @@ export function toGrumpkinMul(o: MsgpackGrumpkinMul): GrumpkinMul {
|
|
|
3107
3532
|
if (o.point === undefined) { throw new Error("Expected point in GrumpkinMul deserialization"); }
|
|
3108
3533
|
if (o.scalar === undefined) { throw new Error("Expected scalar in GrumpkinMul deserialization"); };
|
|
3109
3534
|
return {
|
|
3110
|
-
point:
|
|
3535
|
+
point: toGrumpkinPoint(o.point),
|
|
3111
3536
|
scalar: o.scalar,
|
|
3112
3537
|
};
|
|
3113
3538
|
}
|
|
@@ -3116,7 +3541,7 @@ export function fromGrumpkinMul(o: GrumpkinMul): MsgpackGrumpkinMul {
|
|
|
3116
3541
|
if (o.point === undefined) { throw new Error("Expected point in GrumpkinMul serialization"); }
|
|
3117
3542
|
if (o.scalar === undefined) { throw new Error("Expected scalar in GrumpkinMul serialization"); };
|
|
3118
3543
|
return {
|
|
3119
|
-
point:
|
|
3544
|
+
point: fromGrumpkinPoint(o.point),
|
|
3120
3545
|
scalar: o.scalar,
|
|
3121
3546
|
};
|
|
3122
3547
|
}
|
|
@@ -3124,14 +3549,32 @@ export function fromGrumpkinMul(o: GrumpkinMul): MsgpackGrumpkinMul {
|
|
|
3124
3549
|
export function toGrumpkinMulResponse(o: MsgpackGrumpkinMulResponse): GrumpkinMulResponse {
|
|
3125
3550
|
if (o.point === undefined) { throw new Error("Expected point in GrumpkinMulResponse deserialization"); };
|
|
3126
3551
|
return {
|
|
3127
|
-
point:
|
|
3552
|
+
point: toGrumpkinPoint(o.point),
|
|
3128
3553
|
};
|
|
3129
3554
|
}
|
|
3130
3555
|
|
|
3131
3556
|
export function fromGrumpkinMulResponse(o: GrumpkinMulResponse): MsgpackGrumpkinMulResponse {
|
|
3132
3557
|
if (o.point === undefined) { throw new Error("Expected point in GrumpkinMulResponse serialization"); };
|
|
3133
3558
|
return {
|
|
3134
|
-
point:
|
|
3559
|
+
point: fromGrumpkinPoint(o.point),
|
|
3560
|
+
};
|
|
3561
|
+
}
|
|
3562
|
+
|
|
3563
|
+
export function toGrumpkinPoint(o: MsgpackGrumpkinPoint): GrumpkinPoint {
|
|
3564
|
+
if (o.x === undefined) { throw new Error("Expected x in GrumpkinPoint deserialization"); }
|
|
3565
|
+
if (o.y === undefined) { throw new Error("Expected y in GrumpkinPoint deserialization"); };
|
|
3566
|
+
return {
|
|
3567
|
+
x: o.x,
|
|
3568
|
+
y: o.y,
|
|
3569
|
+
};
|
|
3570
|
+
}
|
|
3571
|
+
|
|
3572
|
+
export function fromGrumpkinPoint(o: GrumpkinPoint): MsgpackGrumpkinPoint {
|
|
3573
|
+
if (o.x === undefined) { throw new Error("Expected x in GrumpkinPoint serialization"); }
|
|
3574
|
+
if (o.y === undefined) { throw new Error("Expected y in GrumpkinPoint serialization"); };
|
|
3575
|
+
return {
|
|
3576
|
+
x: o.x,
|
|
3577
|
+
y: o.y,
|
|
3135
3578
|
};
|
|
3136
3579
|
}
|
|
3137
3580
|
|
|
@@ -3212,14 +3655,14 @@ export function fromPedersenCommit(o: PedersenCommit): MsgpackPedersenCommit {
|
|
|
3212
3655
|
export function toPedersenCommitResponse(o: MsgpackPedersenCommitResponse): PedersenCommitResponse {
|
|
3213
3656
|
if (o.point === undefined) { throw new Error("Expected point in PedersenCommitResponse deserialization"); };
|
|
3214
3657
|
return {
|
|
3215
|
-
point:
|
|
3658
|
+
point: toGrumpkinPoint(o.point),
|
|
3216
3659
|
};
|
|
3217
3660
|
}
|
|
3218
3661
|
|
|
3219
3662
|
export function fromPedersenCommitResponse(o: PedersenCommitResponse): MsgpackPedersenCommitResponse {
|
|
3220
3663
|
if (o.point === undefined) { throw new Error("Expected point in PedersenCommitResponse serialization"); };
|
|
3221
3664
|
return {
|
|
3222
|
-
point:
|
|
3665
|
+
point: fromGrumpkinPoint(o.point),
|
|
3223
3666
|
};
|
|
3224
3667
|
}
|
|
3225
3668
|
|
|
@@ -3414,14 +3857,14 @@ export function fromSchnorrComputePublicKey(o: SchnorrComputePublicKey): Msgpack
|
|
|
3414
3857
|
export function toSchnorrComputePublicKeyResponse(o: MsgpackSchnorrComputePublicKeyResponse): SchnorrComputePublicKeyResponse {
|
|
3415
3858
|
if (o.public_key === undefined) { throw new Error("Expected public_key in SchnorrComputePublicKeyResponse deserialization"); };
|
|
3416
3859
|
return {
|
|
3417
|
-
publicKey:
|
|
3860
|
+
publicKey: toGrumpkinPoint(o.public_key),
|
|
3418
3861
|
};
|
|
3419
3862
|
}
|
|
3420
3863
|
|
|
3421
3864
|
export function fromSchnorrComputePublicKeyResponse(o: SchnorrComputePublicKeyResponse): MsgpackSchnorrComputePublicKeyResponse {
|
|
3422
3865
|
if (o.publicKey === undefined) { throw new Error("Expected publicKey in SchnorrComputePublicKeyResponse serialization"); };
|
|
3423
3866
|
return {
|
|
3424
|
-
public_key:
|
|
3867
|
+
public_key: fromGrumpkinPoint(o.publicKey),
|
|
3425
3868
|
};
|
|
3426
3869
|
}
|
|
3427
3870
|
|
|
@@ -3468,7 +3911,7 @@ export function toSchnorrVerifySignature(o: MsgpackSchnorrVerifySignature): Schn
|
|
|
3468
3911
|
if (o.e === undefined) { throw new Error("Expected e in SchnorrVerifySignature deserialization"); };
|
|
3469
3912
|
return {
|
|
3470
3913
|
message: o.message,
|
|
3471
|
-
publicKey:
|
|
3914
|
+
publicKey: toGrumpkinPoint(o.public_key),
|
|
3472
3915
|
s: o.s,
|
|
3473
3916
|
e: o.e,
|
|
3474
3917
|
};
|
|
@@ -3481,7 +3924,7 @@ export function fromSchnorrVerifySignature(o: SchnorrVerifySignature): MsgpackSc
|
|
|
3481
3924
|
if (o.e === undefined) { throw new Error("Expected e in SchnorrVerifySignature serialization"); };
|
|
3482
3925
|
return {
|
|
3483
3926
|
message: o.message,
|
|
3484
|
-
public_key:
|
|
3927
|
+
public_key: fromGrumpkinPoint(o.publicKey),
|
|
3485
3928
|
s: o.s,
|
|
3486
3929
|
e: o.e,
|
|
3487
3930
|
};
|
|
@@ -3533,7 +3976,7 @@ export function toSecp256k1Mul(o: MsgpackSecp256k1Mul): Secp256k1Mul {
|
|
|
3533
3976
|
if (o.point === undefined) { throw new Error("Expected point in Secp256k1Mul deserialization"); }
|
|
3534
3977
|
if (o.scalar === undefined) { throw new Error("Expected scalar in Secp256k1Mul deserialization"); };
|
|
3535
3978
|
return {
|
|
3536
|
-
point:
|
|
3979
|
+
point: toSecp256k1Point(o.point),
|
|
3537
3980
|
scalar: o.scalar,
|
|
3538
3981
|
};
|
|
3539
3982
|
}
|
|
@@ -3542,7 +3985,7 @@ export function fromSecp256k1Mul(o: Secp256k1Mul): MsgpackSecp256k1Mul {
|
|
|
3542
3985
|
if (o.point === undefined) { throw new Error("Expected point in Secp256k1Mul serialization"); }
|
|
3543
3986
|
if (o.scalar === undefined) { throw new Error("Expected scalar in Secp256k1Mul serialization"); };
|
|
3544
3987
|
return {
|
|
3545
|
-
point:
|
|
3988
|
+
point: fromSecp256k1Point(o.point),
|
|
3546
3989
|
scalar: o.scalar,
|
|
3547
3990
|
};
|
|
3548
3991
|
}
|
|
@@ -3550,14 +3993,32 @@ export function fromSecp256k1Mul(o: Secp256k1Mul): MsgpackSecp256k1Mul {
|
|
|
3550
3993
|
export function toSecp256k1MulResponse(o: MsgpackSecp256k1MulResponse): Secp256k1MulResponse {
|
|
3551
3994
|
if (o.point === undefined) { throw new Error("Expected point in Secp256k1MulResponse deserialization"); };
|
|
3552
3995
|
return {
|
|
3553
|
-
point:
|
|
3996
|
+
point: toSecp256k1Point(o.point),
|
|
3554
3997
|
};
|
|
3555
3998
|
}
|
|
3556
3999
|
|
|
3557
4000
|
export function fromSecp256k1MulResponse(o: Secp256k1MulResponse): MsgpackSecp256k1MulResponse {
|
|
3558
4001
|
if (o.point === undefined) { throw new Error("Expected point in Secp256k1MulResponse serialization"); };
|
|
3559
4002
|
return {
|
|
3560
|
-
point:
|
|
4003
|
+
point: fromSecp256k1Point(o.point),
|
|
4004
|
+
};
|
|
4005
|
+
}
|
|
4006
|
+
|
|
4007
|
+
export function toSecp256k1Point(o: MsgpackSecp256k1Point): Secp256k1Point {
|
|
4008
|
+
if (o.x === undefined) { throw new Error("Expected x in Secp256k1Point deserialization"); }
|
|
4009
|
+
if (o.y === undefined) { throw new Error("Expected y in Secp256k1Point deserialization"); };
|
|
4010
|
+
return {
|
|
4011
|
+
x: o.x,
|
|
4012
|
+
y: o.y,
|
|
4013
|
+
};
|
|
4014
|
+
}
|
|
4015
|
+
|
|
4016
|
+
export function fromSecp256k1Point(o: Secp256k1Point): MsgpackSecp256k1Point {
|
|
4017
|
+
if (o.x === undefined) { throw new Error("Expected x in Secp256k1Point serialization"); }
|
|
4018
|
+
if (o.y === undefined) { throw new Error("Expected y in Secp256k1Point serialization"); };
|
|
4019
|
+
return {
|
|
4020
|
+
x: o.x,
|
|
4021
|
+
y: o.y,
|
|
3561
4022
|
};
|
|
3562
4023
|
}
|
|
3563
4024
|
|
|
@@ -3589,6 +4050,24 @@ export function fromSecp256k1Reduce512Response(o: Secp256k1Reduce512Response): M
|
|
|
3589
4050
|
};
|
|
3590
4051
|
}
|
|
3591
4052
|
|
|
4053
|
+
export function toSecp256r1Point(o: MsgpackSecp256r1Point): Secp256r1Point {
|
|
4054
|
+
if (o.x === undefined) { throw new Error("Expected x in Secp256r1Point deserialization"); }
|
|
4055
|
+
if (o.y === undefined) { throw new Error("Expected y in Secp256r1Point deserialization"); };
|
|
4056
|
+
return {
|
|
4057
|
+
x: o.x,
|
|
4058
|
+
y: o.y,
|
|
4059
|
+
};
|
|
4060
|
+
}
|
|
4061
|
+
|
|
4062
|
+
export function fromSecp256r1Point(o: Secp256r1Point): MsgpackSecp256r1Point {
|
|
4063
|
+
if (o.x === undefined) { throw new Error("Expected x in Secp256r1Point serialization"); }
|
|
4064
|
+
if (o.y === undefined) { throw new Error("Expected y in Secp256r1Point serialization"); };
|
|
4065
|
+
return {
|
|
4066
|
+
x: o.x,
|
|
4067
|
+
y: o.y,
|
|
4068
|
+
};
|
|
4069
|
+
}
|
|
4070
|
+
|
|
3592
4071
|
export function toShutdown(o: MsgpackShutdown): Shutdown {
|
|
3593
4072
|
return {};
|
|
3594
4073
|
}
|
|
@@ -3708,18 +4187,18 @@ export interface BbApiBase {
|
|
|
3708
4187
|
circuitComputeVk(command: CircuitComputeVk): Promise<CircuitComputeVkResponse>;
|
|
3709
4188
|
circuitStats(command: CircuitStats): Promise<CircuitInfoResponse>;
|
|
3710
4189
|
circuitVerify(command: CircuitVerify): Promise<CircuitVerifyResponse>;
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
4190
|
+
chonkComputeStandaloneVk(command: ChonkComputeStandaloneVk): Promise<ChonkComputeStandaloneVkResponse>;
|
|
4191
|
+
chonkComputeIvcVk(command: ChonkComputeIvcVk): Promise<ChonkComputeIvcVkResponse>;
|
|
4192
|
+
chonkStart(command: ChonkStart): Promise<ChonkStartResponse>;
|
|
4193
|
+
chonkLoad(command: ChonkLoad): Promise<ChonkLoadResponse>;
|
|
4194
|
+
chonkAccumulate(command: ChonkAccumulate): Promise<ChonkAccumulateResponse>;
|
|
4195
|
+
chonkProve(command: ChonkProve): Promise<ChonkProveResponse>;
|
|
4196
|
+
chonkVerify(command: ChonkVerify): Promise<ChonkVerifyResponse>;
|
|
3718
4197
|
vkAsFields(command: VkAsFields): Promise<VkAsFieldsResponse>;
|
|
3719
4198
|
megaVkAsFields(command: MegaVkAsFields): Promise<MegaVkAsFieldsResponse>;
|
|
3720
4199
|
circuitWriteSolidityVerifier(command: CircuitWriteSolidityVerifier): Promise<CircuitWriteSolidityVerifierResponse>;
|
|
3721
|
-
|
|
3722
|
-
|
|
4200
|
+
chonkCheckPrecomputedVk(command: ChonkCheckPrecomputedVk): Promise<ChonkCheckPrecomputedVkResponse>;
|
|
4201
|
+
chonkStats(command: ChonkStats): Promise<ChonkStatsResponse>;
|
|
3723
4202
|
poseidon2Hash(command: Poseidon2Hash): Promise<Poseidon2HashResponse>;
|
|
3724
4203
|
poseidon2Permutation(command: Poseidon2Permutation): Promise<Poseidon2PermutationResponse>;
|
|
3725
4204
|
poseidon2HashAccumulate(command: Poseidon2HashAccumulate): Promise<Poseidon2HashAccumulateResponse>;
|
|
@@ -3739,6 +4218,11 @@ export interface BbApiBase {
|
|
|
3739
4218
|
secp256k1GetRandomFr(command: Secp256k1GetRandomFr): Promise<Secp256k1GetRandomFrResponse>;
|
|
3740
4219
|
secp256k1Reduce512(command: Secp256k1Reduce512): Promise<Secp256k1Reduce512Response>;
|
|
3741
4220
|
bn254FrSqrt(command: Bn254FrSqrt): Promise<Bn254FrSqrtResponse>;
|
|
4221
|
+
bn254FqSqrt(command: Bn254FqSqrt): Promise<Bn254FqSqrtResponse>;
|
|
4222
|
+
bn254G1Mul(command: Bn254G1Mul): Promise<Bn254G1MulResponse>;
|
|
4223
|
+
bn254G2Mul(command: Bn254G2Mul): Promise<Bn254G2MulResponse>;
|
|
4224
|
+
bn254G1IsOnCurve(command: Bn254G1IsOnCurve): Promise<Bn254G1IsOnCurveResponse>;
|
|
4225
|
+
bn254G1FromCompressed(command: Bn254G1FromCompressed): Promise<Bn254G1FromCompressedResponse>;
|
|
3742
4226
|
schnorrComputePublicKey(command: SchnorrComputePublicKey): Promise<SchnorrComputePublicKeyResponse>;
|
|
3743
4227
|
schnorrConstructSignature(command: SchnorrConstructSignature): Promise<SchnorrConstructSignatureResponse>;
|
|
3744
4228
|
schnorrVerifySignature(command: SchnorrVerifySignature): Promise<SchnorrVerifySignatureResponse>;
|