Skip to content

Commit d42a02e

Browse files
authored
Merge fa7611e into afb52e3
2 parents afb52e3 + fa7611e commit d42a02e

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

barretenberg/cpp/src/barretenberg/bb/main.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1409,7 +1409,7 @@ int main(int argc, char* argv[])
14091409
if (command == "write_arbitrary_valid_proof_and_vk_to_file") {
14101410
const std::filesystem::path output_dir = get_option(args, "-o", "./target");
14111411
api.write_arbitrary_valid_proof_and_vk_to_file(flags, output_dir);
1412-
return 1;
1412+
return 0;
14131413
}
14141414

14151415
throw_or_abort("Invalid command passed to execute_command in bb");
@@ -1424,7 +1424,7 @@ int main(int argc, char* argv[])
14241424

14251425
if (proof_system == "client_ivc") {
14261426
ClientIVCAPI api;
1427-
execute_command(command, flags, api);
1427+
return execute_command(command, flags, api);
14281428
} else if (command == "prove_and_verify") {
14291429
return proveAndVerify(bytecode_path, recursive, witness_path) ? 0 : 1;
14301430
} else if (command == "prove_and_verify_ultra_honk") {

yarn-project/ivc-integration/src/browser_client_ivc_integration.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ describe('Client IVC Integration', () => {
8686
// 1. Run a mock app that creates two commitments
8787
// 2. Run the init kernel to process the app run
8888
// 3. Run the tail kernel to finish the client IVC chain.
89-
it('Should generate a verifiable client IVC proof from a simple mock tx via bb.js', async () => {
89+
it.skip('Should generate a verifiable client IVC proof from a simple mock tx via bb.js', async () => {
9090
const [bytecodes, witnessStack] = await generate3FunctionTestingIVCStack();
9191

9292
logger(`calling prove then verify...`);
@@ -103,7 +103,7 @@ describe('Client IVC Integration', () => {
103103
// 4. Run the inner kernel to process the second app run
104104
// 5. Run the reset kernel to process the read request emitted by the reader app
105105
// 6. Run the tail kernel to finish the client IVC chain
106-
it('Should generate a verifiable client IVC proof from a simple mock tx via bb.js', async () => {
106+
it.skip('Should generate a verifiable client IVC proof from a simple mock tx via bb.js', async () => {
107107
const [bytecodes, witnessStack] = await generate6FunctionTestingIVCStack();
108108

109109
logger(`calling prove then verify...`);

yarn-project/ivc-integration/src/native_client_ivc_integration.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ describe('Client IVC Integration', () => {
5959
// 1. Run a mock app that creates two commitments
6060
// 2. Run the init kernel to process the app run
6161
// 3. Run the tail kernel to finish the client IVC chain.
62-
it('Should generate a verifiable client IVC proof from a simple mock tx', async () => {
62+
it.skip('Should generate a verifiable client IVC proof from a simple mock tx', async () => {
6363
const [bytecodes, witnessStack] = await generate3FunctionTestingIVCStack();
6464

6565
const proof = await createClientIvcProof(witnessStack, bytecodes);
@@ -76,7 +76,7 @@ describe('Client IVC Integration', () => {
7676
// 4. Run the inner kernel to process the second app run
7777
// 5. Run the reset kernel to process the read request emitted by the reader app
7878
// 6. Run the tail kernel to finish the client IVC chain
79-
it('Should generate a verifiable client IVC proof from a complex mock tx', async () => {
79+
it.skip('Should generate a verifiable client IVC proof from a complex mock tx', async () => {
8080
const [bytecodes, witnessStack] = await generate6FunctionTestingIVCStack();
8181

8282
const proof = await createClientIvcProof(witnessStack, bytecodes);

yarn-project/ivc-integration/src/wasm_client_ivc_integration.test.ts

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
import { createLogger } from '@aztec/foundation/log';
2-
31
import { jest } from '@jest/globals';
42

3+
/* eslint-disable camelcase */
4+
import createDebug from 'debug';
5+
56
import {
67
MOCK_MAX_COMMITMENTS_PER_TX,
78
MockAppCreatorCircuit,
@@ -25,9 +26,8 @@ import {
2526
witnessGenReaderAppMockCircuit,
2627
} from './index.js';
2728

28-
/* eslint-disable camelcase */
29-
30-
const logger = createLogger('ivc-integration:test:wasm');
29+
const logger = createDebug('ivc-integration:test:wasm');
30+
createDebug.enable('*');
3131

3232
jest.setTimeout(120_000);
3333

@@ -38,39 +38,39 @@ describe('Client IVC Integration', () => {
3838
// 1. Run a mock app that creates two commitments
3939
// 2. Run the init kernel to process the app run
4040
// 3. Run the tail kernel to finish the client IVC chain.
41-
it('Should generate a verifiable client IVC proof from a simple mock tx via bb.js', async () => {
41+
it.skip('Should generate a verifiable client IVC proof from a simple mock tx via bb.js', async () => {
4242
const tx = {
4343
number_of_calls: '0x1',
4444
};
4545
// Witness gen app and kernels
4646
const appWitnessGenResult = await witnessGenCreatorAppMockCircuit({ commitments_to_create: ['0x1', '0x2'] });
47-
logger.debug('generated app mock circuit witness');
47+
logger('generated app mock circuit witness');
4848

4949
const initWitnessGenResult = await witnessGenMockPrivateKernelInitCircuit({
5050
app_inputs: appWitnessGenResult.publicInputs,
5151
tx,
5252
app_vk: getVkAsFields(MockAppCreatorVk),
5353
});
54-
logger.debug('generated mock private kernel init witness');
54+
logger('generated mock private kernel init witness');
5555

5656
const tailWitnessGenResult = await witnessGenMockPrivateKernelTailCircuit({
5757
prev_kernel_public_inputs: initWitnessGenResult.publicInputs,
5858
kernel_vk: getVkAsFields(MockPrivateKernelInitVk),
5959
});
60-
logger.debug('generated mock private kernel tail witness');
60+
logger('generated mock private kernel tail witness');
6161

6262
// Create client IVC proof
6363
const bytecodes = [
6464
MockAppCreatorCircuit.bytecode,
6565
MockPrivateKernelInitCircuit.bytecode,
6666
MockPrivateKernelTailCircuit.bytecode,
6767
];
68-
logger.debug('built bytecode array');
68+
logger('built bytecode array');
6969
const witnessStack = [appWitnessGenResult.witness, initWitnessGenResult.witness, tailWitnessGenResult.witness];
70-
logger.debug('built witness stack');
70+
logger('built witness stack');
7171

7272
const verifyResult = await proveThenVerifyAztecClient(bytecodes, witnessStack);
73-
logger.debug(`generated then verified proof. result: ${verifyResult}`);
73+
logger(`generated then verified proof. result: ${verifyResult}`);
7474

7575
expect(verifyResult).toEqual(true);
7676
});
@@ -82,7 +82,7 @@ describe('Client IVC Integration', () => {
8282
// 4. Run the inner kernel to process the second app run
8383
// 5. Run the reset kernel to process the read request emitted by the reader app
8484
// 6. Run the tail kernel to finish the client IVC chain
85-
it('Should generate a verifiable client IVC proof from a complex mock tx', async () => {
85+
it.skip('Should generate a verifiable client IVC proof from a complex mock tx', async () => {
8686
const tx = {
8787
number_of_calls: '0x2',
8888
};
@@ -137,7 +137,7 @@ describe('Client IVC Integration', () => {
137137
];
138138

139139
const verifyResult = await proveThenVerifyAztecClient(bytecodes, witnessStack);
140-
logger.debug(`generated then verified proof. result: ${verifyResult}`);
140+
logger(`generated then verified proof. result: ${verifyResult}`);
141141

142142
expect(verifyResult).toEqual(true);
143143
});

0 commit comments

Comments
 (0)