Skip to content

proveAggregation ​

Prove an aggregation: resolve the network's aggregation circuit artifacts (from its CircuitConfig), derive the calldata words from the witness, and prove them through the config's prover (default Rust/arkworks). The circuit is bound to the words: its public signals are [commitment, y, x], and the aggregator is sent words and commitment with the proof.

Import ​

ts
import { proveAggregation } from "@0xcurvy/curvy-sdk/actions";

Usage ​

ts
const witness = await generateAggregationCircuitInputsFromNotes({ ... });
const { proof, words, commitment } = await proveAggregation({ witness });

Signature ​

ts
function proveAggregation(parameters: ProveAggregationParameters): Promise<BoundProofResult>

Returns ​

Promise<BoundProofResult>

The action resolves or returns the value shown in the signature.

Parameters ​

witness ​

  • Type: AggregationCircuitInputs
  • Required: yes

The aggregation witness from generateAggregationCircuitInputsFromNotes. Input generation stays separate; this action only binds, flattens + proves.

ts
const result = await proveAggregation({
  witness, 
});

networkSlug ​

  • Type: string
  • Required: no

Network whose deployed aggregation circuit to prove against; defaults to the active network.

ts
const result = await proveAggregation({
  witness,
  networkSlug, 
});

signal ​

  • Type: AbortSignal
  • Required: no

Cancel artifact loading and queued proof generation.

ts
const result = await proveAggregation({
  witness,
  signal, 
});

config ​

  • Type: CurvyConfig
  • Required: no

Curvy config to use. Defaults to the ambient config.

ts
const result = await proveAggregation({
  witness,
  config, 
});

Errors ​

Errors from config resolution and the underlying SDK operation are propagated to the caller.

Source ​

packages/@0xcurvy/sdk/src/actions/proving/proveAggregation.ts