Skip to content

Commit

Permalink
Merge pull request #308 from privacy-scaling-explorations/staging
Browse files Browse the repository at this point in the history
increase memory limit for finalization ceremony function
  • Loading branch information
glamperd authored Jun 13, 2024
2 parents 2e1530e + b23818d commit 04f657d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
| p0tion has been intentionally designed as an agnostic-from-ceremony public good toolkit, with the aim of making Groth16 zk-applications scale and become production-ready in a safe and secure manner by running Phase 2 Trusted Setup ceremonies. |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

Our design philosophy ensures that p0tion stands as the optimal choice for running secure Groth16 zk-applications via automated phase2 ceremonies. The entire process has been streamlined through the easy to use and configure infrastructure, simplifying coordination, scalability, and minimizing the burden of conducting ceremonies from scratch. Additionally, our clear and user-friendly documentation and code, as well as rapid onboarding and deployment, guarantee an adaptable tool that can easily accommodate the evolving needs of developers
Our design philosophy ensures that p0tion stands as the optimal choice for running secure Groth16 zk-applications via automated phase2 ceremonies. The entire process has been streamlined through the easy to use and configure infrastructure, simplifying coordination, scalability, and minimizing the burden of conducting ceremonies from scratch. Additionally, our clear and user-friendly documentation and code, as well as rapid onboarding and deployment, guarantee an adaptable tool that can easily accommodate the evolving needs of developers.

## 📦 Packages

Expand Down
4 changes: 2 additions & 2 deletions packages/actions/src/helpers/constants.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Main part for the Hermez Phase 1 Trusted Setup URLs to download PoT files.
// Main part for the PPoT Phase 1 Trusted Setup URLs to download PoT files.
export const potFileDownloadMainUrl = `https://pse-trusted-setup-ppot.s3.eu-central-1.amazonaws.com/pot28_0080/`
// Main part for the Hermez Phase 1 Trusted Setup PoT files to be downloaded.
// Main part for the PPoT Phase 1 Trusted Setup PoT files to be downloaded.
export const potFilenameTemplate = `ppot_0080_`
// The genesis zKey index.
export const genesisZkeyIndex = `00000`
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/src/functions/ceremony.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ export const initEmptyWaitingQueueForCircuit = functions
export const finalizeCeremony = functions
.region("europe-west1")
.runWith({
memory: "512MB"
memory: "1GB"
})
.https.onCall(async (data: { ceremonyId: string }, context: functions.https.CallableContext): Promise<any> => {
if (!context.auth || !context.auth.token.coordinator) logAndThrowError(COMMON_ERRORS.CM_NOT_COORDINATOR_ROLE)
Expand Down
6 changes: 3 additions & 3 deletions packages/phase2cli/src/commands/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ export const displayCeremonySummary = (ceremonyInputData: CeremonyInputData, cir

/**
* Check if the smallest Powers of Tau has already been downloaded/stored in the correspondent local path
* @dev we are downloading the Powers of Tau file from Hermez Cryptography Phase 1 Trusted Setup.
* @dev we are downloading the Powers of Tau file from Perpetual Powers of Tau Phase 1 Trusted Setup.
* @param powers <string> - the smallest amount of powers needed for the given circuit (should be in a 'XY' stringified form).
* @param ptauCompleteFilename <string> - the complete file name of the powers of tau file to be downloaded.
* @returns <Promise<void>>
Expand All @@ -293,7 +293,7 @@ export const checkAndDownloadSmallestPowersOfTau = async (
const spinner = customSpinner(
`Downloading the ${theme.text.bold(
`#${powers}`
)} smallest PoT file needed from the Hermez Cryptography Phase 1 Trusted Setup...`,
)} smallest PoT file needed from the Perpetual Powers of Tau Phase 1 Trusted Setup...`,
`clock`
)
spinner.start()
Expand Down Expand Up @@ -463,7 +463,7 @@ export const handleCircuitArtifactUploadToStorage = async (
* @notice The setup command allows the coordinator of the ceremony to prepare the next ceremony by interacting with the CLI.
* @dev For proper execution, the command must be run in a folder containing the R1CS files related to the circuits
* for which the coordinator wants to create the ceremony. The command will download the necessary Tau powers
* from Hermez's ceremony Phase 1 Reliable Setup Ceremony.
* from PPoT ceremony Phase 1 Setup Ceremony.
* @param cmd? <any> - the path to the ceremony setup file.
*/
const setup = async (cmd: { template?: string; auth?: string }) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/phase2cli/src/lib/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const COMMAND_ERRORS = {
COMMAND_SETUP_NO_R1CS: `Unable to retrieve R1CS files from current working directory. Please, run this command from a working directory where the R1CS files are located to continue with the setup process. We kindly ask you to run the command from an empty directory containing only the R1CS and WASM files.`,
COMMAND_SETUP_NO_WASM: `Unable to retrieve WASM files from current working directory. Please, run this command from a working directory where the WASM files are located to continue with the setup process. We kindly ask you to run the command from an empty directory containing only the WASM and R1CS files.`,
COMMAND_SETUP_MISMATCH_R1CS_WASM: `The folder contains more R1CS files than WASM files (or vice versa). Please, run this command from a working directory where each R1CS is paired with its corresponding file WASM.`,
COMMAND_SETUP_DOWNLOAD_PTAU: `Unable to download Powers of Tau file from Hermez Cryptography Phase 1 Trusted Setup. Possible causes may involve an error while making the request (be sure to have a stable internet connection). Please, we kindly ask you to terminate the current session and repeat the process.`,
COMMAND_SETUP_DOWNLOAD_PTAU: `Unable to download Powers of Tau file from PPoT Phase 1 Trusted Setup. Possible causes may involve an error while making the request (be sure to have a stable internet connection). Please, we kindly ask you to terminate the current session and repeat the process.`,
COMMAND_SETUP_ABORT: `You chose to abort the setup process.`,
COMMAND_CONTRIBUTE_NO_OPENED_CEREMONIES: `Unfortunately, there is no ceremony for which you can make a contribution at this time. Please, try again later.`,
COMMAND_CONTRIBUTE_NO_PARTICIPANT_DATA: `Unable to retrieve your data as ceremony participant. Please, terminate the current session and try again later. If the error persists, please contact the ceremony coordinator.`,
Expand Down

0 comments on commit 04f657d

Please sign in to comment.