Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
f386521
refactor(circuits)!: prove C4 one CRT limb at a time with unchanged c…
zahrajavar Nov 19, 2026
2dceaa2
docs(blueprint): follow the C4 limb chain
ctrlc03 Nov 19, 2026
dba08a4
refactor(circuits): name the folded C4 length apart from C4's public …
ctrlc03 Nov 19, 2026
7c5fe45
test(zk-build): hash the C4 limb keys, not the C6 Chonk keys, in the …
ctrlc03 Nov 19, 2026
6200539
test(zk-prover): pin the C4 limb key tree through both verifiers
ctrlc03 Nov 19, 2026
36e6168
refactor(circuits): drop the unchunked C4 struct the limb chain replaced
ctrlc03 Nov 19, 2026
6522886
docs(dkg): say c4ab_fold binds each C4's limb key tree
ctrlc03 Nov 19, 2026
ee5c5df
docs(zk-prover): show the C4 limb key tree in the C2-to-C4 link layout
ctrlc03 Nov 19, 2026
a4e88da
docs(blueprint): follow the C4_FOLDED_LEN lines in the node folds
ctrlc03 Nov 19, 2026
7a4e4ec
docs(zk-benchmarks): say the artifact check covers C4 limb circuits
ctrlc03 Nov 19, 2026
4af17cd
docs(circuits): say c4ab_fold binds each C4's limb key tree
ctrlc03 Nov 19, 2026
a89bb2f
fix(zk-prover): require both C4 outputs after a C2-to-C4 row
ctrlc03 Nov 19, 2026
a7448af
test(zk-benchmarks): count the three C4 limb cases in the configured …
ctrlc03 Nov 20, 2026
597fac1
fix(zk-prover): build the final C4 witness without the decrypted-shar…
Nov 20, 2026
7975f30
fix(zk): pin the C4 chain bindings and drop the stale C4 JSON
Nov 21, 2026
f7a9fc3
fix(zk-witness): reject C4 inputs whose share and commitment rows dif…
Nov 21, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions circuits/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ chunks, so its proof is the one peers and `c2ab_fold` consume, and its share com
unchunked C2's. Gossip and threshold signing use that final proof. `c2ab_fold` verifies the final
C2a and C2b proofs and hashes each one's chunk key tree into its key hash.

**C4** is proven the same way, one CRT limb per proof: `share_decryption` (**C4a**, **C4b**) is the
final circuit over `share_decryption_limb_0`, `_1` and `_2`, which each run C4's statement for one
limb and carry the aggregate commitment sponge between them. Its commitments equal the unchunked
C4's, so C6 is unchanged. `c4ab_fold` verifies the final C4a and C4b proofs and hashes each one's
limb key tree into its key hash.

### DKG (`bin/dkg/`)

| Path | ID | `CircuitName` | Role |
Expand All @@ -63,7 +69,10 @@ C2a and C2b proofs and hashes each one's chunk key tree into its key hash.
| `e_sm_share_computation_chain` | C2b chunk | `ESmShareComputationChain` | A chunk of C2b other than the last; non-ZK |
| `e_sm_share_computation_chain_last` | C2b chunk | `ESmShareComputationChainLast` | The last chunk of C2b |
| `share_encryption` | C3 | `ShareEncryption` | BFV encryption of shares under recipient keys |
| `share_decryption` | C4 | `DkgShareDecryption` | Decrypt shares; aggregate; commitments for P4 |
| `share_decryption` | C4 | `DkgShareDecryption` | Decrypt shares; aggregate; commitments for P4; verifies the limbs |
| `share_decryption_limb_0` | C4 limb | `DkgShareDecryptionLimb0` | CRT limb 0 of C4; non-ZK |
| `share_decryption_limb_1` | C4 limb | `DkgShareDecryptionLimb1` | CRT limb 1 of C4; non-ZK |
| `share_decryption_limb_2` | C4 limb | `DkgShareDecryptionLimb2` | CRT limb 2 of C4; non-ZK |

### Threshold (`bin/threshold/`)

