From 9823bd1b5238755e5029e4f383704c1629f33490 Mon Sep 17 00:00:00 2001 From: Fabian Gruber Date: Mon, 11 Nov 2024 10:19:44 +0100 Subject: [PATCH] docs: add info about merge of input arrays from multiple parties --- docs/co-circom-cli/split-input.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/docs/co-circom-cli/split-input.md b/docs/co-circom-cli/split-input.md index 31f404b..1f5b704 100644 --- a/docs/co-circom-cli/split-input.md +++ b/docs/co-circom-cli/split-input.md @@ -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