@aztec/bb-prover 0.0.0-test.0 → 0.0.1-commit.21caa21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dest/avm_proving_tests/avm_proving_tester.d.ts +14 -18
- package/dest/avm_proving_tests/avm_proving_tester.d.ts.map +1 -1
- package/dest/avm_proving_tests/avm_proving_tester.js +130 -79
- package/dest/bb/cli.d.ts +1 -1
- package/dest/bb/execute.d.ts +14 -47
- package/dest/bb/execute.d.ts.map +1 -1
- package/dest/bb/execute.js +132 -236
- package/dest/bb/index.d.ts +1 -1
- package/dest/config.d.ts +3 -1
- package/dest/config.d.ts.map +1 -1
- package/dest/honk.d.ts +3 -3
- package/dest/honk.d.ts.map +1 -1
- package/dest/honk.js +3 -2
- package/dest/index.d.ts +2 -1
- package/dest/index.d.ts.map +1 -1
- package/dest/index.js +1 -0
- package/dest/instrumentation.d.ts +3 -3
- package/dest/instrumentation.d.ts.map +1 -1
- package/dest/instrumentation.js +2 -4
- package/dest/prover/client/bb_private_kernel_prover.d.ts +32 -0
- package/dest/prover/client/bb_private_kernel_prover.d.ts.map +1 -0
- package/dest/prover/{bb_private_kernel_prover.js → client/bb_private_kernel_prover.js} +42 -20
- package/dest/prover/client/bundle.d.ts +6 -0
- package/dest/prover/client/bundle.d.ts.map +1 -0
- package/dest/prover/client/bundle.js +8 -0
- package/dest/prover/client/lazy.d.ts +6 -0
- package/dest/prover/client/lazy.d.ts.map +1 -0
- package/dest/prover/client/lazy.js +8 -0
- package/dest/prover/index.d.ts +3 -4
- package/dest/prover/index.d.ts.map +1 -1
- package/dest/prover/index.js +2 -3
- package/dest/prover/proof_utils.d.ts +19 -0
- package/dest/prover/proof_utils.d.ts.map +1 -0
- package/dest/prover/proof_utils.js +72 -0
- package/dest/prover/server/bb_prover.d.ts +100 -0
- package/dest/prover/server/bb_prover.d.ts.map +1 -0
- package/dest/prover/server/bb_prover.js +339 -0
- package/dest/test/delay_values.d.ts +1 -1
- package/dest/test/delay_values.d.ts.map +1 -1
- package/dest/test/delay_values.js +33 -21
- package/dest/test/index.d.ts +1 -1
- package/dest/test/test_circuit_prover.d.ts +25 -34
- package/dest/test/test_circuit_prover.d.ts.map +1 -1
- package/dest/test/test_circuit_prover.js +85 -59
- package/dest/test/test_verifier.d.ts +6 -3
- package/dest/test/test_verifier.d.ts.map +1 -1
- package/dest/test/test_verifier.js +23 -1
- package/dest/verification_key/verification_key_data.d.ts +7 -1
- package/dest/verification_key/verification_key_data.d.ts.map +1 -1
- package/dest/verification_key/verification_key_data.js +23 -29
- package/dest/verifier/bb_verifier.d.ts +6 -5
- package/dest/verifier/bb_verifier.d.ts.map +1 -1
- package/dest/verifier/bb_verifier.js +46 -25
- package/dest/verifier/index.d.ts +2 -1
- package/dest/verifier/index.d.ts.map +1 -1
- package/dest/verifier/index.js +1 -0
- package/dest/verifier/queued_chonk_verifier.d.ts +15 -0
- package/dest/verifier/queued_chonk_verifier.d.ts.map +1 -0
- package/dest/verifier/queued_chonk_verifier.js +132 -0
- package/package.json +35 -33
- package/src/avm_proving_tests/avm_proving_tester.ts +210 -104
- package/src/bb/execute.ts +103 -250
- package/src/config.ts +2 -0
- package/src/honk.ts +3 -2
- package/src/index.ts +1 -0
- package/src/instrumentation.ts +2 -4
- package/src/prover/{bb_private_kernel_prover.ts → client/bb_private_kernel_prover.ts} +78 -30
- package/src/prover/client/bundle.ts +11 -0
- package/src/prover/client/lazy.ts +11 -0
- package/src/prover/index.ts +2 -3
- package/src/prover/proof_utils.ts +115 -0
- package/src/prover/server/bb_prover.ts +733 -0
- package/src/test/delay_values.ts +33 -21
- package/src/test/test_circuit_prover.ts +260 -147
- package/src/test/test_verifier.ts +15 -3
- package/src/verification_key/verification_key_data.ts +29 -24
- package/src/verifier/bb_verifier.ts +63 -32
- package/src/verifier/index.ts +1 -0
- package/src/verifier/queued_chonk_verifier.ts +140 -0
- package/dest/prover/bb_native_private_kernel_prover.d.ts +0 -25
- package/dest/prover/bb_native_private_kernel_prover.d.ts.map +0 -1
- package/dest/prover/bb_native_private_kernel_prover.js +0 -69
- package/dest/prover/bb_private_kernel_prover.d.ts +0 -32
- package/dest/prover/bb_private_kernel_prover.d.ts.map +0 -1
- package/dest/prover/bb_prover.d.ts +0 -120
- package/dest/prover/bb_prover.d.ts.map +0 -1
- package/dest/prover/bb_prover.js +0 -423
- package/dest/prover/client_ivc_proof_utils.d.ts +0 -25
- package/dest/prover/client_ivc_proof_utils.d.ts.map +0 -1
- package/dest/prover/client_ivc_proof_utils.js +0 -43
- package/dest/stats.d.ts +0 -5
- package/dest/stats.d.ts.map +0 -1
- package/dest/stats.js +0 -62
- package/dest/wasm/bb_wasm_private_kernel_prover.d.ts +0 -17
- package/dest/wasm/bb_wasm_private_kernel_prover.d.ts.map +0 -1
- package/dest/wasm/bb_wasm_private_kernel_prover.js +0 -46
- package/dest/wasm/bundle.d.ts +0 -6
- package/dest/wasm/bundle.d.ts.map +0 -1
- package/dest/wasm/bundle.js +0 -8
- package/dest/wasm/lazy.d.ts +0 -6
- package/dest/wasm/lazy.d.ts.map +0 -1
- package/dest/wasm/lazy.js +0 -8
- package/src/prover/bb_native_private_kernel_prover.ts +0 -119
- package/src/prover/bb_prover.ts +0 -781
- package/src/prover/client_ivc_proof_utils.ts +0 -42
- package/src/stats.ts +0 -64
- package/src/wasm/bb_wasm_private_kernel_prover.ts +0 -55
- package/src/wasm/bundle.ts +0 -11
- package/src/wasm/lazy.ts +0 -11
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
function _ts_decorate(decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
}
|
|
7
|
+
import { AVM_V2_PROOF_LENGTH_IN_FIELDS_PADDED, NESTED_RECURSIVE_PROOF_LENGTH, NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH, PAIRING_POINTS_SIZE, RECURSIVE_PROOF_LENGTH, ULTRA_KECCAK_PROOF_LENGTH } from '@aztec/constants';
|
|
8
|
+
import { Fr } from '@aztec/foundation/fields';
|
|
9
|
+
import { runInDirectory } from '@aztec/foundation/fs';
|
|
10
|
+
import { createLogger } from '@aztec/foundation/log';
|
|
11
|
+
import { BufferReader } from '@aztec/foundation/serialize';
|
|
12
|
+
import { convertBlockMergeRollupOutputsFromWitnessMap, convertBlockMergeRollupPrivateInputsToWitnessMap, convertBlockRootEmptyTxFirstRollupOutputsFromWitnessMap, convertBlockRootEmptyTxFirstRollupPrivateInputsToWitnessMap, convertBlockRootFirstRollupOutputsFromWitnessMap, convertBlockRootFirstRollupPrivateInputsToWitnessMap, convertBlockRootRollupOutputsFromWitnessMap, convertBlockRootRollupPrivateInputsToWitnessMap, convertBlockRootSingleTxFirstRollupOutputsFromWitnessMap, convertBlockRootSingleTxFirstRollupPrivateInputsToWitnessMap, convertBlockRootSingleTxRollupOutputsFromWitnessMap, convertBlockRootSingleTxRollupPrivateInputsToWitnessMap, convertCheckpointMergeRollupOutputsFromWitnessMap, convertCheckpointMergeRollupPrivateInputsToWitnessMap, convertCheckpointPaddingRollupOutputsFromWitnessMap, convertCheckpointPaddingRollupPrivateInputsToWitnessMap, convertCheckpointRootRollupOutputsFromWitnessMap, convertCheckpointRootRollupPrivateInputsToWitnessMap, convertCheckpointRootSingleBlockRollupOutputsFromWitnessMap, convertCheckpointRootSingleBlockRollupPrivateInputsToWitnessMap, convertParityBaseOutputsFromWitnessMap, convertParityBasePrivateInputsToWitnessMap, convertParityRootOutputsFromWitnessMap, convertParityRootPrivateInputsToWitnessMap, convertPrivateTxBaseRollupOutputsFromWitnessMap, convertPrivateTxBaseRollupPrivateInputsToWitnessMap, convertPublicChonkVerifierOutputsFromWitnessMap, convertPublicChonkVerifierPrivateInputsToWitnessMap, convertPublicTxBaseRollupOutputsFromWitnessMap, convertPublicTxBaseRollupPrivateInputsToWitnessMap, convertRootRollupOutputsFromWitnessMap, convertRootRollupPrivateInputsToWitnessMap, convertTxMergeRollupOutputsFromWitnessMap, convertTxMergeRollupPrivateInputsToWitnessMap, getServerCircuitArtifact } from '@aztec/noir-protocol-circuits-types/server';
|
|
13
|
+
import { ServerCircuitVks } from '@aztec/noir-protocol-circuits-types/server/vks';
|
|
14
|
+
import { mapProtocolArtifactNameToCircuitName } from '@aztec/noir-protocol-circuits-types/types';
|
|
15
|
+
import { NativeACVMSimulator } from '@aztec/simulator/server';
|
|
16
|
+
import { ProvingError } from '@aztec/stdlib/errors';
|
|
17
|
+
import { makeProofAndVerificationKey, makePublicInputsAndRecursiveProof } from '@aztec/stdlib/interfaces/server';
|
|
18
|
+
import { Proof, RecursiveProof, makeRecursiveProofFromBinary } from '@aztec/stdlib/proofs';
|
|
19
|
+
import { enhanceProofWithPiValidationFlag } from '@aztec/stdlib/rollup';
|
|
20
|
+
import { Attributes, getTelemetryClient, trackSpan } from '@aztec/telemetry-client';
|
|
21
|
+
import { promises as fs } from 'fs';
|
|
22
|
+
import * as path from 'path';
|
|
23
|
+
import { BB_RESULT, PROOF_FILENAME, PUBLIC_INPUTS_FILENAME, VK_FILENAME, generateAvmProof, generateProof, verifyAvmProof, verifyProof } from '../../bb/execute.js';
|
|
24
|
+
import { getUltraHonkFlavorForCircuit } from '../../honk.js';
|
|
25
|
+
import { ProverInstrumentation } from '../../instrumentation.js';
|
|
26
|
+
import { extractAvmVkData } from '../../verification_key/verification_key_data.js';
|
|
27
|
+
import { readProofsFromOutputDirectory } from '../proof_utils.js';
|
|
28
|
+
const logger = createLogger('bb-prover');
|
|
29
|
+
/**
|
|
30
|
+
* Prover implementation that uses barretenberg native proving
|
|
31
|
+
*/ export class BBNativeRollupProver {
|
|
32
|
+
config;
|
|
33
|
+
instrumentation;
|
|
34
|
+
constructor(config, telemetry){
|
|
35
|
+
this.config = config;
|
|
36
|
+
this.instrumentation = new ProverInstrumentation(telemetry, 'BBNativeRollupProver');
|
|
37
|
+
}
|
|
38
|
+
get tracer() {
|
|
39
|
+
return this.instrumentation.tracer;
|
|
40
|
+
}
|
|
41
|
+
static async new(config, telemetry = getTelemetryClient()) {
|
|
42
|
+
await fs.access(config.acvmBinaryPath, fs.constants.R_OK);
|
|
43
|
+
await fs.mkdir(config.acvmWorkingDirectory, {
|
|
44
|
+
recursive: true
|
|
45
|
+
});
|
|
46
|
+
await fs.access(config.bbBinaryPath, fs.constants.R_OK);
|
|
47
|
+
await fs.mkdir(config.bbWorkingDirectory, {
|
|
48
|
+
recursive: true
|
|
49
|
+
});
|
|
50
|
+
logger.info(`Using native BB at ${config.bbBinaryPath} and working directory ${config.bbWorkingDirectory}`);
|
|
51
|
+
logger.info(`Using native ACVM at ${config.acvmBinaryPath} and working directory ${config.acvmWorkingDirectory}`);
|
|
52
|
+
return new BBNativeRollupProver(config, telemetry);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Simulates the base parity circuit from its inputs.
|
|
56
|
+
* @param inputs - Inputs to the circuit.
|
|
57
|
+
* @returns The public inputs of the parity circuit.
|
|
58
|
+
*/ getBaseParityProof(inputs) {
|
|
59
|
+
return this.createRecursiveProofAndVerify(inputs, 'ParityBaseArtifact', RECURSIVE_PROOF_LENGTH, convertParityBasePrivateInputsToWitnessMap, convertParityBaseOutputsFromWitnessMap);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Simulates the root parity circuit from its inputs.
|
|
63
|
+
* @param inputs - Inputs to the circuit.
|
|
64
|
+
* @returns The public inputs of the parity circuit.
|
|
65
|
+
*/ getRootParityProof(inputs) {
|
|
66
|
+
return this.createRecursiveProofAndVerify(inputs, 'ParityRootArtifact', NESTED_RECURSIVE_PROOF_LENGTH, convertParityRootPrivateInputsToWitnessMap, convertParityRootOutputsFromWitnessMap);
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Creates an AVM proof and verifies it.
|
|
70
|
+
* @param inputs - The inputs to the AVM circuit.
|
|
71
|
+
* @returns The proof.
|
|
72
|
+
*/ async getAvmProof(inputs, skipPublicInputsValidation = false) {
|
|
73
|
+
const proofAndVk = await this.createAvmProof(inputs);
|
|
74
|
+
await this.verifyAvmProof(proofAndVk.proof.binaryProof, proofAndVk.verificationKey, inputs.publicInputs);
|
|
75
|
+
// TODO(#14234)[Unconditional PIs validation]: remove next lines and directly return proofAndVk
|
|
76
|
+
proofAndVk.proof.proof = enhanceProofWithPiValidationFlag(proofAndVk.proof.proof, skipPublicInputsValidation);
|
|
77
|
+
return proofAndVk;
|
|
78
|
+
}
|
|
79
|
+
async getPublicChonkVerifierProof(inputs) {
|
|
80
|
+
const artifactName = 'PublicChonkVerifier';
|
|
81
|
+
const { circuitOutput, proof } = await this.createRecursiveProof(inputs, artifactName, NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH, convertPublicChonkVerifierPrivateInputsToWitnessMap, convertPublicChonkVerifierOutputsFromWitnessMap);
|
|
82
|
+
const verificationKey = this.getVerificationKeyDataForCircuit(artifactName);
|
|
83
|
+
await this.verifyProof(artifactName, proof.binaryProof);
|
|
84
|
+
return makePublicInputsAndRecursiveProof(circuitOutput, proof, verificationKey);
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Simulates the base rollup circuit from its inputs.
|
|
88
|
+
* @param inputs - Inputs to the circuit.
|
|
89
|
+
* @returns The public inputs as outputs of the simulation.
|
|
90
|
+
*/ getPrivateTxBaseRollupProof(inputs) {
|
|
91
|
+
return this.createRecursiveProofAndVerify(inputs, 'PrivateTxBaseRollupArtifact', NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH, convertPrivateTxBaseRollupPrivateInputsToWitnessMap, convertPrivateTxBaseRollupOutputsFromWitnessMap);
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Requests that the public kernel tail circuit be executed and the proof generated
|
|
95
|
+
* @param kernelRequest - The object encapsulating the request for a proof
|
|
96
|
+
* @returns The requested circuit's public inputs and proof
|
|
97
|
+
*/ getPublicTxBaseRollupProof(inputs) {
|
|
98
|
+
return this.createRecursiveProofAndVerify(inputs, 'PublicTxBaseRollupArtifact', NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH, convertPublicTxBaseRollupPrivateInputsToWitnessMap, convertPublicTxBaseRollupOutputsFromWitnessMap);
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Simulates the merge rollup circuit from its inputs.
|
|
102
|
+
* @param input - Inputs to the circuit.
|
|
103
|
+
* @returns The public inputs as outputs of the simulation.
|
|
104
|
+
*/ getTxMergeRollupProof(input) {
|
|
105
|
+
return this.createRecursiveProofAndVerify(input, 'TxMergeRollupArtifact', NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH, convertTxMergeRollupPrivateInputsToWitnessMap, convertTxMergeRollupOutputsFromWitnessMap);
|
|
106
|
+
}
|
|
107
|
+
getBlockRootFirstRollupProof(input) {
|
|
108
|
+
return this.createRecursiveProofAndVerify(input, 'BlockRootFirstRollupArtifact', NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH, convertBlockRootFirstRollupPrivateInputsToWitnessMap, convertBlockRootFirstRollupOutputsFromWitnessMap);
|
|
109
|
+
}
|
|
110
|
+
getBlockRootSingleTxFirstRollupProof(input) {
|
|
111
|
+
return this.createRecursiveProofAndVerify(input, 'BlockRootSingleTxFirstRollupArtifact', NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH, convertBlockRootSingleTxFirstRollupPrivateInputsToWitnessMap, convertBlockRootSingleTxFirstRollupOutputsFromWitnessMap);
|
|
112
|
+
}
|
|
113
|
+
getBlockRootEmptyTxFirstRollupProof(input) {
|
|
114
|
+
return this.createRecursiveProofAndVerify(input, 'BlockRootEmptyTxFirstRollupArtifact', NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH, convertBlockRootEmptyTxFirstRollupPrivateInputsToWitnessMap, convertBlockRootEmptyTxFirstRollupOutputsFromWitnessMap);
|
|
115
|
+
}
|
|
116
|
+
getBlockRootRollupProof(input) {
|
|
117
|
+
return this.createRecursiveProofAndVerify(input, 'BlockRootRollupArtifact', NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH, convertBlockRootRollupPrivateInputsToWitnessMap, convertBlockRootRollupOutputsFromWitnessMap);
|
|
118
|
+
}
|
|
119
|
+
getBlockRootSingleTxRollupProof(input) {
|
|
120
|
+
return this.createRecursiveProofAndVerify(input, 'BlockRootSingleTxRollupArtifact', NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH, convertBlockRootSingleTxRollupPrivateInputsToWitnessMap, convertBlockRootSingleTxRollupOutputsFromWitnessMap);
|
|
121
|
+
}
|
|
122
|
+
getBlockMergeRollupProof(input) {
|
|
123
|
+
return this.createRecursiveProofAndVerify(input, 'BlockMergeRollupArtifact', NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH, convertBlockMergeRollupPrivateInputsToWitnessMap, convertBlockMergeRollupOutputsFromWitnessMap);
|
|
124
|
+
}
|
|
125
|
+
getCheckpointRootRollupProof(input) {
|
|
126
|
+
return this.createRecursiveProofAndVerify(input, 'CheckpointRootRollupArtifact', NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH, convertCheckpointRootRollupPrivateInputsToWitnessMap, convertCheckpointRootRollupOutputsFromWitnessMap);
|
|
127
|
+
}
|
|
128
|
+
getCheckpointRootSingleBlockRollupProof(input) {
|
|
129
|
+
return this.createRecursiveProofAndVerify(input, 'CheckpointRootSingleBlockRollupArtifact', NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH, convertCheckpointRootSingleBlockRollupPrivateInputsToWitnessMap, convertCheckpointRootSingleBlockRollupOutputsFromWitnessMap);
|
|
130
|
+
}
|
|
131
|
+
getCheckpointPaddingRollupProof(input) {
|
|
132
|
+
return this.createRecursiveProofAndVerify(input, 'CheckpointPaddingRollupArtifact', NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH, convertCheckpointPaddingRollupPrivateInputsToWitnessMap, convertCheckpointPaddingRollupOutputsFromWitnessMap);
|
|
133
|
+
}
|
|
134
|
+
getCheckpointMergeRollupProof(input) {
|
|
135
|
+
return this.createRecursiveProofAndVerify(input, 'CheckpointMergeRollupArtifact', NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH, convertCheckpointMergeRollupPrivateInputsToWitnessMap, convertCheckpointMergeRollupOutputsFromWitnessMap);
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Simulates the root rollup circuit from its inputs.
|
|
139
|
+
* @param input - Inputs to the circuit.
|
|
140
|
+
* @returns The public inputs as outputs of the simulation.
|
|
141
|
+
*/ async getRootRollupProof(input) {
|
|
142
|
+
const { proof, ...output } = await this.createRecursiveProofAndVerify(input, 'RootRollupArtifact', ULTRA_KECCAK_PROOF_LENGTH, convertRootRollupPrivateInputsToWitnessMap, convertRootRollupOutputsFromWitnessMap);
|
|
143
|
+
const recursiveProof = makeRecursiveProofFromBinary(proof.binaryProof, NESTED_RECURSIVE_PROOF_LENGTH);
|
|
144
|
+
// TODO(https://github.com/AztecProtocol/aztec-packages/issues/13188): Remove this hack.
|
|
145
|
+
recursiveProof.binaryProof.numPublicInputs += PAIRING_POINTS_SIZE;
|
|
146
|
+
return {
|
|
147
|
+
...output,
|
|
148
|
+
proof: recursiveProof
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
async createRecursiveProofAndVerify(input, artifactName, proofLength, convertInput, convertOutput) {
|
|
152
|
+
const { circuitOutput, proof } = await this.createRecursiveProof(input, artifactName, proofLength, convertInput, convertOutput);
|
|
153
|
+
await this.verifyProof(artifactName, proof.binaryProof);
|
|
154
|
+
const verificationKey = this.getVerificationKeyDataForCircuit(artifactName);
|
|
155
|
+
return makePublicInputsAndRecursiveProof(circuitOutput, proof, verificationKey);
|
|
156
|
+
}
|
|
157
|
+
async generateProofWithBB(input, circuitType, convertInput, convertOutput, workingDirectory) {
|
|
158
|
+
// Have the ACVM write the partial witness here
|
|
159
|
+
const outputWitnessFile = path.join(workingDirectory, 'partial-witness.gz');
|
|
160
|
+
// Generate the partial witness using the ACVM
|
|
161
|
+
// A further temp directory will be created beneath ours and then cleaned up after the partial witness has been copied to our specified location
|
|
162
|
+
const simulator = new NativeACVMSimulator(this.config.acvmWorkingDirectory, this.config.acvmBinaryPath, outputWitnessFile);
|
|
163
|
+
const artifact = getServerCircuitArtifact(circuitType);
|
|
164
|
+
logger.debug(`Generating witness data for ${circuitType}`);
|
|
165
|
+
const inputWitness = convertInput(input);
|
|
166
|
+
const foreignCallHandler = undefined; // We don't handle foreign calls in the native ACVM simulator
|
|
167
|
+
const witnessResult = await simulator.executeProtocolCircuit(inputWitness, artifact, foreignCallHandler);
|
|
168
|
+
const output = convertOutput(witnessResult.witness);
|
|
169
|
+
const circuitName = mapProtocolArtifactNameToCircuitName(circuitType);
|
|
170
|
+
this.instrumentation.recordDuration('witGenDuration', circuitName, witnessResult.duration);
|
|
171
|
+
this.instrumentation.recordSize('witGenInputSize', circuitName, input.toBuffer().length);
|
|
172
|
+
this.instrumentation.recordSize('witGenOutputSize', circuitName, output.toBuffer().length);
|
|
173
|
+
logger.info(`Generated witness`, {
|
|
174
|
+
circuitName,
|
|
175
|
+
duration: witnessResult.duration,
|
|
176
|
+
inputSize: input.toBuffer().length,
|
|
177
|
+
outputSize: output.toBuffer().length,
|
|
178
|
+
eventName: 'circuit-witness-generation'
|
|
179
|
+
});
|
|
180
|
+
// Now prove the circuit from the generated witness
|
|
181
|
+
logger.debug(`Proving ${circuitType}...`);
|
|
182
|
+
const provingResult = await generateProof(this.config.bbBinaryPath, workingDirectory, circuitType, Buffer.from(artifact.bytecode, 'base64'), this.getVerificationKeyDataForCircuit(circuitType).keyAsBytes, outputWitnessFile, getUltraHonkFlavorForCircuit(circuitType), logger);
|
|
183
|
+
if (provingResult.status === BB_RESULT.FAILURE) {
|
|
184
|
+
logger.error(`Failed to generate proof for ${circuitType}: ${provingResult.reason}`);
|
|
185
|
+
throw new ProvingError(provingResult.reason, provingResult, provingResult.retry);
|
|
186
|
+
}
|
|
187
|
+
return {
|
|
188
|
+
circuitOutput: output,
|
|
189
|
+
provingResult
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
async generateAvmProofWithBB(input, workingDirectory) {
|
|
193
|
+
logger.info(`Proving avm-circuit for TX ${input.hints.tx.hash}...`);
|
|
194
|
+
const provingResult = await generateAvmProof(this.config.bbBinaryPath, workingDirectory, input, logger);
|
|
195
|
+
if (provingResult.status === BB_RESULT.FAILURE) {
|
|
196
|
+
logger.error(`Failed to generate AVM proof for TX ${input.hints.tx.hash}: ${provingResult.reason}`);
|
|
197
|
+
throw new ProvingError(provingResult.reason, provingResult, provingResult.retry);
|
|
198
|
+
}
|
|
199
|
+
return provingResult;
|
|
200
|
+
}
|
|
201
|
+
async createAvmProof(input) {
|
|
202
|
+
const operation = async (bbWorkingDirectory)=>{
|
|
203
|
+
const provingResult = await this.generateAvmProofWithBB(input, bbWorkingDirectory);
|
|
204
|
+
const avmVK = await extractAvmVkData(provingResult.vkDirectoryPath);
|
|
205
|
+
const avmProof = await this.readAvmProofAsFields(provingResult.proofPath);
|
|
206
|
+
const circuitType = 'avm-circuit';
|
|
207
|
+
const appCircuitName = 'unknown';
|
|
208
|
+
this.instrumentation.recordAvmDuration('provingDuration', appCircuitName, provingResult.durationMs);
|
|
209
|
+
this.instrumentation.recordAvmSize('proofSize', appCircuitName, avmProof.binaryProof.buffer.length);
|
|
210
|
+
logger.info(`Generated proof for ${circuitType}(${input.hints.tx.hash}) in ${Math.ceil(provingResult.durationMs)} ms`, {
|
|
211
|
+
circuitName: circuitType,
|
|
212
|
+
appCircuitName: input.hints.tx.hash,
|
|
213
|
+
// does not include reading the proof from disk
|
|
214
|
+
duration: provingResult.durationMs,
|
|
215
|
+
proofSize: avmProof.binaryProof.buffer.length,
|
|
216
|
+
eventName: 'circuit-proving',
|
|
217
|
+
inputSize: input.serializeWithMessagePack().length,
|
|
218
|
+
circuitSize: 1 << 21,
|
|
219
|
+
numPublicInputs: 0
|
|
220
|
+
});
|
|
221
|
+
return makeProofAndVerificationKey(avmProof, avmVK);
|
|
222
|
+
};
|
|
223
|
+
return await this.runInDirectory(operation);
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Executes a circuit and returns its outputs and corresponding proof with embedded aggregation object
|
|
227
|
+
* @param witnessMap - The input witness
|
|
228
|
+
* @param circuitType - The type of circuit to be executed
|
|
229
|
+
* @param proofLength - The length of the proof to be generated. This is a dummy parameter to aid in type checking
|
|
230
|
+
* @param convertInput - Function for mapping the input object to a witness map.
|
|
231
|
+
* @param convertOutput - Function for parsing the output witness to it's corresponding object
|
|
232
|
+
* @returns The circuits output object and it's proof
|
|
233
|
+
*/ async createRecursiveProof(input, circuitType, proofLength, convertInput, convertOutput) {
|
|
234
|
+
// this probably is gonna need to call chonk
|
|
235
|
+
const operation = async (bbWorkingDirectory)=>{
|
|
236
|
+
const { provingResult, circuitOutput: output } = await this.generateProofWithBB(input, circuitType, convertInput, convertOutput, bbWorkingDirectory);
|
|
237
|
+
const vkData = this.getVerificationKeyDataForCircuit(circuitType);
|
|
238
|
+
// Read the proof as fields
|
|
239
|
+
const proof = await readProofsFromOutputDirectory(provingResult.proofPath, vkData, proofLength, logger);
|
|
240
|
+
const circuitName = mapProtocolArtifactNameToCircuitName(circuitType);
|
|
241
|
+
this.instrumentation.recordDuration('provingDuration', circuitName, provingResult.durationMs);
|
|
242
|
+
this.instrumentation.recordSize('proofSize', circuitName, proof.binaryProof.buffer.length);
|
|
243
|
+
this.instrumentation.recordSize('circuitPublicInputCount', circuitName, vkData.numPublicInputs);
|
|
244
|
+
this.instrumentation.recordSize('circuitSize', circuitName, vkData.circuitSize);
|
|
245
|
+
logger.info(`Generated proof for ${circuitType} in ${Math.ceil(provingResult.durationMs)} ms, size: ${proof.proof.length} fields`, {
|
|
246
|
+
circuitName,
|
|
247
|
+
circuitSize: vkData.circuitSize,
|
|
248
|
+
duration: provingResult.durationMs,
|
|
249
|
+
inputSize: output.toBuffer().length,
|
|
250
|
+
proofSize: proof.binaryProof.buffer.length,
|
|
251
|
+
eventName: 'circuit-proving',
|
|
252
|
+
numPublicInputs: vkData.numPublicInputs
|
|
253
|
+
});
|
|
254
|
+
return {
|
|
255
|
+
circuitOutput: output,
|
|
256
|
+
proof
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
return await this.runInDirectory(operation);
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* Verifies a proof, will generate the verification key if one is not cached internally
|
|
263
|
+
* @param circuitType - The type of circuit whose proof is to be verified
|
|
264
|
+
* @param proof - The proof to be verified
|
|
265
|
+
*/ async verifyProof(circuitType, proof) {
|
|
266
|
+
const verificationKey = this.getVerificationKeyDataForCircuit(circuitType);
|
|
267
|
+
return await this.verifyWithKey(getUltraHonkFlavorForCircuit(circuitType), verificationKey, proof);
|
|
268
|
+
}
|
|
269
|
+
async verifyAvmProof(proof, verificationKey, publicInputs) {
|
|
270
|
+
return await this.verifyWithKeyInternal(proof, verificationKey, (proofPath, vkPath)=>verifyAvmProof(this.config.bbBinaryPath, this.config.bbWorkingDirectory, proofPath, publicInputs, vkPath, logger));
|
|
271
|
+
}
|
|
272
|
+
async verifyWithKey(flavor, verificationKey, proof) {
|
|
273
|
+
return await this.verifyWithKeyInternal(proof, verificationKey, (proofPath, vkPath)=>verifyProof(this.config.bbBinaryPath, proofPath, vkPath, flavor, logger));
|
|
274
|
+
}
|
|
275
|
+
async verifyWithKeyInternal(proof, verificationKey, verificationFunction) {
|
|
276
|
+
const operation = async (bbWorkingDirectory)=>{
|
|
277
|
+
const publicInputsFileName = path.join(bbWorkingDirectory, PUBLIC_INPUTS_FILENAME);
|
|
278
|
+
const proofFileName = path.join(bbWorkingDirectory, PROOF_FILENAME);
|
|
279
|
+
const verificationKeyPath = path.join(bbWorkingDirectory, VK_FILENAME);
|
|
280
|
+
// TODO(https://github.com/AztecProtocol/aztec-packages/issues/13189): Put this proof parsing logic in the proof class.
|
|
281
|
+
await fs.writeFile(publicInputsFileName, proof.buffer.slice(0, proof.numPublicInputs * 32));
|
|
282
|
+
await fs.writeFile(proofFileName, proof.buffer.slice(proof.numPublicInputs * 32));
|
|
283
|
+
await fs.writeFile(verificationKeyPath, verificationKey.keyAsBytes);
|
|
284
|
+
const result = await verificationFunction(proofFileName, verificationKeyPath);
|
|
285
|
+
if (result.status === BB_RESULT.FAILURE) {
|
|
286
|
+
const errorMessage = `Failed to verify proof from key!`;
|
|
287
|
+
throw new ProvingError(errorMessage, result, result.retry);
|
|
288
|
+
}
|
|
289
|
+
logger.info(`Successfully verified proof from key in ${result.durationMs} ms`);
|
|
290
|
+
};
|
|
291
|
+
await this.runInDirectory(operation);
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* Returns the verification key data for a circuit.
|
|
295
|
+
* @param circuitType - The type of circuit for which the verification key is required
|
|
296
|
+
* @returns The verification key data
|
|
297
|
+
*/ getVerificationKeyDataForCircuit(circuitType) {
|
|
298
|
+
const vk = ServerCircuitVks[circuitType];
|
|
299
|
+
if (vk === undefined) {
|
|
300
|
+
throw new Error('Could not find VK for server artifact ' + circuitType);
|
|
301
|
+
}
|
|
302
|
+
return vk;
|
|
303
|
+
}
|
|
304
|
+
async readAvmProofAsFields(proofFilename) {
|
|
305
|
+
const rawProofBuffer = await fs.readFile(proofFilename);
|
|
306
|
+
const reader = BufferReader.asReader(rawProofBuffer);
|
|
307
|
+
const proofFields = reader.readArray(rawProofBuffer.length / Fr.SIZE_IN_BYTES, Fr);
|
|
308
|
+
// We extend to a fixed-size padded proof as during development any new AVM circuit column changes the
|
|
309
|
+
// proof length and we do not have a mechanism to feedback a cpp constant to noir/TS.
|
|
310
|
+
// TODO(#13390): Revive a non-padded AVM proof
|
|
311
|
+
if (proofFields.length > AVM_V2_PROOF_LENGTH_IN_FIELDS_PADDED) {
|
|
312
|
+
throw new Error(`Proof has ${proofFields.length} fields, expected no more than ${AVM_V2_PROOF_LENGTH_IN_FIELDS_PADDED}.`);
|
|
313
|
+
}
|
|
314
|
+
const proofFieldsPadded = proofFields.concat(Array(AVM_V2_PROOF_LENGTH_IN_FIELDS_PADDED - proofFields.length).fill(new Fr(0)));
|
|
315
|
+
const proof = new Proof(rawProofBuffer, /*numPublicInputs=*/ 0);
|
|
316
|
+
return new RecursiveProof(proofFieldsPadded, proof, true, AVM_V2_PROOF_LENGTH_IN_FIELDS_PADDED);
|
|
317
|
+
}
|
|
318
|
+
runInDirectory(fn) {
|
|
319
|
+
return runInDirectory(this.config.bbWorkingDirectory, (dir)=>fn(dir).catch((err)=>{
|
|
320
|
+
logger.error(`Error running operation at ${dir}: ${err}`);
|
|
321
|
+
throw err;
|
|
322
|
+
}), this.config.bbSkipCleanup, logger);
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
_ts_decorate([
|
|
326
|
+
trackSpan('BBNativeRollupProver.getBaseParityProof', {
|
|
327
|
+
[Attributes.PROTOCOL_CIRCUIT_NAME]: 'parity-base'
|
|
328
|
+
})
|
|
329
|
+
], BBNativeRollupProver.prototype, "getBaseParityProof", null);
|
|
330
|
+
_ts_decorate([
|
|
331
|
+
trackSpan('BBNativeRollupProver.getRootParityProof', {
|
|
332
|
+
[Attributes.PROTOCOL_CIRCUIT_NAME]: 'parity-root'
|
|
333
|
+
})
|
|
334
|
+
], BBNativeRollupProver.prototype, "getRootParityProof", null);
|
|
335
|
+
_ts_decorate([
|
|
336
|
+
trackSpan('BBNativeRollupProver.getAvmProof', (inputs)=>({
|
|
337
|
+
[Attributes.APP_CIRCUIT_NAME]: inputs.hints.tx.hash
|
|
338
|
+
}))
|
|
339
|
+
], BBNativeRollupProver.prototype, "getAvmProof", null);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ProvingRequestType } from '@aztec/stdlib/proofs';
|
|
2
2
|
export declare const WITGEN_DELAY_MS: Record<ProvingRequestType, number>;
|
|
3
3
|
export declare const PROOF_DELAY_MS: Record<ProvingRequestType, number>;
|
|
4
|
-
//# sourceMappingURL=
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVsYXlfdmFsdWVzLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdGVzdC9kZWxheV92YWx1ZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFFMUQsZUFBTyxNQUFNLGVBQWUsRUFBRSxNQUFNLENBQUMsa0JBQWtCLEVBQUUsTUFBTSxDQW1COUQsQ0FBQztBQUVGLGVBQU8sTUFBTSxjQUFjLEVBQUUsTUFBTSxDQUFDLGtCQUFrQixFQUFFLE1BQU0sQ0FtQjdELENBQUMifQ==
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delay_values.d.ts","sourceRoot":"","sources":["../../src/test/delay_values.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"delay_values.d.ts","sourceRoot":"","sources":["../../src/test/delay_values.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAmB9D,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAmB7D,CAAC"}
|
|
@@ -1,29 +1,41 @@
|
|
|
1
1
|
import { ProvingRequestType } from '@aztec/stdlib/proofs';
|
|
2
2
|
export const WITGEN_DELAY_MS = {
|
|
3
|
-
[ProvingRequestType.
|
|
4
|
-
[ProvingRequestType.BLOCK_MERGE_ROLLUP]:
|
|
5
|
-
[ProvingRequestType.
|
|
6
|
-
[ProvingRequestType.
|
|
7
|
-
[ProvingRequestType.
|
|
8
|
-
[ProvingRequestType.
|
|
9
|
-
[ProvingRequestType.
|
|
10
|
-
[ProvingRequestType.
|
|
11
|
-
[ProvingRequestType.
|
|
12
|
-
[ProvingRequestType.
|
|
13
|
-
[ProvingRequestType.
|
|
3
|
+
[ProvingRequestType.PARITY_BASE]: 2000,
|
|
4
|
+
[ProvingRequestType.BLOCK_MERGE_ROLLUP]: 30,
|
|
5
|
+
[ProvingRequestType.BLOCK_ROOT_FIRST_ROLLUP]: 60_000,
|
|
6
|
+
[ProvingRequestType.BLOCK_ROOT_SINGLE_TX_FIRST_ROLLUP]: 40_000,
|
|
7
|
+
[ProvingRequestType.BLOCK_ROOT_EMPTY_TX_FIRST_ROLLUP]: 18,
|
|
8
|
+
[ProvingRequestType.BLOCK_ROOT_ROLLUP]: 40_000,
|
|
9
|
+
[ProvingRequestType.BLOCK_ROOT_SINGLE_TX_ROLLUP]: 20_000,
|
|
10
|
+
[ProvingRequestType.CHECKPOINT_ROOT_ROLLUP]: 40_000,
|
|
11
|
+
[ProvingRequestType.CHECKPOINT_ROOT_SINGLE_BLOCK_ROLLUP]: 36_000,
|
|
12
|
+
[ProvingRequestType.CHECKPOINT_PADDING_ROLLUP]: 0,
|
|
13
|
+
[ProvingRequestType.CHECKPOINT_MERGE_ROLLUP]: 30,
|
|
14
|
+
[ProvingRequestType.TX_MERGE_ROLLUP]: 0,
|
|
15
|
+
[ProvingRequestType.PRIVATE_TX_BASE_ROLLUP]: 400_000,
|
|
16
|
+
[ProvingRequestType.PUBLIC_TX_BASE_ROLLUP]: 470_000,
|
|
17
|
+
[ProvingRequestType.PARITY_ROOT]: 39,
|
|
18
|
+
[ProvingRequestType.ROOT_ROLLUP]: 35,
|
|
19
|
+
[ProvingRequestType.PUBLIC_CHONK_VERIFIER]: 0,
|
|
14
20
|
[ProvingRequestType.PUBLIC_VM]: 0
|
|
15
21
|
};
|
|
16
22
|
export const PROOF_DELAY_MS = {
|
|
17
|
-
[ProvingRequestType.
|
|
23
|
+
[ProvingRequestType.PARITY_BASE]: 14_000,
|
|
18
24
|
[ProvingRequestType.BLOCK_MERGE_ROLLUP]: 15_000,
|
|
19
|
-
[ProvingRequestType.
|
|
20
|
-
[ProvingRequestType.
|
|
21
|
-
[ProvingRequestType.
|
|
22
|
-
[ProvingRequestType.
|
|
23
|
-
[ProvingRequestType.
|
|
24
|
-
[ProvingRequestType.
|
|
25
|
-
[ProvingRequestType.
|
|
26
|
-
[ProvingRequestType.
|
|
27
|
-
[ProvingRequestType.
|
|
25
|
+
[ProvingRequestType.BLOCK_ROOT_FIRST_ROLLUP]: 55_000,
|
|
26
|
+
[ProvingRequestType.BLOCK_ROOT_SINGLE_TX_FIRST_ROLLUP]: 35_000,
|
|
27
|
+
[ProvingRequestType.BLOCK_ROOT_EMPTY_TX_FIRST_ROLLUP]: 4_000,
|
|
28
|
+
[ProvingRequestType.BLOCK_ROOT_ROLLUP]: 35_000,
|
|
29
|
+
[ProvingRequestType.BLOCK_ROOT_SINGLE_TX_ROLLUP]: 15_000,
|
|
30
|
+
[ProvingRequestType.CHECKPOINT_ROOT_ROLLUP]: 35_000,
|
|
31
|
+
[ProvingRequestType.CHECKPOINT_ROOT_SINGLE_BLOCK_ROLLUP]: 35_000,
|
|
32
|
+
[ProvingRequestType.CHECKPOINT_PADDING_ROLLUP]: 0,
|
|
33
|
+
[ProvingRequestType.CHECKPOINT_MERGE_ROLLUP]: 9_000,
|
|
34
|
+
[ProvingRequestType.TX_MERGE_ROLLUP]: 0,
|
|
35
|
+
[ProvingRequestType.PRIVATE_TX_BASE_ROLLUP]: 145_000,
|
|
36
|
+
[ProvingRequestType.PUBLIC_TX_BASE_ROLLUP]: 160_000,
|
|
37
|
+
[ProvingRequestType.PARITY_ROOT]: 16_000,
|
|
38
|
+
[ProvingRequestType.ROOT_ROLLUP]: 140_000,
|
|
39
|
+
[ProvingRequestType.PUBLIC_CHONK_VERIFIER]: 30_000,
|
|
28
40
|
[ProvingRequestType.PUBLIC_VM]: 0
|
|
29
41
|
};
|
package/dest/test/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export * from './test_circuit_prover.js';
|
|
2
2
|
export * from './test_verifier.js';
|
|
3
|
-
//# sourceMappingURL=
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy90ZXN0L2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsMEJBQTBCLENBQUM7QUFDekMsY0FBYyxvQkFBb0IsQ0FBQyJ9
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AVM_V2_PROOF_LENGTH_IN_FIELDS_PADDED, NESTED_RECURSIVE_PROOF_LENGTH, NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH, RECURSIVE_PROOF_LENGTH } from '@aztec/constants';
|
|
2
2
|
import { type ServerProtocolArtifact } from '@aztec/noir-protocol-circuits-types/server';
|
|
3
|
-
import { type
|
|
3
|
+
import { type CircuitSimulator } from '@aztec/simulator/server';
|
|
4
4
|
import type { AvmCircuitInputs } from '@aztec/stdlib/avm';
|
|
5
5
|
import { type ProofAndVerificationKey, type PublicInputsAndRecursiveProof, type ServerCircuitProver } from '@aztec/stdlib/interfaces/server';
|
|
6
|
-
import type {
|
|
6
|
+
import type { ParityBasePrivateInputs, ParityPublicInputs, ParityRootPrivateInputs } from '@aztec/stdlib/parity';
|
|
7
7
|
import { type Proof } from '@aztec/stdlib/proofs';
|
|
8
|
-
import type
|
|
8
|
+
import { type BlockMergeRollupPrivateInputs, type BlockRollupPublicInputs, type BlockRootEmptyTxFirstRollupPrivateInputs, type BlockRootFirstRollupPrivateInputs, type BlockRootRollupPrivateInputs, type BlockRootSingleTxFirstRollupPrivateInputs, type BlockRootSingleTxRollupPrivateInputs, type CheckpointMergeRollupPrivateInputs, type CheckpointPaddingRollupPrivateInputs, type CheckpointRollupPublicInputs, type CheckpointRootRollupPrivateInputs, type CheckpointRootSingleBlockRollupPrivateInputs, type PrivateTxBaseRollupPrivateInputs, type PublicChonkVerifierPrivateInputs, PublicChonkVerifierPublicInputs, type PublicTxBaseRollupPrivateInputs, type RootRollupPrivateInputs, type RootRollupPublicInputs, type TxMergeRollupPrivateInputs, type TxRollupPublicInputs } from '@aztec/stdlib/rollup';
|
|
9
9
|
import { type TelemetryClient } from '@aztec/telemetry-client';
|
|
10
10
|
type TestDelay = {
|
|
11
11
|
proverTestDelayType: 'fixed';
|
|
@@ -19,63 +19,54 @@ type TestDelay = {
|
|
|
19
19
|
* Simulates circuits using the most efficient method and performs no proving.
|
|
20
20
|
*/
|
|
21
21
|
export declare class TestCircuitProver implements ServerCircuitProver {
|
|
22
|
-
private
|
|
22
|
+
private simulator?;
|
|
23
23
|
private opts;
|
|
24
24
|
private wasmSimulator;
|
|
25
25
|
private instrumentation;
|
|
26
26
|
private logger;
|
|
27
|
-
constructor(
|
|
27
|
+
constructor(simulator?: CircuitSimulator | undefined, opts?: TestDelay, telemetry?: TelemetryClient);
|
|
28
28
|
get tracer(): import("@aztec/telemetry-client").Tracer;
|
|
29
29
|
/**
|
|
30
30
|
* Simulates the base parity circuit from its inputs.
|
|
31
31
|
* @param inputs - Inputs to the circuit.
|
|
32
32
|
* @returns The public inputs of the parity circuit.
|
|
33
33
|
*/
|
|
34
|
-
getBaseParityProof(inputs:
|
|
34
|
+
getBaseParityProof(inputs: ParityBasePrivateInputs): Promise<PublicInputsAndRecursiveProof<ParityPublicInputs, typeof RECURSIVE_PROOF_LENGTH>>;
|
|
35
35
|
/**
|
|
36
36
|
* Simulates the root parity circuit from its inputs.
|
|
37
37
|
* @param inputs - Inputs to the circuit.
|
|
38
38
|
* @returns The public inputs of the parity circuit.
|
|
39
39
|
*/
|
|
40
|
-
getRootParityProof(inputs:
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
getRootParityProof(inputs: ParityRootPrivateInputs): Promise<PublicInputsAndRecursiveProof<ParityPublicInputs, typeof NESTED_RECURSIVE_PROOF_LENGTH>>;
|
|
41
|
+
getPublicChonkVerifierProof(inputs: PublicChonkVerifierPrivateInputs): Promise<PublicInputsAndRecursiveProof<PublicChonkVerifierPublicInputs, typeof NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH>>;
|
|
42
|
+
getPrivateTxBaseRollupProof(inputs: PrivateTxBaseRollupPrivateInputs): Promise<PublicInputsAndRecursiveProof<TxRollupPublicInputs, typeof NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH>>;
|
|
43
|
+
getPublicTxBaseRollupProof(inputs: PublicTxBaseRollupPrivateInputs): Promise<PublicInputsAndRecursiveProof<TxRollupPublicInputs, typeof NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH>>;
|
|
44
44
|
/**
|
|
45
45
|
* Simulates the merge rollup circuit from its inputs.
|
|
46
46
|
* @param input - Inputs to the circuit.
|
|
47
47
|
* @returns The public inputs as outputs of the simulation.
|
|
48
48
|
*/
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
* @returns The public inputs as outputs of the simulation.
|
|
61
|
-
*/
|
|
62
|
-
getEmptyBlockRootRollupProof(input: EmptyBlockRootRollupInputs): Promise<PublicInputsAndRecursiveProof<BlockRootOrBlockMergePublicInputs, typeof NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH>>;
|
|
63
|
-
/**
|
|
64
|
-
* Simulates the block merge rollup circuit from its inputs.
|
|
65
|
-
* @param input - Inputs to the circuit.
|
|
66
|
-
* @returns The public inputs as outputs of the simulation.
|
|
67
|
-
*/
|
|
68
|
-
getBlockMergeRollupProof(input: BlockMergeRollupInputs): Promise<PublicInputsAndRecursiveProof<BlockRootOrBlockMergePublicInputs, typeof NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH>>;
|
|
49
|
+
getTxMergeRollupProof(input: TxMergeRollupPrivateInputs): Promise<PublicInputsAndRecursiveProof<TxRollupPublicInputs, typeof NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH>>;
|
|
50
|
+
getBlockRootFirstRollupProof(input: BlockRootFirstRollupPrivateInputs): Promise<PublicInputsAndRecursiveProof<BlockRollupPublicInputs, typeof NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH>>;
|
|
51
|
+
getBlockRootSingleTxFirstRollupProof(input: BlockRootSingleTxFirstRollupPrivateInputs): Promise<PublicInputsAndRecursiveProof<BlockRollupPublicInputs, typeof NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH>>;
|
|
52
|
+
getBlockRootEmptyTxFirstRollupProof(input: BlockRootEmptyTxFirstRollupPrivateInputs): Promise<PublicInputsAndRecursiveProof<BlockRollupPublicInputs, typeof NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH>>;
|
|
53
|
+
getBlockRootRollupProof(input: BlockRootRollupPrivateInputs): Promise<PublicInputsAndRecursiveProof<BlockRollupPublicInputs, typeof NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH>>;
|
|
54
|
+
getBlockRootSingleTxRollupProof(input: BlockRootSingleTxRollupPrivateInputs): Promise<PublicInputsAndRecursiveProof<BlockRollupPublicInputs, typeof NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH>>;
|
|
55
|
+
getBlockMergeRollupProof(input: BlockMergeRollupPrivateInputs): Promise<PublicInputsAndRecursiveProof<BlockRollupPublicInputs, typeof NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH>>;
|
|
56
|
+
getCheckpointRootRollupProof(input: CheckpointRootRollupPrivateInputs): Promise<PublicInputsAndRecursiveProof<CheckpointRollupPublicInputs, typeof NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH>>;
|
|
57
|
+
getCheckpointRootSingleBlockRollupProof(input: CheckpointRootSingleBlockRollupPrivateInputs): Promise<PublicInputsAndRecursiveProof<CheckpointRollupPublicInputs, typeof NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH>>;
|
|
58
|
+
getCheckpointPaddingRollupProof(input: CheckpointPaddingRollupPrivateInputs): Promise<PublicInputsAndRecursiveProof<CheckpointRollupPublicInputs, typeof NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH>>;
|
|
59
|
+
getCheckpointMergeRollupProof(input: CheckpointMergeRollupPrivateInputs): Promise<PublicInputsAndRecursiveProof<CheckpointRollupPublicInputs, typeof NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH>>;
|
|
69
60
|
/**
|
|
70
61
|
* Simulates the root rollup circuit from its inputs.
|
|
71
62
|
* @param input - Inputs to the circuit.
|
|
72
63
|
* @returns The public inputs as outputs of the simulation.
|
|
73
64
|
*/
|
|
74
|
-
getRootRollupProof(input:
|
|
75
|
-
getAvmProof(_inputs: AvmCircuitInputs): Promise<ProofAndVerificationKey<typeof
|
|
65
|
+
getRootRollupProof(input: RootRollupPrivateInputs): Promise<PublicInputsAndRecursiveProof<RootRollupPublicInputs>>;
|
|
66
|
+
getAvmProof(_inputs: AvmCircuitInputs): Promise<ProofAndVerificationKey<typeof AVM_V2_PROOF_LENGTH_IN_FIELDS_PADDED>>;
|
|
76
67
|
private applyDelay;
|
|
77
68
|
verifyProof(_1: ServerProtocolArtifact, _2: Proof): Promise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JBQTZCLENBQ2xDLEtBQUssRUFBRSxrQ0FBa0MsR0FDeEMsT0FBTyxDQUNSLDZCQUE2QixDQUFDLDRCQUE0QixFQUFFLE9BQU8seUNBQXlDLENBQUMsQ0FDOUcsQ0FVQTtJQUVEOzs7O09BSUc7SUFFSSxrQkFBa0IsQ0FDdkIsS0FBSyxFQUFFLHVCQUF1QixHQUM3QixPQUFPLENBQUMsNkJBQTZCLENBQUMsc0JBQXNCLENBQUMsQ0FBQyxDQVVoRTtJQUVNLFdBQVcsQ0FDaEIsT0FBTyxFQUFFLGdCQUFnQixHQUN4QixPQUFPLENBQUMsdUJBQXVCLENBQUMsT0FBTyxvQ0FBb0MsQ0FBQyxDQUFDLENBVS9FO1lBRWEsVUFBVTtJQWVqQixXQUFXLENBQUMsRUFBRSxFQUFFLHNCQUFzQixFQUFFLEVBQUUsRUFBRSxLQUFLLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQyxDQUV2RTtZQUVhLFFBQVE7Q0E2Q3ZCIn0=
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test_circuit_prover.d.ts","sourceRoot":"","sources":["../../src/test/test_circuit_prover.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"test_circuit_prover.d.ts","sourceRoot":"","sources":["../../src/test/test_circuit_prover.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oCAAoC,EAEpC,6BAA6B,EAC7B,yCAAyC,EACzC,sBAAsB,EACvB,MAAM,kBAAkB,CAAC;AAI1B,OAAO,EACL,KAAK,sBAAsB,EAmC5B,MAAM,4CAA4C,CAAC;AAIpD,OAAO,EAAE,KAAK,gBAAgB,EAAsD,MAAM,yBAAyB,CAAC;AACpH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,6BAA6B,EAClC,KAAK,mBAAmB,EAGzB,MAAM,iCAAiC,CAA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