Expand All @@ -82,7 +91,7 @@ C2a and C2b proofs and hashes each one's chunk key tree into its key hash.
| `c2ab_fold` | `C2abFold` | Folds C2a and C2b and binds each C2's chunk key tree into its key hash. |
| `c3_fold`, `c3_fold_kernel` | `C3Fold`, `C3FoldKernel` | Folds the C3 proofs of one branch in sequence. The kernel makes the first accumulator. |
| `c3ab_fold` | `C3abFold` | Folds the final secret key and smudging noise C3 folds. |
| `c4ab_fold` | `C4abFold` | Folds C4a and C4b. |
| `c4ab_fold` | `C4abFold` | Folds C4a and C4b and binds each C4's limb key tree into its key hash. |
| `node_fold` | `NodeFold` | Folds C0, C1, `c2ab_fold`, `c3ab_fold`, and `c4ab_fold` for one node. |
| `nodes_fold`, `nodes_fold_kernel` | `NodesFold`, `NodesFoldKernel` | Folds the H `node_fold` proofs in sequence. |
| `dkg_aggregator` | `DkgAggregator` | Verifies `nodes_fold` and C5. Its EVM proof goes to `publishCommittee`. |
Expand Down
3 changes: 3 additions & 0 deletions circuits/benchmarks/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
"dkg/e_sm_share_computation_chain_last",
"dkg/share_encryption",
"dkg/share_decryption",
"dkg/share_decryption_limb_0",
"dkg/share_decryption_limb_1",
"dkg/share_decryption_limb_2",
"threshold/user_data_encryption",
"threshold/pk_generation",
"threshold/pk_aggregation",
Expand Down
3 changes: 3 additions & 0 deletions circuits/bin/dkg/Nargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@ members = [
"sk_share_computation_chain_last",
"e_sm_share_computation_chain",
"e_sm_share_computation_chain_last",
"share_decryption_limb_0",
"share_decryption_limb_1",
"share_decryption_limb_2",
]

1 change: 1 addition & 0 deletions circuits/bin/dkg/share_decryption/Nargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ authors = ["Gnosis Guild / Interfold"]

[dependencies]
lib = { path = "../../../lib" }
bb_proof_verification = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v6.0.0", directory = "barretenberg/noir/bb_proof_verification" }
15 changes: 9 additions & 6 deletions circuits/bin/dkg/share_decryption/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# `share_decryption` — C4a / C4b

Decrypts incoming shares and aggregates them; outputs commitments consumed by **C6** (threshold
decryption).
decryption). It is the final circuit of a limb chain: it verifies the `share_decryption_limb_0`,
`_1` and `_2` proofs, which run C4's statement for one CRT limb each and carry the aggregate
commitment sponge between them. It links the limbs from a fresh sponge and returns the aggregate
commitment, followed by the hash of the limb keys.

