Skip to content

Validate template file data corresponds to ceremony interface #348

@NicoSerranoP

Description

@NicoSerranoP

Prerequisites

Please answer the following question for yourself before submitting a feature request.

  • I checked to make sure that this request has not already been filed

Motivation

When we run the setup command with a config.json template, we parse the data into a variable: https://github.com/privacy-scaling-explorations/p0tion/blob/085b7949650e46d8d23b09366e2fc5afc2d08dbe/packages/phase2cli/src/commands/setup.ts#L510

We need to make sure this parsed data corresponds to the type SetupCeremonyData:
https://github.com/privacy-scaling-explorations/p0tion/blob/085b7949650e46d8d23b09366e2fc5afc2d08dbe/packages/actions/src/types/index.ts#L616

Specifically check that the circuits verification vm configuration is setup properly.

I think the last step of parseCeremonyFile function should be checking this template data with the interface https://github.com/privacy-scaling-explorations/p0tion/blob/085b7949650e46d8d23b09366e2fc5afc2d08dbe/packages/actions/src/helpers/utils.ts#L560

Make sure that you have reviewed p0tion's Contributor Guidelines

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions