Skip to content
Open
Changes from all commits
Commits
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
22 changes: 22 additions & 0 deletions docs/co-circom-cli/split-input.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,28 @@ The above command takes the input `test_vectors/poseidon/input.json` for the cir

These shares can be handed to the 3 different MPC parties for the witness generation phase.

### Input Arrays

Elements in an input array can be provided by different parties by using the `?` character as placeholder for unknown inputs.

`input0.json`:

```json
{
"a": ["1", "?"]
}
```

`input1.json`:

```json
{
"a": ["?", "2"]
}
```

After sharing these inputs, they must be merged with [merge-input-shares](./merge-input-shares.md).

## Reference

```txt
Expand Down