| | |
| --------- | --------------------------------------------------------------------------------------- |
| **Core** | [`lib/src/core/dkg/share_decryption.nr`](../../../lib/src/core/dkg/share_decryption.nr) |
| **Index** | [Circuit package index](../../../README.md#circuit-package-index) |
| **Docs** | [Noir Circuits](../../../../docs/pages/build/noir-circuits.mdx) |
| | |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Core** | [`lib/src/core/dkg/share_decryption_chain.nr`](../../../lib/src/core/dkg/share_decryption_chain.nr), [`lib/src/core/dkg/share_decryption.nr`](../../../lib/src/core/dkg/share_decryption.nr) |
| **Index** | [Circuit package index](../../../README.md#circuit-package-index) |
| **Docs** | [Noir Circuits](../../../../docs/pages/build/noir-circuits.mdx) |
43 changes: 32 additions & 11 deletions circuits/bin/dkg/share_decryption/src/main.nr
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,40 @@
// without even the implied warranty of MERCHANTABILITY
// or FITNESS FOR A PARTICULAR PURPOSE.

use lib::configs::default::dkg::{
L_THRESHOLD, N, QIS_THRESHOLD, SHARE_DECRYPTION_BIT_AGG, SHARE_DECRYPTION_BIT_MSG,
};
//! C4 over its verified limb chain. Verifies the three limb proofs (each with its own key), links
//! them from the fresh aggregate sponge and returns the aggregate commitment the unchunked C4
//! returned. See `lib::core::dkg::share_decryption_chain`.
//!
//! Public: `[expected_commitments[H][L], agg_commitment, key_tree]`, where `key_tree` hashes the
//! three limb keys. The first `H * L + 1` fields are the unchunked C4's public inputs.

use bb_proof_verification::{UltraHonkProof, UltraHonkVerificationKey, verify_honk_proof_non_zk};
use lib::configs::default::dkg::{L_THRESHOLD, N, SHARE_DECRYPTION_BIT_AGG};
use lib::configs::default::H;
use lib::core::dkg::share_decryption::ShareDecryption;
use lib::math::polynomial::Polynomial;
use lib::core::dkg::share_decryption_chain::check_limb_chain;
use lib::math::commitments::compute_vk_hash;

fn main(
expected_commitments: pub [[Field; L_THRESHOLD]; H],
decrypted_shares: [[Polynomial<N>; L_THRESHOLD]; H],
) -> pub Field {
let share_decryption: ShareDecryption<N, L_THRESHOLD, H, SHARE_DECRYPTION_BIT_MSG, SHARE_DECRYPTION_BIT_AGG> =
ShareDecryption::new(expected_commitments, decrypted_shares);

share_decryption.execute(QIS_THRESHOLD)
limb_vks: [UltraHonkVerificationKey; L_THRESHOLD],
limb_key_hashes: [Field; L_THRESHOLD],
limb_proofs: [UltraHonkProof; L_THRESHOLD],
limb_links: [[Field; 2]; L_THRESHOLD],
) -> pub (Field, Field) {
// One circuit per limb: each limb starts the aggregate sponge at its own position.
std::static_assert(
L_THRESHOLD == 3,
"C4 has one limb circuit for each of three limbs",
);
for l in 0..L_THRESHOLD {
let mut public = [0; H + 2];
for party_idx in 0..H {
public[party_idx] = expected_commitments[party_idx][l];
}
public[H] = limb_links[l][0];
public[H + 1] = limb_links[l][1];
verify_honk_proof_non_zk(limb_vks[l], limb_proofs[l], public, limb_key_hashes[l]);
}
let agg_commitment = check_limb_chain::<N, L_THRESHOLD, SHARE_DECRYPTION_BIT_AGG>(limb_links);
(agg_commitment, compute_vk_hash(limb_key_hashes.as_vector()))
}
7 changes: 7 additions & 0 deletions circuits/bin/dkg/share_decryption_limb_0/Nargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[package]
name = "share_decryption_limb_0"
type = "bin"
authors = ["Gnosis Guild / Interfold"]

[dependencies]
lib = { path = "../../../lib" }
31 changes: 31 additions & 0 deletions circuits/bin/dkg/share_decryption_limb_0/src/main.nr
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// SPDX-License-Identifier: LGPL-3.0-only
//
// This file is provided WITHOUT ANY WARRANTY;
// without even the implied warranty of MERCHANTABILITY
// or FITNESS FOR A PARTICULAR PURPOSE.

//! Limb 0 of chunked C4: C4's statement for CRT limb 0, continuing the aggregate commitment's
//! sponge from `h_in`. See `lib::core::dkg::share_decryption_chain`.

use lib::configs::default::dkg::{
L_THRESHOLD, N, QIS_THRESHOLD, SHARE_DECRYPTION_BIT_AGG, SHARE_DECRYPTION_BIT_MSG,
};
use lib::configs::default::H;
use lib::core::dkg::share_decryption_chain::share_decryption_limb;
use lib::math::polynomial::Polynomial;
use lib::math::safe::STATE_SIZE;

fn main(
expected_commitments: pub [Field; H],
h_in: pub Field,
decrypted_shares: [Polynomial<N>; H],
state_in: [Field; STATE_SIZE],
) -> pub Field {
share_decryption_limb::<0, N, L_THRESHOLD, H, SHARE_DECRYPTION_BIT_MSG, SHARE_DECRYPTION_BIT_AGG>(
QIS_THRESHOLD,
expected_commitments,
decrypted_shares,
h_in,
state_in,
)
}
7 changes: 7 additions & 0 deletions circuits/bin/dkg/share_decryption_limb_1/Nargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[package]
name = "share_decryption_limb_1"
type = "bin"
authors = ["Gnosis Guild / Interfold"]

[dependencies]
lib = { path = "../../../lib" }
31 changes: 31 additions & 0 deletions circuits/bin/dkg/share_decryption_limb_1/src/main.nr
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// SPDX-License-Identifier: LGPL-3.0-only
//
// This file is provided WITHOUT ANY WARRANTY;
// without even the implied warranty of MERCHANTABILITY
// or FITNESS FOR A PARTICULAR PURPOSE.

//! Limb 1 of chunked C4: C4's statement for CRT limb 1, continuing the aggregate commitment's
//! sponge from `h_in`. See `lib::core::dkg::share_decryption_chain`.

use lib::configs::default::dkg::{
L_THRESHOLD, N, QIS_THRESHOLD, SHARE_DECRYPTION_BIT_AGG, SHARE_DECRYPTION_BIT_MSG,
};
use lib::configs::default::H;
use lib::core::dkg::share_decryption_chain::share_decryption_limb;
use lib::math::polynomial::Polynomial;
use lib::math::safe::STATE_SIZE;

fn main(
expected_commitments: pub [Field; H],
h_in: pub Field,
decrypted_shares: [Polynomial<N>; H],
state_in: [Field; STATE_SIZE],
) -> pub Field {
share_decryption_limb::<1, N, L_THRESHOLD, H, SHARE_DECRYPTION_BIT_MSG, SHARE_DECRYPTION_BIT_AGG>(
QIS_THRESHOLD,
expected_commitments,
decrypted_shares,
h_in,
state_in,
)
}
7 changes: 7 additions & 0 deletions circuits/bin/dkg/share_decryption_limb_2/Nargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[package]
name = "share_decryption_limb_2"
type = "bin"
authors = ["Gnosis Guild / Interfold"]

[dependencies]
lib = { path = "../../../lib" }
31 changes: 31 additions & 0 deletions circuits/bin/dkg/share_decryption_limb_2/src/main.nr
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// SPDX-License-Identifier: LGPL-3.0-only
//
// This file is provided WITHOUT ANY WARRANTY;
// without even the implied warranty of MERCHANTABILITY
// or FITNESS FOR A PARTICULAR PURPOSE.

//! Limb 2 of chunked C4: C4's statement for CRT limb 2, continuing the aggregate commitment's
//! sponge from `h_in`. See `lib::core::dkg::share_decryption_chain`.

use lib::configs::default::dkg::{
L_THRESHOLD, N, QIS_THRESHOLD, SHARE_DECRYPTION_BIT_AGG, SHARE_DECRYPTION_BIT_MSG,
};
use lib::configs::default::H;
use lib::core::dkg::share_decryption_chain::share_decryption_limb;
use lib::math::polynomial::Polynomial;
use lib::math::safe::STATE_SIZE;

fn main(
expected_commitments: pub [Field; H],
h_in: pub Field,
decrypted_shares: [Polynomial<N>; H],
state_in: [Field; STATE_SIZE],
) -> pub Field {
share_decryption_limb::<2, N, L_THRESHOLD, H, SHARE_DECRYPTION_BIT_MSG, SHARE_DECRYPTION_BIT_AGG>(
QIS_THRESHOLD,
expected_commitments,
decrypted_shares,
h_in,
state_in,
)
}
20 changes: 14 additions & 6 deletions circuits/bin/recursive_aggregation/c4ab_fold/src/main.nr
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,19 @@
// or FITNESS FOR A PARTICULAR PURPOSE.

//! Combines C4a + C4b (two ZK Honk proofs using the same C4 binary).
//!
//! Each C4 is the final circuit of a limb chain and exposes the hash of its limb keys last. That
//! hash enters this fold's key hash next to the C4 key, so the VK tree covers every limb circuit.
//! The outputs keep the unchunked C4 layout `node_fold` reads.

use bb_proof_verification::{UltraHonkVerificationKey, UltraHonkZKProof, verify_honk_proof};
use lib::configs::default::dkg::L_THRESHOLD;
use lib::configs::default::H;
use lib::math::commitments::compute_vk_hash;

/// C4 public IO: `expected_commitments` (flattened) + `agg_commit`.
pub global C4_PUBLIC_LEN: u32 = (H * L_THRESHOLD) + 1;

/// Two key-hash params + combined key hash + two C4-sized public vectors (a and b).
pub global C4AB_FOLD_PUBLIC_LEN: u32 = 3 + (2 * C4_PUBLIC_LEN);
/// C4 public IO: `expected_commitments` (flattened) + `agg_commit` + the limb chain's key tree.
pub global C4_PUBLIC_LEN: u32 = (H * L_THRESHOLD) + 2;
pub global C4_KEY_TREE_IDX: u32 = C4_PUBLIC_LEN - 1;

fn main(
c4a_vk: UltraHonkVerificationKey,
Expand All @@ -30,7 +32,13 @@ fn main(
verify_honk_proof(c4a_vk, c4a_proof, c4a_public, c4a_key_hash);
verify_honk_proof(c4b_vk, c4b_proof, c4b_public, c4b_key_hash);

let vk_hashes = [c4a_key_hash, c4b_key_hash].as_vector();
let vk_hashes = [
c4a_key_hash,
c4a_public[C4_KEY_TREE_IDX],
c4b_key_hash,
c4b_public[C4_KEY_TREE_IDX],
]
.as_vector();
let key_hash = compute_vk_hash(vk_hashes);

let mut c4a_expected: [[Field; L_THRESHOLD]; H] = [[0; L_THRESHOLD]; H];
Expand Down
10 changes: 6 additions & 4 deletions circuits/bin/recursive_aggregation/node_fold/src/main.nr
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@ pub global C3_SLOTS: u32 = N_PARTIES * L_THRESHOLD;
pub global C3AB_FOLD_PUBLIC_LEN: u32 = 2 + 1 + (6 * C3_SLOTS);
/// Prefix (two inner key hashes + combined hash) before six `C3_SLOTS` columns in `c3ab_fold` public IO.
pub global C3AB_PREFIX_LEN: u32 = C3AB_FOLD_PUBLIC_LEN - (6 * C3_SLOTS);
pub global C4_PUBLIC_LEN: u32 = (H * L_THRESHOLD) + 1;
pub global C4AB_FOLD_PUBLIC_LEN: u32 = 3 + (2 * C4_PUBLIC_LEN);
/// C4's public inputs as `c4ab_fold` passes them on, likewise without the key tree
/// (`c4ab_fold::C4_PUBLIC_LEN` is one field more).
pub global C4_FOLDED_LEN: u32 = (H * L_THRESHOLD) + 1;
pub global C4AB_FOLD_PUBLIC_LEN: u32 = 3 + (2 * C4_FOLDED_LEN);

/// Key-hash prefix length in `c2ab_fold` / `c4ab_fold` flattened public IO.
pub global C2AB_PREFIX_LEN: u32 = C2AB_FOLD_PUBLIC_LEN - (2 * C2_FOLDED_LEN);
pub global C4AB_PREFIX_LEN: u32 = C4AB_FOLD_PUBLIC_LEN - (2 * C4_PUBLIC_LEN);
pub global C4AB_PREFIX_LEN: u32 = C4AB_FOLD_PUBLIC_LEN - (2 * C4_FOLDED_LEN);

/// Inner C2 / C4 column offsets inside `c2ab_public` / `c4ab_public`
/// (parallel to `NF_*` in `dkg_aggregator`; keep in sync).
Expand All @@ -38,7 +40,7 @@ pub global C2A_SHARES_START: u32 = C2A_INNER_START + 1;
pub global C2B_SHARES_START: u32 = C2B_INNER_START + 1;

pub global C4A_INNER_START: u32 = C4AB_PREFIX_LEN;
pub global C4B_INNER_START: u32 = C4AB_PREFIX_LEN + C4_PUBLIC_LEN;
pub global C4B_INNER_START: u32 = C4AB_PREFIX_LEN + C4_FOLDED_LEN;
pub global SK_AGG_INDEX: u32 = C4A_INNER_START + (H * L_THRESHOLD);
pub global ESM_AGG_INDEX: u32 = C4B_INNER_START + (H * L_THRESHOLD);

Expand Down
6 changes: 4 additions & 2 deletions circuits/bin/recursive_aggregation/nodes_fold/src/main.nr
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ pub global C2AB_FOLD_PUBLIC_LEN: u32 = 3 + (2 * C2_FOLDED_LEN);
/// Must match `c3ab_fold::C3AB_FOLD_PUBLIC_LEN` (one C3 slot per party and CRT limb).
pub global C3_SLOTS: u32 = N_PARTIES * L_THRESHOLD;
pub global C3AB_FOLD_PUBLIC_LEN: u32 = 2 + 1 + (6 * C3_SLOTS);
pub global C4_PUBLIC_LEN: u32 = (H * L_THRESHOLD) + 1;
pub global C4AB_FOLD_PUBLIC_LEN: u32 = 3 + (2 * C4_PUBLIC_LEN);
/// C4's public inputs as `c4ab_fold` passes them on, likewise without the key tree
/// (`c4ab_fold::C4_PUBLIC_LEN` is one field more).
pub global C4_FOLDED_LEN: u32 = (H * L_THRESHOLD) + 1;
pub global C4AB_FOLD_PUBLIC_LEN: u32 = 3 + (2 * C4_FOLDED_LEN);

/// Must match `node_fold::NODE_FOLD_PUBLIC_LEN`.
pub global NODE_FOLD_PUBLIC_LEN: u32 = 11 + N_PARTIES + (2 * (N_PARTIES + H) * L_THRESHOLD);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ pub global C2AB_FOLD_PUBLIC_LEN: u32 = 3 + (2 * C2_FOLDED_LEN);
/// Must match `c3ab_fold::C3AB_FOLD_PUBLIC_LEN` (one C3 slot per party and CRT limb).
pub global C3_SLOTS: u32 = N_PARTIES * L_THRESHOLD;
pub global C3AB_FOLD_PUBLIC_LEN: u32 = 2 + 1 + (6 * C3_SLOTS);
pub global C4_PUBLIC_LEN: u32 = (H * L_THRESHOLD) + 1;
pub global C4AB_FOLD_PUBLIC_LEN: u32 = 3 + (2 * C4_PUBLIC_LEN);
/// C4's public inputs as `c4ab_fold` passes them on, likewise without the key tree
/// (`c4ab_fold::C4_PUBLIC_LEN` is one field more).
pub global C4_FOLDED_LEN: u32 = (H * L_THRESHOLD) + 1;
pub global C4AB_FOLD_PUBLIC_LEN: u32 = 3 + (2 * C4_FOLDED_LEN);

/// Must match `node_fold::NODE_FOLD_PUBLIC_LEN`.
pub global NODE_FOLD_PUBLIC_LEN: u32 = 11 + N_PARTIES + (2 * (N_PARTIES + H) * L_THRESHOLD);
Expand Down
1 change: 1 addition & 0 deletions circuits/lib/src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ flowchart LR
| `dkg/share_computation_chain.nr` | C2a / C2b | Chunk chain over C2's coefficient ranges: chunk statements, SAFE sponge links, and the final circuit's checks |
| `dkg/share_encryption` | C3 | Encrypt share under recipient pk |
| `dkg/share_decryption` | C4 | Decrypt and aggregate |
| `dkg/share_decryption_chain.nr` | C4 | Limb chain over C4's CRT limbs: the limb statement, SAFE sponge links, and the final circuit's checks |
| `threshold/pk_generation` | C1 | TrBFV contribution |
| `threshold/pk_aggregation` | C5 | Aggregate pk shares |
| `threshold/user_data_encryption_ct0` / `ct1` | P3 | User encryption legs; `bin/threshold/user_data_encryption` runs both |
Expand Down
1 change: 1 addition & 0 deletions circuits/lib/src/core/dkg/mod.nr
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ pub mod share_computation;
pub mod share_computation_chain;
pub mod share_encryption;
pub mod share_decryption;
pub mod share_decryption_chain;
Loading
Loading