Skip to content

feat!: (sequence of) Apps share a transcript until a kernel is encountered#15313

Merged
federicobarbacovi merged 8 commits into
merge-train/barretenbergfrom
fb/apps_share_transcript_until_a_kernel
Jun 27, 2025
Merged

feat!: (sequence of) Apps share a transcript until a kernel is encountered#15313
federicobarbacovi merged 8 commits into
merge-train/barretenbergfrom
fb/apps_share_transcript_until_a_kernel

Conversation

@federicobarbacovi

Copy link
Copy Markdown
Contributor

We make Apps share a transcript until a kernel is encountered. This is in preparation for the work on consistency checks.

@federicobarbacovi federicobarbacovi self-assigned this Jun 26, 2025
EXPECT_TRUE(ivc.prove_and_verify());
};

/**

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing as this was a duplicate of Basic

@federicobarbacovi federicobarbacovi marked this pull request as ready for review June 26, 2025 14:30
@federicobarbacovi federicobarbacovi changed the base branch from next to merge-train/barretenberg June 26, 2025 16:15

@ledwards2225 ledwards2225 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - couple of typos and a suggestion for a small design reconsideration

{
circuit.databus_propagation_data.is_kernel = true;

// Transcript for shared among recursive verification of K_{i-1} (kernel), A_{i,1} (app), .., A_{i, n} (app)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Transcript for shared among recursive verification of K_{i-1} (kernel), A_{i,1} (app), .., A_{i, n} (app)
// Transcript to be shared shared across recursive verification of K_{i-1} (kernel), A_{i,1} (app), .., A_{i, n} (app)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made it even more specific

Comment thread barretenberg/cpp/src/barretenberg/client_ivc/client_ivc.cpp Outdated
Comment thread barretenberg/cpp/src/barretenberg/client_ivc/client_ivc.cpp Outdated
bus_depot.propagate_return_data_commitments(circuit);

// Transcript for shared among K_{i} (kernel), A_{i+1,1} (app), .., A_{i+1, n} (app)
accumulation_transcript = std::make_shared<Transcript>();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok so I think placing the reset here works but I wonder if its logically the best place for it. An alternative would be doing this in accumulate based on the is_kernel flag in the VK. I think the latter makes the intent slightly clearer - what do you think?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with your suggestion. Note that the is_kernel flag at the moment is buried inside DatabusPropagationData. I opened an issue #1454 to investigate whether that's the correct place for it.

Comment thread barretenberg/cpp/src/barretenberg/client_ivc/client_ivc.hpp Outdated
@ludamad ludamad force-pushed the merge-train/barretenberg branch from d1c4ee7 to 6fd7599 Compare June 27, 2025 00:19
@AztecBot AztecBot force-pushed the merge-train/barretenberg branch from f2bf14f to a6a2ca0 Compare June 27, 2025 01:24
@ludamad ludamad force-pushed the merge-train/barretenberg branch from a6a2ca0 to c3d52d3 Compare June 27, 2025 01:25
@AztecBot AztecBot force-pushed the merge-train/barretenberg branch from 6538c96 to 53d2735 Compare June 27, 2025 01:44
@ludamad ludamad force-pushed the merge-train/barretenberg branch from 53d2735 to ff7f1aa Compare June 27, 2025 01:48
@AztecBot AztecBot force-pushed the merge-train/barretenberg branch 2 times, most recently from c0b053b to e3d7312 Compare June 27, 2025 02:03
@federicobarbacovi federicobarbacovi merged commit 3bdb488 into merge-train/barretenberg Jun 27, 2025
4 checks passed
@federicobarbacovi federicobarbacovi deleted the fb/apps_share_transcript_until_a_kernel branch June 27, 2025 08:42
github-merge-queue Bot pushed a commit that referenced this pull request Jul 2, 2025
See
[merge-train-readme.md](https://github.com/AztecProtocol/aztec-packages/blob/next/.github/workflows/merge-train-readme.md).

chore: update merge-train documentation
feat!: (sequence of) Apps share a transcript until a kernel is
encountered (#15313)
chore: bigfield todo fixes (#15202)
chore: remove insecure logic from ipa recursion (#14102)
chore: bigfield audit fixes that change circuits (#15205)
feat: stdlib::Proof (#15410)
fix: build bb for bench_ivc script (#15429)
chore: revert "feat: stdlib::Proof (#15410)" (#15431)
chore: unrevert stdlib proof (#15443)
chore: package vk hash with vk (#15318)
chore: fix avm build (#15448)
chore: skip building wasm for bench_ivc when NO_WASM=1 (#15462)
chore: add a link to audit PR template in default PR template (#15463)

---------

Co-authored-by: AztecBot <tech@aztecprotocol.com>
Co-authored-by: ludamad <adam.domurad@gmail.com>
Co-authored-by: federicobarbacovi <171914500+federicobarbacovi@users.noreply.github.com>
Co-authored-by: Suyash Bagad <suyash@aztecprotocol.com>
Co-authored-by: sergei iakovenko <105737703+iakovenkos@users.noreply.github.com>
Co-authored-by: ledwards2225 <98505400+ledwards2225@users.noreply.github.com>
Co-authored-by: Jonathan Hao <jonathan@aztec-labs.com>
Co-authored-by: Lucas Xia <lucasxia01@gmail.com>
github-merge-queue Bot pushed a commit that referenced this pull request Jul 2, 2025
See
[merge-train-readme.md](https://github.com/AztecProtocol/aztec-packages/blob/next/.github/workflows/merge-train-readme.md).

chore: update merge-train documentation
feat!: (sequence of) Apps share a transcript until a kernel is
encountered (#15313)
chore: bigfield todo fixes (#15202)
chore: remove insecure logic from ipa recursion (#14102)
chore: bigfield audit fixes that change circuits (#15205)
feat: stdlib::Proof (#15410)
fix: build bb for bench_ivc script (#15429)
chore: revert "feat: stdlib::Proof (#15410)" (#15431)
chore: unrevert stdlib proof (#15443)
chore: package vk hash with vk (#15318)
chore: fix avm build (#15448)
chore: skip building wasm for bench_ivc when NO_WASM=1 (#15462)
chore: add a link to audit PR template in default PR template (#15463)

---------

Co-authored-by: AztecBot <tech@aztecprotocol.com>
Co-authored-by: ludamad <adam.domurad@gmail.com>
Co-authored-by: federicobarbacovi <171914500+federicobarbacovi@users.noreply.github.com>
Co-authored-by: Suyash Bagad <suyash@aztecprotocol.com>
Co-authored-by: sergei iakovenko <105737703+iakovenkos@users.noreply.github.com>
Co-authored-by: ledwards2225 <98505400+ledwards2225@users.noreply.github.com>
Co-authored-by: Jonathan Hao <jonathan@aztec-labs.com>
Co-authored-by: Lucas Xia <lucasxia01@gmail.com>
danielntmd pushed a commit to danielntmd/aztec-packages that referenced this pull request Jul 16, 2025
See
[merge-train-readme.md](https://github.com/AztecProtocol/aztec-packages/blob/next/.github/workflows/merge-train-readme.md).

chore: update merge-train documentation
feat!: (sequence of) Apps share a transcript until a kernel is
encountered (AztecProtocol#15313)
chore: bigfield todo fixes (AztecProtocol#15202)
chore: remove insecure logic from ipa recursion (AztecProtocol#14102)
chore: bigfield audit fixes that change circuits (AztecProtocol#15205)
feat: stdlib::Proof (AztecProtocol#15410)
fix: build bb for bench_ivc script (AztecProtocol#15429)
chore: revert "feat: stdlib::Proof (AztecProtocol#15410)" (AztecProtocol#15431)
chore: unrevert stdlib proof (AztecProtocol#15443)
chore: package vk hash with vk (AztecProtocol#15318)
chore: fix avm build (AztecProtocol#15448)
chore: skip building wasm for bench_ivc when NO_WASM=1 (AztecProtocol#15462)
chore: add a link to audit PR template in default PR template (AztecProtocol#15463)

---------

Co-authored-by: AztecBot <tech@aztecprotocol.com>
Co-authored-by: ludamad <adam.domurad@gmail.com>
Co-authored-by: federicobarbacovi <171914500+federicobarbacovi@users.noreply.github.com>
Co-authored-by: Suyash Bagad <suyash@aztecprotocol.com>
Co-authored-by: sergei iakovenko <105737703+iakovenkos@users.noreply.github.com>
Co-authored-by: ledwards2225 <98505400+ledwards2225@users.noreply.github.com>
Co-authored-by: Jonathan Hao <jonathan@aztec-labs.com>
Co-authored-by: Lucas Xia <lucasxia01@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants