From b9163498783d7edb439521cfaa6d5b689133f438 Mon Sep 17 00:00:00 2001 From: Dimasik Kolezhniuk Date: Fri, 21 Jun 2024 09:58:32 +0200 Subject: [PATCH 1/3] Staging trusted setup Iden3 circuits --- .../p0tionConfig.json | 115 ++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 ceremonies/iden3-trusted-setup-ceremony/p0tionConfig.json diff --git a/ceremonies/iden3-trusted-setup-ceremony/p0tionConfig.json b/ceremonies/iden3-trusted-setup-ceremony/p0tionConfig.json new file mode 100644 index 0000000..dbf0755 --- /dev/null +++ b/ceremonies/iden3-trusted-setup-ceremony/p0tionConfig.json @@ -0,0 +1,115 @@ +{ + "title": "Iden3 Circuits V3 Trusted Setup Ceremony Staging", + "description": "This is a trusted setup ceremony for the Rate-Limiting Nullifier protocol", + "startDate": "2024-06-21T12:30:00", + "endDate": "2024-07-31T00:00:00", + "timeoutMechanismType": "FIXED", + "penalty": 3, + "circuits": [ + { + "description": "AuthV3 Circuit", + "compiler": { + "version": "2.1.1", + "commitHash": "127414e9088cc017a357233f30f3fd7d91a8906c" + }, + "template": { + "source": "https://github.com/iden3/circuits/blob/develop/circuits/authV3.circom", + "commitHash": "f97118a19fb647a5b3c81b04afc1d10cf9ba7b84", + "paramsConfiguration": [ + 40, + 64 + ] + }, + "verification": { + "cfOrVm": "CF" + }, + "artifacts": { + "r1csStoragePath": "https://iden3-circuits-bucket.s3.eu-west-1.amazonaws.com/trusted_setup/AuthV3/circuit.r1cs", + "wasmStoragePath": "https://iden3-circuits-bucket.s3.eu-west-1.amazonaws.com/trusted_setup/AuthV3/circuit.wasm" + }, + "name": "AuthV3", + "fixedTimeWindow": 3, + "sequencePosition": 1 + }, + { + "description": "credentialAtomicQueryV3 Circuit", + "compiler": { + "version": "2.1.1", + "commitHash": "127414e9088cc017a357233f30f3fd7d91a8906c" + }, + "template": { + "source": "https://github.com/iden3/circuits/blob/develop/circuits/credentialAtomicQueryV3.circom", + "commitHash": "f97118a19fb647a5b3c81b04afc1d10cf9ba7b84", + "paramsConfiguration": [ + 40, + 32, + 64 + ] + }, + "verification": { + "cfOrVm": "CF" + }, + "artifacts": { + "r1csStoragePath": "https://iden3-circuits-bucket.s3.eu-west-1.amazonaws.com/trusted_setup/credentialAtomicQueryV3/circuit.r1cs", + "wasmStoragePath": "https://iden3-circuits-bucket.s3.eu-west-1.amazonaws.com/trusted_setup/credentialAtomicQueryV3/circuit.wasm" + }, + "name": "credentialAtomicQueryV3", + "fixedTimeWindow": 3, + "sequencePosition": 1 + }, + { + "description": "credentialAtomicQueryV3OnChain Circuit", + "compiler": { + "version": "2.1.1", + "commitHash": "127414e9088cc017a357233f30f3fd7d91a8906c" + }, + "template": { + "source": "https://github.com/iden3/circuits/blob/develop/circuits/credentialAtomicQueryV3OnChain.circom", + "commitHash": "f97118a19fb647a5b3c81b04afc1d10cf9ba7b84", + "paramsConfiguration": [ + 40, + 32, + 64, + 40, + 64 + ] + }, + "verification": { + "cfOrVm": "CF" + }, + "artifacts": { + "r1csStoragePath": "https://iden3-circuits-bucket.s3.eu-west-1.amazonaws.com/trusted_setup/credentialAtomicQueryV3OnChain/circuit.r1cs", + "wasmStoragePath": "https://iden3-circuits-bucket.s3.eu-west-1.amazonaws.com/trusted_setup/credentialAtomicQueryV3OnChain/circuit.wasm" + }, + "name": "credentialAtomicQueryV3OnChain", + "fixedTimeWindow": 3, + "sequencePosition": 1 + }, + { + "description": "linkedMultiQuery10 Circuit", + "compiler": { + "version": "2.1.1", + "commitHash": "127414e9088cc017a357233f30f3fd7d91a8906c" + }, + "template": { + "source": "https://github.com/iden3/circuits/blob/develop/circuits/linkedMultiQuery10.circom", + "commitHash": "f97118a19fb647a5b3c81b04afc1d10cf9ba7b84", + "paramsConfiguration": [ + 10, + 32, + 64 + ] + }, + "verification": { + "cfOrVm": "CF" + }, + "artifacts": { + "r1csStoragePath": "https://iden3-circuits-bucket.s3.eu-west-1.amazonaws.com/trusted_setup/linkedMultiQuery10/circuit.r1cs", + "wasmStoragePath": "https://iden3-circuits-bucket.s3.eu-west-1.amazonaws.com/trusted_setup/linkedMultiQuery10/circuit.wasm" + }, + "name": "linkedMultiQuery10", + "fixedTimeWindow": 3, + "sequencePosition": 1 + } + ] +} From 89b30dd5459e43140a76a4064d8dfb2cf21d8688 Mon Sep 17 00:00:00 2001 From: Dimasik Kolezhniuk Date: Sat, 22 Jun 2024 08:20:39 +0200 Subject: [PATCH 2/3] Fix sequencePosition --- ceremonies/iden3-trusted-setup-ceremony/p0tionConfig.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ceremonies/iden3-trusted-setup-ceremony/p0tionConfig.json b/ceremonies/iden3-trusted-setup-ceremony/p0tionConfig.json index dbf0755..c9c1f50 100644 --- a/ceremonies/iden3-trusted-setup-ceremony/p0tionConfig.json +++ b/ceremonies/iden3-trusted-setup-ceremony/p0tionConfig.json @@ -55,7 +55,7 @@ }, "name": "credentialAtomicQueryV3", "fixedTimeWindow": 3, - "sequencePosition": 1 + "sequencePosition": 2 }, { "description": "credentialAtomicQueryV3OnChain Circuit", @@ -83,7 +83,7 @@ }, "name": "credentialAtomicQueryV3OnChain", "fixedTimeWindow": 3, - "sequencePosition": 1 + "sequencePosition": 3 }, { "description": "linkedMultiQuery10 Circuit", @@ -109,7 +109,7 @@ }, "name": "linkedMultiQuery10", "fixedTimeWindow": 3, - "sequencePosition": 1 + "sequencePosition": 4 } ] } From 102417b709badc013222f0da73d760e62f36674a Mon Sep 17 00:00:00 2001 From: Dimasik Kolezhniuk Date: Thu, 25 Jul 2024 18:33:50 +0200 Subject: [PATCH 3/3] Add custom depth size circuits for trusted setup --- .../p0tionConfig.json | 275 ++++++++++++++++-- 1 file changed, 255 insertions(+), 20 deletions(-) diff --git a/ceremonies/iden3-trusted-setup-ceremony/p0tionConfig.json b/ceremonies/iden3-trusted-setup-ceremony/p0tionConfig.json index c9c1f50..6def635 100644 --- a/ceremonies/iden3-trusted-setup-ceremony/p0tionConfig.json +++ b/ceremonies/iden3-trusted-setup-ceremony/p0tionConfig.json @@ -1,8 +1,8 @@ { - "title": "Iden3 Circuits V3 Trusted Setup Ceremony Staging", - "description": "This is a trusted setup ceremony for the Rate-Limiting Nullifier protocol", - "startDate": "2024-06-21T12:30:00", - "endDate": "2024-07-31T00:00:00", + "title": "iden3-trusted-setup-ceremony-v3-circuits", + "description": "This is a trusted setup ceremony for the Iden3 Circuits", + "startDate": "2024-07-31T10:30:00", + "endDate": "2024-08-16T00:00:00", "timeoutMechanismType": "FIXED", "penalty": 3, "circuits": [ @@ -10,10 +10,10 @@ "description": "AuthV3 Circuit", "compiler": { "version": "2.1.1", - "commitHash": "127414e9088cc017a357233f30f3fd7d91a8906c" + "commitHash": "a206acb2c1e1a38a795132a6758819dbd53ae898" }, "template": { - "source": "https://github.com/iden3/circuits/blob/develop/circuits/authV3.circom", + "source": "https://github.com/iden3/circuits/blob/feature/trusted-setup-sizes/circuits/authV3.circom", "commitHash": "f97118a19fb647a5b3c81b04afc1d10cf9ba7b84", "paramsConfiguration": [ 40, @@ -24,21 +24,96 @@ "cfOrVm": "CF" }, "artifacts": { - "r1csStoragePath": "https://iden3-circuits-bucket.s3.eu-west-1.amazonaws.com/trusted_setup/AuthV3/circuit.r1cs", - "wasmStoragePath": "https://iden3-circuits-bucket.s3.eu-west-1.amazonaws.com/trusted_setup/AuthV3/circuit.wasm" + "r1csStoragePath": "https://iden3-circuits-bucket.s3.eu-west-1.amazonaws.com/trusted_setup/authV3/circuit.r1cs", + "wasmStoragePath": "https://iden3-circuits-bucket.s3.eu-west-1.amazonaws.com/trusted_setup/authV3/circuit.wasm" }, "name": "AuthV3", "fixedTimeWindow": 3, "sequencePosition": 1 }, { - "description": "credentialAtomicQueryV3 Circuit", + "description": "AuthV3 Circuit 8 IdOwnershipLevels, 16 onChainLevels", "compiler": { "version": "2.1.1", - "commitHash": "127414e9088cc017a357233f30f3fd7d91a8906c" + "commitHash": "a206acb2c1e1a38a795132a6758819dbd53ae898" }, "template": { - "source": "https://github.com/iden3/circuits/blob/develop/circuits/credentialAtomicQueryV3.circom", + "source": "https://github.com/iden3/circuits/blob/feature/trusted-setup-sizes/circuits/authV3-8-16.circom", + "commitHash": "f97118a19fb647a5b3c81b04afc1d10cf9ba7b84", + "paramsConfiguration": [ + 8, + 16 + ] + }, + "verification": { + "cfOrVm": "CF" + }, + "artifacts": { + "r1csStoragePath": "https://iden3-circuits-bucket.s3.eu-west-1.amazonaws.com/trusted_setup/authV3-8-16/circuit.r1cs", + "wasmStoragePath": "https://iden3-circuits-bucket.s3.eu-west-1.amazonaws.com/trusted_setup/authV3-8-16/circuit.wasm" + }, + "name": "authV3-8-16", + "fixedTimeWindow": 3, + "sequencePosition": 2 + }, + { + "description": "AuthV3 Circuit 8 IdOwnershipLevels, 32 onChainLevels", + "compiler": { + "version": "2.1.1", + "commitHash": "a206acb2c1e1a38a795132a6758819dbd53ae898" + }, + "template": { + "source": "https://github.com/iden3/circuits/blob/feature/trusted-setup-sizes/circuits/authV3-8-32.circom", + "commitHash": "f97118a19fb647a5b3c81b04afc1d10cf9ba7b84", + "paramsConfiguration": [ + 8, + 32 + ] + }, + "verification": { + "cfOrVm": "CF" + }, + "artifacts": { + "r1csStoragePath": "https://iden3-circuits-bucket.s3.eu-west-1.amazonaws.com/trusted_setup/authV3-8-32/circuit.r1cs", + "wasmStoragePath": "https://iden3-circuits-bucket.s3.eu-west-1.amazonaws.com/trusted_setup/authV3-8-32/circuit.wasm" + }, + "name": "authV3-8-32", + "fixedTimeWindow": 3, + "sequencePosition": 3 + }, + { + "description": "AuthV3 Circuit 16 IdOwnershipLevels, 32 onChainLevels", + "compiler": { + "version": "2.1.1", + "commitHash": "a206acb2c1e1a38a795132a6758819dbd53ae898" + }, + "template": { + "source": "https://github.com/iden3/circuits/blob/feature/trusted-setup-sizes/circuits/authV3-16-32.circom", + "commitHash": "f97118a19fb647a5b3c81b04afc1d10cf9ba7b84", + "paramsConfiguration": [ + 16, + 32 + ] + }, + "verification": { + "cfOrVm": "CF" + }, + "artifacts": { + "r1csStoragePath": "https://iden3-circuits-bucket.s3.eu-west-1.amazonaws.com/trusted_setup/authV3-16-32/circuit.r1cs", + "wasmStoragePath": "https://iden3-circuits-bucket.s3.eu-west-1.amazonaws.com/trusted_setup/authV3-16-32/circuit.wasm" + }, + "name": "authV3-16-32", + "fixedTimeWindow": 3, + "sequencePosition": 4 + }, + { + "description": "credentialAtomicQueryV3 circuit 40 issuerLevels, 32 claimLevels, 64 maxValueArraySize", + "compiler": { + "version": "2.1.1", + "commitHash": "a206acb2c1e1a38a795132a6758819dbd53ae898" + }, + "template": { + "source": "https://github.com/iden3/circuits/blob/feature/trusted-setup-sizes/circuits/credentialAtomicQueryV3.circom", "commitHash": "f97118a19fb647a5b3c81b04afc1d10cf9ba7b84", "paramsConfiguration": [ 40, @@ -55,16 +130,42 @@ }, "name": "credentialAtomicQueryV3", "fixedTimeWindow": 3, - "sequencePosition": 2 + "sequencePosition": 5 }, { - "description": "credentialAtomicQueryV3OnChain Circuit", + "description": "credentialAtomicQueryV3 circuit 16 issuerLevels, 16 claimLevels, 64 maxValueArraySize", "compiler": { "version": "2.1.1", - "commitHash": "127414e9088cc017a357233f30f3fd7d91a8906c" + "commitHash": "a206acb2c1e1a38a795132a6758819dbd53ae898" }, "template": { - "source": "https://github.com/iden3/circuits/blob/develop/circuits/credentialAtomicQueryV3OnChain.circom", + "source": "https://github.com/iden3/circuits/blob/feature/trusted-setup-sizes/circuits/credentialAtomicQueryV3-16-16-64.circom", + "commitHash": "f97118a19fb647a5b3c81b04afc1d10cf9ba7b84", + "paramsConfiguration": [ + 16, + 16, + 64 + ] + }, + "verification": { + "cfOrVm": "CF" + }, + "artifacts": { + "r1csStoragePath": "https://iden3-circuits-bucket.s3.eu-west-1.amazonaws.com/trusted_setup/credentialAtomicQueryV3-16-16-64/circuit.r1cs", + "wasmStoragePath": "https://iden3-circuits-bucket.s3.eu-west-1.amazonaws.com/trusted_setup/credentialAtomicQueryV3-16-16-64/circuit.wasm" + }, + "name": "credentialAtomicQueryV3-16-16-64", + "fixedTimeWindow": 3, + "sequencePosition": 6 + }, + { + "description": "credentialAtomicQueryV3OnChain сircuit 40 issuerLevels, 32 claimLevels, 64 maxValueArraySize, 40 idOwnershipLevels, 64 onChainLevels", + "compiler": { + "version": "2.1.1", + "commitHash": "a206acb2c1e1a38a795132a6758819dbd53ae898" + }, + "template": { + "source": "https://github.com/iden3/circuits/blob/feature/trusted-setup-sizes/circuits/credentialAtomicQueryV3OnChain.circom", "commitHash": "f97118a19fb647a5b3c81b04afc1d10cf9ba7b84", "paramsConfiguration": [ 40, @@ -83,16 +184,72 @@ }, "name": "credentialAtomicQueryV3OnChain", "fixedTimeWindow": 3, - "sequencePosition": 3 + "sequencePosition": 7 + }, + { + "description": "credentialAtomicQueryV3OnChain-16-16-64-16-16 сircuit 16 issuerLevels, 16 claimLevels, 64 maxValueArraySize, 16 idOwnershipLevels, 16 onChainLevels", + "compiler": { + "version": "2.1.1", + "commitHash": "a206acb2c1e1a38a795132a6758819dbd53ae898" + }, + "template": { + "source": "https://github.com/iden3/circuits/blob/feature/trusted-setup-sizes/circuits/credentialAtomicQueryV3OnChain-16-16-64-16-16.circom", + "commitHash": "f97118a19fb647a5b3c81b04afc1d10cf9ba7b84", + "paramsConfiguration": [ + 16, + 16, + 64, + 16, + 16 + ] + }, + "verification": { + "cfOrVm": "CF" + }, + "artifacts": { + "r1csStoragePath": "https://iden3-circuits-bucket.s3.eu-west-1.amazonaws.com/trusted_setup/credentialAtomicQueryV3OnChain-16-16-64-16-16/circuit.r1cs", + "wasmStoragePath": "https://iden3-circuits-bucket.s3.eu-west-1.amazonaws.com/trusted_setup/credentialAtomicQueryV3OnChain-16-16-64-16-16/circuit.wasm" + }, + "name": "credentialAtomicQueryV3OnChain-16-16-64-16-16", + "fixedTimeWindow": 3, + "sequencePosition": 8 + }, + { + "description": "credentialAtomicQueryV3OnChain-16-16-64-16-32 сircuit 16 issuerLevels, 16 claimLevels, 64 maxValueArraySize, 16 idOwnershipLevels, 32 onChainLevels", + "compiler": { + "version": "2.1.1", + "commitHash": "a206acb2c1e1a38a795132a6758819dbd53ae898" + }, + "template": { + "source": "https://github.com/iden3/circuits/blob/feature/trusted-setup-sizes/circuits/credentialAtomicQueryV3OnChain-16-16-64-16-32.circom", + "commitHash": "f97118a19fb647a5b3c81b04afc1d10cf9ba7b84", + "paramsConfiguration": [ + 16, + 16, + 64, + 16, + 32 + ] + }, + "verification": { + "cfOrVm": "CF" + }, + "artifacts": { + "r1csStoragePath": "https://iden3-circuits-bucket.s3.eu-west-1.amazonaws.com/trusted_setup/credentialAtomicQueryV3OnChain-16-16-64-16-32/circuit.r1cs", + "wasmStoragePath": "https://iden3-circuits-bucket.s3.eu-west-1.amazonaws.com/trusted_setup/credentialAtomicQueryV3OnChain-16-16-64-16-32/circuit.wasm" + }, + "name": "credentialAtomicQueryV3OnChain-16-16-64-16-32", + "fixedTimeWindow": 3, + "sequencePosition": 9 }, { - "description": "linkedMultiQuery10 Circuit", + "description": "linkedMultiQuery10 сircuit 10 number of queries, 32 claimLevels, 64 maxValueArraySize", "compiler": { "version": "2.1.1", - "commitHash": "127414e9088cc017a357233f30f3fd7d91a8906c" + "commitHash": "a206acb2c1e1a38a795132a6758819dbd53ae898" }, "template": { - "source": "https://github.com/iden3/circuits/blob/develop/circuits/linkedMultiQuery10.circom", + "source": "https://github.com/iden3/circuits/blob/feature/trusted-setup-sizes/circuits/linkedMultiQuery10.circom", "commitHash": "f97118a19fb647a5b3c81b04afc1d10cf9ba7b84", "paramsConfiguration": [ 10, @@ -109,7 +266,85 @@ }, "name": "linkedMultiQuery10", "fixedTimeWindow": 3, - "sequencePosition": 4 + "sequencePosition": 10 + }, + { + "description": "linkedMultiQuery10-16-64 сircuit 10 number of queries, 16 claimLevels, 64 maxValueArraySize", + "compiler": { + "version": "2.1.1", + "commitHash": "a206acb2c1e1a38a795132a6758819dbd53ae898" + }, + "template": { + "source": "https://github.com/iden3/circuits/blob/feature/trusted-setup-sizes/circuits/linkedMultiQuery10-16-64.circom", + "commitHash": "f97118a19fb647a5b3c81b04afc1d10cf9ba7b84", + "paramsConfiguration": [ + 10, + 16, + 64 + ] + }, + "verification": { + "cfOrVm": "CF" + }, + "artifacts": { + "r1csStoragePath": "https://iden3-circuits-bucket.s3.eu-west-1.amazonaws.com/trusted_setup/linkedMultiQuery10-16-64/circuit.r1cs", + "wasmStoragePath": "https://iden3-circuits-bucket.s3.eu-west-1.amazonaws.com/trusted_setup/linkedMultiQuery10-16-64/circuit.wasm" + }, + "name": "linkedMultiQuery10-16-64", + "fixedTimeWindow": 3, + "sequencePosition": 11 + }, + { + "description": "linkedMultiQuery3 сircuit 3 number of queries, 32 claimLevels, 64 maxValueArraySize", + "compiler": { + "version": "2.1.1", + "commitHash": "a206acb2c1e1a38a795132a6758819dbd53ae898" + }, + "template": { + "source": "https://github.com/iden3/circuits/blob/feature/trusted-setup-sizes/circuits/linkedMultiQuery3.circom", + "commitHash": "f97118a19fb647a5b3c81b04afc1d10cf9ba7b84", + "paramsConfiguration": [ + 3, + 32, + 64 + ] + }, + "verification": { + "cfOrVm": "CF" + }, + "artifacts": { + "r1csStoragePath": "https://iden3-circuits-bucket.s3.eu-west-1.amazonaws.com/trusted_setup/linkedMultiQuery3/circuit.r1cs", + "wasmStoragePath": "https://iden3-circuits-bucket.s3.eu-west-1.amazonaws.com/trusted_setup/linkedMultiQuery3/circuit.wasm" + }, + "name": "linkedMultiQuery3", + "fixedTimeWindow": 3, + "sequencePosition": 12 + }, + { + "description": "linkedMultiQuery3-16-64 сircuit 3 number of queries, 16 claimLevels, 64 maxValueArraySize", + "compiler": { + "version": "2.1.1", + "commitHash": "a206acb2c1e1a38a795132a6758819dbd53ae898" + }, + "template": { + "source": "https://github.com/iden3/circuits/blob/feature/trusted-setup-sizes/circuits/linkedMultiQuery3-16-64.circom", + "commitHash": "f97118a19fb647a5b3c81b04afc1d10cf9ba7b84", + "paramsConfiguration": [ + 3, + 16, + 64 + ] + }, + "verification": { + "cfOrVm": "CF" + }, + "artifacts": { + "r1csStoragePath": "https://iden3-circuits-bucket.s3.eu-west-1.amazonaws.com/trusted_setup/linkedMultiQuery3-16-64/circuit.r1cs", + "wasmStoragePath": "https://iden3-circuits-bucket.s3.eu-west-1.amazonaws.com/trusted_setup/linkedMultiQuery3-16-64/circuit.wasm" + }, + "name": "linkedMultiQuery3-16-64", + "fixedTimeWindow": 3, + "sequencePosition": 13 } ] }