@aztec/bb-prover 0.0.1-commit.7b97ef96e → 0.0.1-commit.7cbc774
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 +13 -8
- package/dest/avm_proving_tests/avm_proving_tester.d.ts.map +1 -1
- package/dest/avm_proving_tests/avm_proving_tester.js +152 -110
- package/dest/bb/bb_js_backend.d.ts +196 -0
- package/dest/bb/bb_js_backend.d.ts.map +1 -0
- package/dest/bb/bb_js_backend.js +379 -0
- package/dest/bb/bb_js_debug.d.ts +52 -0
- package/dest/bb/bb_js_debug.d.ts.map +1 -0
- package/dest/bb/bb_js_debug.js +176 -0
- package/dest/bb/file_names.d.ts +4 -0
- package/dest/bb/file_names.d.ts.map +1 -0
- package/dest/bb/file_names.js +5 -0
- package/dest/config.d.ts +17 -1
- package/dest/config.d.ts.map +1 -1
- package/dest/index.d.ts +3 -2
- package/dest/index.d.ts.map +1 -1
- package/dest/index.js +2 -1
- package/dest/prover/client/bb_private_kernel_prover.d.ts +10 -2
- package/dest/prover/client/bb_private_kernel_prover.d.ts.map +1 -1
- package/dest/prover/client/bb_private_kernel_prover.js +39 -5
- package/dest/prover/proof_utils.d.ts +11 -1
- package/dest/prover/proof_utils.d.ts.map +1 -1
- package/dest/prover/proof_utils.js +24 -1
- package/dest/prover/server/bb_prover.d.ts +4 -5
- package/dest/prover/server/bb_prover.d.ts.map +1 -1
- package/dest/prover/server/bb_prover.js +207 -78
- package/dest/verification_key/verification_key_data.js +1 -1
- package/dest/verifier/batch_chonk_verifier.d.ts +45 -0
- package/dest/verifier/batch_chonk_verifier.d.ts.map +1 -0
- package/dest/verifier/batch_chonk_verifier.js +232 -0
- package/dest/verifier/bb_verifier.d.ts +4 -1
- package/dest/verifier/bb_verifier.d.ts.map +1 -1
- package/dest/verifier/bb_verifier.js +134 -45
- 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 +2 -3
- package/dest/verifier/queued_chonk_verifier.d.ts.map +1 -1
- package/dest/verifier/queued_chonk_verifier.js +6 -5
- package/package.json +19 -17
- package/src/avm_proving_tests/avm_proving_tester.ts +53 -126
- package/src/bb/bb_js_backend.ts +435 -0
- package/src/bb/bb_js_debug.ts +227 -0
- package/src/bb/file_names.ts +6 -0
- package/src/config.ts +16 -0
- package/src/index.ts +2 -1
- package/src/prover/client/bb_private_kernel_prover.ts +116 -4
- package/src/prover/proof_utils.ts +41 -1
- package/src/prover/server/bb_prover.ts +132 -137
- package/src/verification_key/verification_key_data.ts +1 -1
- package/src/verifier/batch_chonk_verifier.ts +276 -0
- package/src/verifier/bb_verifier.ts +66 -76
- package/src/verifier/index.ts +1 -0
- package/src/verifier/queued_chonk_verifier.ts +6 -7
- package/dest/bb/execute.d.ts +0 -107
- package/dest/bb/execute.d.ts.map +0 -1
- package/dest/bb/execute.js +0 -647
- package/src/bb/execute.ts +0 -678
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
import { BackendType, Barretenberg } from '@aztec/bb.js';
|
|
2
|
+
import { FifoFrameReader } from '@aztec/foundation/fifo';
|
|
3
|
+
import { createLogger } from '@aztec/foundation/log';
|
|
4
|
+
import { SerialQueue } from '@aztec/foundation/queue';
|
|
5
|
+
import { Timer } from '@aztec/foundation/timer';
|
|
6
|
+
import { ProtocolCircuitVks } from '@aztec/noir-protocol-circuits-types/server/vks';
|
|
7
|
+
import type { ClientProtocolCircuitVerifier, IVCProofVerificationResult } from '@aztec/stdlib/interfaces/server';
|
|
8
|
+
import type { Tx } from '@aztec/stdlib/tx';
|
|
9
|
+
|
|
10
|
+
import { Unpackr } from 'msgpackr';
|
|
11
|
+
import { execFile } from 'node:child_process';
|
|
12
|
+
import { unlinkSync } from 'node:fs';
|
|
13
|
+
import { unlink } from 'node:fs/promises';
|
|
14
|
+
import * as os from 'node:os';
|
|
15
|
+
import * as path from 'node:path';
|
|
16
|
+
import { promisify } from 'node:util';
|
|
17
|
+
|
|
18
|
+
import type { BBConfig } from '../config.js';
|
|
19
|
+
|
|
20
|
+
const execFileAsync = promisify(execFile);
|
|
21
|
+
|
|
22
|
+
/** Result from the FIFO, matching the C++ VerifyResult struct. */
|
|
23
|
+
interface FifoVerifyResult {
|
|
24
|
+
request_id: number;
|
|
25
|
+
status: number;
|
|
26
|
+
error_message: string;
|
|
27
|
+
time_in_verify_ms: number;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/** Maps client protocol artifacts used for chonk verification to VK indices. */
|
|
31
|
+
const CHONK_VK_ARTIFACTS = ['HidingKernelToRollup', 'HidingKernelToPublic'] as const;
|
|
32
|
+
|
|
33
|
+
interface PendingRequest {
|
|
34
|
+
resolve: (result: IVCProofVerificationResult) => void;
|
|
35
|
+
reject: (error: Error) => void;
|
|
36
|
+
totalTimer: Timer;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Batch verifier for Chonk IVC proofs. Uses the bb batch verifier service
|
|
41
|
+
* which batches IPA verification into a single SRS MSM for better throughput.
|
|
42
|
+
*
|
|
43
|
+
* Architecture:
|
|
44
|
+
* - Spawns a persistent `bb msgpack run` process via Barretenberg (native backend)
|
|
45
|
+
* - Sends proofs via the msgpack RPC protocol (ChonkBatchVerifierQueue)
|
|
46
|
+
* - Receives results via a named FIFO pipe (async, out-of-order)
|
|
47
|
+
* - Bisects batch failures to isolate individual bad proofs
|
|
48
|
+
*/
|
|
49
|
+
export class BatchChonkVerifier implements ClientProtocolCircuitVerifier {
|
|
50
|
+
private bb!: Barretenberg;
|
|
51
|
+
private fifoPath: string;
|
|
52
|
+
private nextRequestId = 0;
|
|
53
|
+
private pendingRequests = new Map<number, PendingRequest>();
|
|
54
|
+
private sendQueue: SerialQueue;
|
|
55
|
+
private fifoReader: FifoFrameReader;
|
|
56
|
+
private logger = createLogger('bb-prover:batch_chonk_verifier');
|
|
57
|
+
/** Maps artifact name to VK index in the batch verifier. */
|
|
58
|
+
private vkIndexMap = new Map<string, number>();
|
|
59
|
+
/** Bound cleanup handler for process exit signals. */
|
|
60
|
+
private exitCleanup: (() => void) | null = null;
|
|
61
|
+
|
|
62
|
+
private constructor(
|
|
63
|
+
private config: Pick<BBConfig, 'bbChonkVerifyConcurrency'> & Partial<Pick<BBConfig, 'bbBinaryPath'>>,
|
|
64
|
+
private vkBuffers: Uint8Array[],
|
|
65
|
+
private batchSize: number,
|
|
66
|
+
private label: string,
|
|
67
|
+
) {
|
|
68
|
+
this.fifoPath = path.join(os.tmpdir(), `bb-batch-${label}-${process.pid}-${Date.now()}.fifo`);
|
|
69
|
+
this.fifoReader = new FifoFrameReader();
|
|
70
|
+
this.sendQueue = new SerialQueue();
|
|
71
|
+
this.sendQueue.start(1);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/** Create and start a BatchChonkVerifier using the protocol circuit VKs. */
|
|
75
|
+
static async new(config: BBConfig, batchSize: number, label: string): Promise<BatchChonkVerifier> {
|
|
76
|
+
const vkBuffers: Uint8Array[] = [];
|
|
77
|
+
const vkIndexMap = new Map<string, number>();
|
|
78
|
+
for (const artifact of CHONK_VK_ARTIFACTS) {
|
|
79
|
+
const vk = ProtocolCircuitVks[artifact];
|
|
80
|
+
if (!vk) {
|
|
81
|
+
throw new Error(`Missing VK for ${artifact}`);
|
|
82
|
+
}
|
|
83
|
+
vkIndexMap.set(artifact, vkBuffers.length);
|
|
84
|
+
vkBuffers.push(vk.keyAsBytes);
|
|
85
|
+
}
|
|
86
|
+
const verifier = new BatchChonkVerifier(config, vkBuffers, batchSize, label);
|
|
87
|
+
verifier.vkIndexMap = vkIndexMap;
|
|
88
|
+
await verifier.start();
|
|
89
|
+
return verifier;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/** Create and start a BatchChonkVerifier with custom VKs (for testing). */
|
|
93
|
+
static async newForTesting(
|
|
94
|
+
config: Pick<BBConfig, 'bbChonkVerifyConcurrency'> & Partial<Pick<BBConfig, 'bbBinaryPath'>>,
|
|
95
|
+
vks: Uint8Array[],
|
|
96
|
+
batchSize: number,
|
|
97
|
+
): Promise<BatchChonkVerifier> {
|
|
98
|
+
const verifier = new BatchChonkVerifier(config, vks, batchSize, 'test');
|
|
99
|
+
for (let i = 0; i < vks.length; i++) {
|
|
100
|
+
verifier.vkIndexMap.set(String(i), i);
|
|
101
|
+
}
|
|
102
|
+
await verifier.start();
|
|
103
|
+
return verifier;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
private async start(): Promise<void> {
|
|
107
|
+
this.logger.info('Starting BatchChonkVerifier');
|
|
108
|
+
|
|
109
|
+
this.bb = await Barretenberg.new({
|
|
110
|
+
bbPath: this.config.bbBinaryPath,
|
|
111
|
+
backend: BackendType.NativeUnixSocket,
|
|
112
|
+
});
|
|
113
|
+
await this.bb.initSRSChonk();
|
|
114
|
+
|
|
115
|
+
await execFileAsync('mkfifo', [this.fifoPath]);
|
|
116
|
+
this.registerExitCleanup();
|
|
117
|
+
|
|
118
|
+
await this.bb.chonkBatchVerifierStart({
|
|
119
|
+
vks: this.vkBuffers,
|
|
120
|
+
numCores: this.config.bbChonkVerifyConcurrency || 0,
|
|
121
|
+
batchSize: this.batchSize,
|
|
122
|
+
fifoPath: this.fifoPath,
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
this.startFifoReader();
|
|
126
|
+
this.logger.info('BatchChonkVerifier started', { fifoPath: this.fifoPath });
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
public verifyProof(tx: Tx): Promise<IVCProofVerificationResult> {
|
|
130
|
+
const circuit = tx.data.forPublic ? 'HidingKernelToPublic' : 'HidingKernelToRollup';
|
|
131
|
+
const vkIndex = this.vkIndexMap.get(circuit);
|
|
132
|
+
if (vkIndex === undefined) {
|
|
133
|
+
throw new Error(`No VK index for circuit ${circuit}`);
|
|
134
|
+
}
|
|
135
|
+
const proofWithPubInputs = tx.chonkProof.attachPublicInputs(tx.data.publicInputs().toFields());
|
|
136
|
+
const proofFields = proofWithPubInputs.fieldsWithPublicInputs.map(f => f.toBuffer());
|
|
137
|
+
return this.enqueueProof(vkIndex, proofFields);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/** Enqueue raw proof fields for verification. Used directly by tests with custom VKs. */
|
|
141
|
+
public enqueueProof(vkIndex: number, proofFields: Uint8Array[]): Promise<IVCProofVerificationResult> {
|
|
142
|
+
const totalTimer = new Timer();
|
|
143
|
+
const requestId = this.nextRequestId++;
|
|
144
|
+
|
|
145
|
+
const resultPromise = new Promise<IVCProofVerificationResult>((resolve, reject) => {
|
|
146
|
+
this.pendingRequests.set(requestId, { resolve, reject, totalTimer });
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
void this.sendQueue
|
|
150
|
+
.put(async () => {
|
|
151
|
+
await this.bb.chonkBatchVerifierQueue({
|
|
152
|
+
requestId,
|
|
153
|
+
vkIndex,
|
|
154
|
+
proofFields,
|
|
155
|
+
});
|
|
156
|
+
})
|
|
157
|
+
.catch(err => {
|
|
158
|
+
const pending = this.pendingRequests.get(requestId);
|
|
159
|
+
if (pending) {
|
|
160
|
+
this.pendingRequests.delete(requestId);
|
|
161
|
+
pending.reject(err instanceof Error ? err : new Error(String(err)));
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
|
|
165
|
+
return resultPromise;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
public async stop(): Promise<void> {
|
|
169
|
+
this.logger.info('Stopping BatchChonkVerifier');
|
|
170
|
+
|
|
171
|
+
// Stop accepting new proofs
|
|
172
|
+
await this.sendQueue.end();
|
|
173
|
+
|
|
174
|
+
// Stop the bb service (flushes remaining proofs)
|
|
175
|
+
try {
|
|
176
|
+
await this.bb.chonkBatchVerifierStop({});
|
|
177
|
+
} catch (err) {
|
|
178
|
+
this.logger.warn(`Error stopping batch verifier service: ${err}`);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
// Stop FIFO reader
|
|
182
|
+
this.fifoReader.stop();
|
|
183
|
+
|
|
184
|
+
// Clean up FIFO file and deregister exit handler
|
|
185
|
+
await unlink(this.fifoPath).catch(() => {});
|
|
186
|
+
this.deregisterExitCleanup();
|
|
187
|
+
|
|
188
|
+
// Reject any remaining pending requests
|
|
189
|
+
for (const [id, pending] of this.pendingRequests) {
|
|
190
|
+
pending.reject(new Error('BatchChonkVerifier stopped'));
|
|
191
|
+
this.pendingRequests.delete(id);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
// Destroy bb process
|
|
195
|
+
await this.bb.destroy();
|
|
196
|
+
|
|
197
|
+
this.logger.info('BatchChonkVerifier stopped');
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
private startFifoReader(): void {
|
|
201
|
+
const unpackr = new Unpackr({ useRecords: false });
|
|
202
|
+
|
|
203
|
+
this.fifoReader.on('frame', (payload: Buffer) => {
|
|
204
|
+
try {
|
|
205
|
+
const result = unpackr.unpack(payload) as FifoVerifyResult;
|
|
206
|
+
this.handleResult(result);
|
|
207
|
+
} catch (err) {
|
|
208
|
+
this.logger.error(`FIFO: failed to decode msgpack result: ${err}`);
|
|
209
|
+
}
|
|
210
|
+
});
|
|
211
|
+
|
|
212
|
+
this.fifoReader.on('error', (err: Error) => {
|
|
213
|
+
this.logger.error(`FIFO reader error: ${err}`);
|
|
214
|
+
});
|
|
215
|
+
|
|
216
|
+
this.fifoReader.on('end', () => {
|
|
217
|
+
this.logger.debug('FIFO reader: stream ended');
|
|
218
|
+
for (const [id, pending] of this.pendingRequests) {
|
|
219
|
+
pending.reject(new Error('FIFO stream ended unexpectedly'));
|
|
220
|
+
this.pendingRequests.delete(id);
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
|
|
224
|
+
this.fifoReader.start(this.fifoPath);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
private handleResult(result: FifoVerifyResult): void {
|
|
228
|
+
const pending = this.pendingRequests.get(result.request_id);
|
|
229
|
+
if (!pending) {
|
|
230
|
+
this.logger.warn(`Received result for unknown request_id=${result.request_id}`);
|
|
231
|
+
return;
|
|
232
|
+
}
|
|
233
|
+
this.pendingRequests.delete(result.request_id);
|
|
234
|
+
|
|
235
|
+
const valid = result.status === 0; // VerifyStatus::OK
|
|
236
|
+
const durationMs = result.time_in_verify_ms;
|
|
237
|
+
const totalDurationMs = pending.totalTimer.ms();
|
|
238
|
+
|
|
239
|
+
const ivcResult: IVCProofVerificationResult = { valid, durationMs, totalDurationMs };
|
|
240
|
+
|
|
241
|
+
if (!valid) {
|
|
242
|
+
this.logger.warn(`Proof verification failed for request_id=${result.request_id}: ${result.error_message}`);
|
|
243
|
+
} else {
|
|
244
|
+
this.logger.debug(`Proof verified`, {
|
|
245
|
+
requestId: result.request_id,
|
|
246
|
+
durationMs: Math.ceil(durationMs),
|
|
247
|
+
totalDurationMs: Math.ceil(totalDurationMs),
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
pending.resolve(ivcResult);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
private registerExitCleanup(): void {
|
|
255
|
+
// Signal handlers must be synchronous — unlinkSync is intentional here
|
|
256
|
+
this.exitCleanup = () => {
|
|
257
|
+
try {
|
|
258
|
+
unlinkSync(this.fifoPath);
|
|
259
|
+
} catch {
|
|
260
|
+
/* ignore */
|
|
261
|
+
}
|
|
262
|
+
};
|
|
263
|
+
process.on('exit', this.exitCleanup);
|
|
264
|
+
process.on('SIGINT', this.exitCleanup);
|
|
265
|
+
process.on('SIGTERM', this.exitCleanup);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
private deregisterExitCleanup(): void {
|
|
269
|
+
if (this.exitCleanup) {
|
|
270
|
+
process.removeListener('exit', this.exitCleanup);
|
|
271
|
+
process.removeListener('SIGINT', this.exitCleanup);
|
|
272
|
+
process.removeListener('SIGTERM', this.exitCleanup);
|
|
273
|
+
this.exitCleanup = null;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { runInDirectory } from '@aztec/foundation/fs';
|
|
2
1
|
import { type Logger, createLogger } from '@aztec/foundation/log';
|
|
3
2
|
import { Timer } from '@aztec/foundation/timer';
|
|
4
3
|
import { ProtocolCircuitVks } from '@aztec/noir-protocol-circuits-types/server/vks';
|
|
@@ -15,28 +14,29 @@ import { Tx } from '@aztec/stdlib/tx';
|
|
|
15
14
|
import type { VerificationKeyData } from '@aztec/stdlib/vks';
|
|
16
15
|
|
|
17
16
|
import { promises as fs } from 'fs';
|
|
18
|
-
import * as path from 'path';
|
|
19
17
|
|
|
20
|
-
import {
|
|
21
|
-
BB_RESULT,
|
|
22
|
-
PROOF_FILENAME,
|
|
23
|
-
PUBLIC_INPUTS_FILENAME,
|
|
24
|
-
VK_FILENAME,
|
|
25
|
-
verifyChonkProof,
|
|
26
|
-
verifyProof,
|
|
27
|
-
} from '../bb/execute.js';
|
|
18
|
+
import { BBJsFactory } from '../bb/bb_js_backend.js';
|
|
28
19
|
import type { BBConfig } from '../config.js';
|
|
29
20
|
import { getUltraHonkFlavorForCircuit } from '../honk.js';
|
|
30
|
-
import { writeChonkProofToPath } from '../prover/proof_utils.js';
|
|
31
21
|
|
|
32
22
|
export class BBCircuitVerifier implements ClientProtocolCircuitVerifier {
|
|
23
|
+
private bbJsFactory: BBJsFactory;
|
|
24
|
+
|
|
33
25
|
private constructor(
|
|
34
26
|
private config: BBConfig,
|
|
35
27
|
private logger: Logger,
|
|
36
|
-
) {
|
|
28
|
+
) {
|
|
29
|
+
// BB_NUM_IVC_VERIFIERS bounds the number of long-lived bb processes the pool keeps alive.
|
|
30
|
+
// If 0, fall back to spawning a fresh bb per verification.
|
|
31
|
+
this.bbJsFactory = new BBJsFactory(config.bbBinaryPath, {
|
|
32
|
+
poolSize: config.numConcurrentIVCVerifiers > 0 ? config.numConcurrentIVCVerifiers : undefined,
|
|
33
|
+
logger,
|
|
34
|
+
debugDir: config.bbDebugOutputDir,
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
37
|
|
|
38
38
|
public stop(): Promise<void> {
|
|
39
|
-
return
|
|
39
|
+
return this.bbJsFactory.destroy();
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
public static async new(config: BBConfig, logger = createLogger('bb-prover:verifier')) {
|
|
@@ -55,87 +55,77 @@ export class BBCircuitVerifier implements ClientProtocolCircuitVerifier {
|
|
|
55
55
|
return vk;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
+
/** Verify an UltraHonk proof via bb.js API (no temp files). */
|
|
58
59
|
public async verifyProofForCircuit(circuit: ServerProtocolArtifact, proof: Proof) {
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
const proofFileName = path.join(bbWorkingDirectory, PROOF_FILENAME);
|
|
62
|
-
const verificationKeyPath = path.join(bbWorkingDirectory, VK_FILENAME);
|
|
63
|
-
const verificationKey = this.getVerificationKeyData(circuit);
|
|
60
|
+
const verificationKey = this.getVerificationKeyData(circuit);
|
|
61
|
+
const flavor = getUltraHonkFlavorForCircuit(circuit);
|
|
64
62
|
|
|
65
|
-
|
|
63
|
+
this.logger.debug(`${circuit} Verifying with key: ${verificationKey.keyAsFields.hash.toString()}`);
|
|
66
64
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
await fs.writeFile(verificationKeyPath, verificationKey.keyAsBytes);
|
|
65
|
+
// Split proof buffer into public input fields and proof fields (32-byte each)
|
|
66
|
+
const publicInputFields = splitBufferToFieldArrays(proof.buffer.subarray(0, proof.numPublicInputs * 32));
|
|
67
|
+
const proofFields = splitBufferToFieldArrays(proof.buffer.subarray(proof.numPublicInputs * 32));
|
|
71
68
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
69
|
+
await using instance = await this.bbJsFactory.getInstance();
|
|
70
|
+
const { verified, durationMs } = await instance.verifyProof(
|
|
71
|
+
proofFields,
|
|
72
|
+
verificationKey.keyAsBytes,
|
|
73
|
+
publicInputFields,
|
|
74
|
+
flavor,
|
|
75
|
+
);
|
|
79
76
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
77
|
+
if (!verified) {
|
|
78
|
+
throw new Error(`Failed to verify ${circuit} proof!`);
|
|
79
|
+
}
|
|
84
80
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
};
|
|
92
|
-
await runInDirectory(this.config.bbWorkingDirectory, operation, this.config.bbSkipCleanup, this.logger);
|
|
81
|
+
this.logger.debug(`${circuit} verification successful`, {
|
|
82
|
+
circuitName: mapProtocolArtifactNameToCircuitName(circuit),
|
|
83
|
+
duration: durationMs,
|
|
84
|
+
eventName: 'circuit-verification',
|
|
85
|
+
proofType: 'ultra-honk',
|
|
86
|
+
} satisfies CircuitVerificationStats);
|
|
93
87
|
}
|
|
94
88
|
|
|
89
|
+
/** Verify a Chonk (IVC) proof from a transaction via bb.js API. */
|
|
95
90
|
public async verifyProof(tx: Tx): Promise<IVCProofVerificationResult> {
|
|
96
91
|
const proofType = 'Chonk';
|
|
97
92
|
try {
|
|
98
93
|
const totalTimer = new Timer();
|
|
99
|
-
let verificationDuration = 0;
|
|
100
94
|
|
|
101
95
|
const circuit: ClientProtocolArtifact = tx.data.forPublic ? 'HidingKernelToPublic' : 'HidingKernelToRollup';
|
|
96
|
+
const verificationKey = this.getVerificationKeyData(circuit);
|
|
97
|
+
|
|
98
|
+
// Reconstruct the full proof with public inputs prepended, then convert Fr[] to Uint8Array[]
|
|
99
|
+
const proofWithPubInputs = tx.chonkProof.attachPublicInputs(tx.data.publicInputs().toFields());
|
|
100
|
+
const fieldsAsBuffers = proofWithPubInputs.fieldsWithPublicInputs.map(f => new Uint8Array(f.toBuffer()));
|
|
102
101
|
|
|
103
|
-
|
|
104
|
-
const
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
this.config.bbIVCConcurrency,
|
|
119
|
-
);
|
|
120
|
-
verificationDuration = timer.ms();
|
|
121
|
-
|
|
122
|
-
if (result.status === BB_RESULT.FAILURE) {
|
|
123
|
-
const errorMessage = `Failed to verify ${proofType} proof for ${circuit}!`;
|
|
124
|
-
throw new Error(errorMessage);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
this.logger.debug(`${proofType} verification successful`, {
|
|
128
|
-
circuitName: mapProtocolArtifactNameToCircuitName(circuit),
|
|
129
|
-
duration: result.durationMs,
|
|
130
|
-
eventName: 'circuit-verification',
|
|
131
|
-
proofType: 'chonk',
|
|
132
|
-
} satisfies CircuitVerificationStats);
|
|
133
|
-
};
|
|
134
|
-
await runInDirectory(this.config.bbWorkingDirectory, operation, this.config.bbSkipCleanup, this.logger);
|
|
135
|
-
return { valid: true, durationMs: verificationDuration, totalDurationMs: totalTimer.ms() };
|
|
102
|
+
await using instance = await this.bbJsFactory.getInstance();
|
|
103
|
+
const { verified, durationMs } = await instance.verifyChonkProof(fieldsAsBuffers, verificationKey.keyAsBytes);
|
|
104
|
+
|
|
105
|
+
if (!verified) {
|
|
106
|
+
throw new Error(`Failed to verify ${proofType} proof for ${circuit}!`);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
this.logger.debug(`${proofType} verification successful`, {
|
|
110
|
+
circuitName: mapProtocolArtifactNameToCircuitName(circuit),
|
|
111
|
+
duration: durationMs,
|
|
112
|
+
eventName: 'circuit-verification',
|
|
113
|
+
proofType: 'chonk',
|
|
114
|
+
} satisfies CircuitVerificationStats);
|
|
115
|
+
|
|
116
|
+
return { valid: true, durationMs, totalDurationMs: totalTimer.ms() };
|
|
136
117
|
} catch (err) {
|
|
137
118
|
this.logger.warn(`Failed to verify ${proofType} proof for tx ${tx.getTxHash().toString()}: ${String(err)}`);
|
|
138
119
|
return { valid: false, durationMs: 0, totalDurationMs: 0 };
|
|
139
120
|
}
|
|
140
121
|
}
|
|
141
122
|
}
|
|
123
|
+
|
|
124
|
+
/** Split a buffer into 32-byte Uint8Array field elements. */
|
|
125
|
+
function splitBufferToFieldArrays(buffer: Buffer): Uint8Array[] {
|
|
126
|
+
const fields: Uint8Array[] = [];
|
|
127
|
+
for (let i = 0; i < buffer.length; i += 32) {
|
|
128
|
+
fields.push(new Uint8Array(buffer.subarray(i, i + 32)));
|
|
129
|
+
}
|
|
130
|
+
return fields;
|
|
131
|
+
}
|
package/src/verifier/index.ts
CHANGED
|
@@ -16,8 +16,6 @@ import {
|
|
|
16
16
|
|
|
17
17
|
import { createHistogram } from 'node:perf_hooks';
|
|
18
18
|
|
|
19
|
-
import type { BBConfig } from '../config.js';
|
|
20
|
-
|
|
21
19
|
class IVCVerifierMetrics {
|
|
22
20
|
private ivcVerificationHistogram: Histogram;
|
|
23
21
|
private ivcTotalVerificationHistogram: Histogram;
|
|
@@ -86,15 +84,15 @@ export class QueuedIVCVerifier implements ClientProtocolCircuitVerifier {
|
|
|
86
84
|
private metrics: IVCVerifierMetrics;
|
|
87
85
|
|
|
88
86
|
public constructor(
|
|
89
|
-
config: BBConfig,
|
|
90
87
|
private verifier: ClientProtocolCircuitVerifier,
|
|
88
|
+
concurrency: number,
|
|
91
89
|
private telemetry: TelemetryClient = getTelemetryClient(),
|
|
92
90
|
private logger = createLogger('bb-prover:queued_chonk_verifier'),
|
|
93
91
|
) {
|
|
94
92
|
this.metrics = new IVCVerifierMetrics(this.telemetry, 'QueuedIVCVerifier');
|
|
95
93
|
this.queue = new SerialQueue();
|
|
96
|
-
this.logger.info(`Starting QueuedIVCVerifier with ${
|
|
97
|
-
this.queue.start(
|
|
94
|
+
this.logger.info(`Starting QueuedIVCVerifier with ${concurrency} concurrent verifiers`);
|
|
95
|
+
this.queue.start(concurrency);
|
|
98
96
|
}
|
|
99
97
|
|
|
100
98
|
public async verifyProof(tx: Tx): Promise<IVCProofVerificationResult> {
|
|
@@ -103,7 +101,8 @@ export class QueuedIVCVerifier implements ClientProtocolCircuitVerifier {
|
|
|
103
101
|
return result;
|
|
104
102
|
}
|
|
105
103
|
|
|
106
|
-
stop(): Promise<void> {
|
|
107
|
-
|
|
104
|
+
async stop(): Promise<void> {
|
|
105
|
+
await this.queue.end();
|
|
106
|
+
await this.verifier.stop();
|
|
108
107
|
}
|
|
109
108
|
}
|
package/dest/bb/execute.d.ts
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import type { LogFn, Logger } from '@aztec/foundation/log';
|
|
2
|
-
import type { AvmCircuitInputs, AvmCircuitPublicInputs } from '@aztec/stdlib/avm';
|
|
3
|
-
import type { UltraHonkFlavor } from '../honk.js';
|
|
4
|
-
export declare const VK_FILENAME = "vk";
|
|
5
|
-
export declare const PUBLIC_INPUTS_FILENAME = "public_inputs";
|
|
6
|
-
export declare const PROOF_FILENAME = "proof";
|
|
7
|
-
export declare const AVM_INPUTS_FILENAME = "avm_inputs.bin";
|
|
8
|
-
export declare const AVM_BYTECODE_FILENAME = "avm_bytecode.bin";
|
|
9
|
-
export declare const AVM_PUBLIC_INPUTS_FILENAME = "avm_public_inputs.bin";
|
|
10
|
-
export declare enum BB_RESULT {
|
|
11
|
-
SUCCESS = 0,
|
|
12
|
-
FAILURE = 1,
|
|
13
|
-
ALREADY_PRESENT = 2
|
|
14
|
-
}
|
|
15
|
-
export type BBSuccess = {
|
|
16
|
-
status: BB_RESULT.SUCCESS | BB_RESULT.ALREADY_PRESENT;
|
|
17
|
-
durationMs: number;
|
|
18
|
-
/** Full path of the public key. */
|
|
19
|
-
pkPath?: string;
|
|
20
|
-
/** Base directory for the VKs (raw, fields). */
|
|
21
|
-
vkDirectoryPath?: string;
|
|
22
|
-
/** Full path of the proof. */
|
|
23
|
-
proofPath?: string;
|
|
24
|
-
/** Full path of the contract. */
|
|
25
|
-
contractPath?: string;
|
|
26
|
-
/** The number of gates in the circuit. */
|
|
27
|
-
circuitSize?: number;
|
|
28
|
-
};
|
|
29
|
-
export type BBFailure = {
|
|
30
|
-
status: BB_RESULT.FAILURE;
|
|
31
|
-
reason: string;
|
|
32
|
-
retry?: boolean;
|
|
33
|
-
};
|
|
34
|
-
export type BBResult = BBSuccess | BBFailure;
|
|
35
|
-
type BBExecResult = {
|
|
36
|
-
status: BB_RESULT;
|
|
37
|
-
exitCode: number;
|
|
38
|
-
signal: string | undefined;
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* Invokes the Barretenberg binary with the provided command and args
|
|
42
|
-
* @param pathToBB - The path to the BB binary
|
|
43
|
-
* @param command - The command to execute
|
|
44
|
-
* @param args - The arguments to pass
|
|
45
|
-
* @param logger - A log function
|
|
46
|
-
* @param timeout - An optional timeout before killing the BB process
|
|
47
|
-
* @param resultParser - An optional handler for detecting success or failure
|
|
48
|
-
* @returns The completed partial witness outputted from the circuit
|
|
49
|
-
*/
|
|
50
|
-
export declare function executeBB(pathToBB: string, command: string, args: string[], logger: LogFn, concurrency?: number, timeout?: number, resultParser?: (code: number) => code is 0): Promise<BBExecResult>;
|
|
51
|
-
export declare function executeBbChonkProof(pathToBB: string, workingDirectory: string, inputsPath: string, log: LogFn, writeVk?: boolean): Promise<BBFailure | BBSuccess>;
|
|
52
|
-
/**
|
|
53
|
-
* Used for generating proofs of noir circuits.
|
|
54
|
-
* It is assumed that the working directory is a temporary and/or random directory used solely for generating this proof.
|
|
55
|
-
* @param pathToBB - The full path to the bb binary
|
|
56
|
-
* @param workingDirectory - A working directory for use by bb
|
|
57
|
-
* @param circuitName - An identifier for the circuit
|
|
58
|
-
* @param bytecode - The compiled circuit bytecode
|
|
59
|
-
* @param inputWitnessFile - The circuit input witness
|
|
60
|
-
* @param log - A logging function
|
|
61
|
-
* @returns An object containing a result indication, the location of the proof and the duration taken
|
|
62
|
-
*/
|
|
63
|
-
export declare function generateProof(pathToBB: string, workingDirectory: string, circuitName: string, bytecode: Buffer, verificationKey: Buffer, inputWitnessFile: string, flavor: UltraHonkFlavor, log: Logger): Promise<BBFailure | BBSuccess>;
|
|
64
|
-
/**
|
|
65
|
-
* Used for generating AVM proofs.
|
|
66
|
-
* It is assumed that the working directory is a temporary and/or random directory used solely for generating this proof.
|
|
67
|
-
* @param pathToBB - The full path to the bb binary
|
|
68
|
-
* @param workingDirectory - A working directory for use by bb
|
|
69
|
-
* @param input - The inputs for the public function to be proven
|
|
70
|
-
* @param logger - A logging function
|
|
71
|
-
* @param checkCircuitOnly - A boolean to toggle a "check-circuit only" operation instead of proving.
|
|
72
|
-
* @returns An object containing a result indication, the location of the proof and the duration taken
|
|
73
|
-
*/
|
|
74
|
-
export declare function generateAvmProof(pathToBB: string, workingDirectory: string, input: AvmCircuitInputs, logger: Logger, checkCircuitOnly?: boolean): Promise<BBFailure | BBSuccess>;
|
|
75
|
-
/**
|
|
76
|
-
* Used for verifying proofs of noir circuits
|
|
77
|
-
* @param pathToBB - The full path to the bb binary
|
|
78
|
-
* @param proofFullPath - The full path to the proof to be verified
|
|
79
|
-
* @param verificationKeyPath - The full path to the circuit verification key
|
|
80
|
-
* @param logger - A logger
|
|
81
|
-
* @returns An object containing a result indication and duration taken
|
|
82
|
-
*/
|
|
83
|
-
export declare function verifyProof(pathToBB: string, proofFullPath: string, verificationKeyPath: string, ultraHonkFlavor: UltraHonkFlavor, logger: Logger): Promise<BBFailure | BBSuccess>;
|
|
84
|
-
export declare function verifyAvmProof(pathToBB: string, workingDirectory: string, proofFullPath: string, publicInputs: AvmCircuitPublicInputs, logger: Logger): Promise<BBFailure | BBSuccess>;
|
|
85
|
-
/**
|
|
86
|
-
* Verifies a ChonkProof
|
|
87
|
-
* TODO(#7370) The verification keys should be supplied separately
|
|
88
|
-
* @param pathToBB - The full path to the bb binary
|
|
89
|
-
* @param targetPath - The path to the folder with the proof, accumulator, and verification keys
|
|
90
|
-
* @param logger - A logger
|
|
91
|
-
* @param concurrency - The number of threads to use for the verification
|
|
92
|
-
* @returns An object containing a result indication and duration taken
|
|
93
|
-
*/
|
|
94
|
-
export declare function verifyChonkProof(pathToBB: string, proofPath: string, keyPath: string, logger: Logger, concurrency?: number): Promise<BBFailure | BBSuccess>;
|
|
95
|
-
export declare function generateContractForVerificationKey(pathToBB: string, vkFilePath: string, contractPath: string, log: LogFn): Promise<BBFailure | BBSuccess>;
|
|
96
|
-
/**
|
|
97
|
-
* Compute bb gate count for a given circuit
|
|
98
|
-
* @param pathToBB - The full path to the bb binary
|
|
99
|
-
* @param workingDirectory - A temporary directory for writing the bytecode
|
|
100
|
-
* @param circuitName - The name of the circuit
|
|
101
|
-
* @param bytecode - The bytecode of the circuit
|
|
102
|
-
* @param flavor - The flavor of the backend - mega_honk or ultra_honk variants
|
|
103
|
-
* @returns An object containing the status, gate count, and time taken
|
|
104
|
-
*/
|
|
105
|
-
export declare function computeGateCountForCircuit(pathToBB: string, workingDirectory: string, circuitName: string, bytecode: Buffer, flavor: UltraHonkFlavor | 'mega_honk', log: LogFn): Promise<BBFailure | BBSuccess>;
|
|
106
|
-
export {};
|
|
107
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhlY3V0ZS5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2JiL2V4ZWN1dGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxLQUFLLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFBRSxNQUFNLHVCQUF1QixDQUFDO0FBRTNELE9BQU8sS0FBSyxFQUFFLGdCQUFnQixFQUFFLHNCQUFzQixFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFPbEYsT0FBTyxLQUFLLEVBQUUsZUFBZSxFQUFFLE1BQU0sWUFBWSxDQUFDO0FBRWxELGVBQU8sTUFBTSxXQUFXLE9BQU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